Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to load application libraries. #397

Open
huypn-miichi opened this issue May 7, 2024 · 4 comments
Open

Failed to load application libraries. #397

huypn-miichi opened this issue May 7, 2024 · 4 comments

Comments

@huypn-miichi
Copy link

huypn-miichi commented May 7, 2024

although I did as tutorial, but I still got above error

this is my dockerfile
FROM treefrogframework/treefrog

RUN apt-get update && apt-get upgrade -y
&& apt-get install -y build-essential
&& apt-get install -y vim
&& apt-get install -y git ncurses-dev lua5.3 lua5.3-dev luajit
&& apt-get install -y python3-dev python3-pip
&& apt-get install -y tmux
&& apt-get install -y libevent-dev
&& apt-get install -y postgresql
RUN apt-get install -y libqt5sql5-mysql libqt5sql5-psql libqt5sql5-odbc libqt5sql5-sqlite libqt5core5a libqt5qml5 libqt5xml5 qtbase5-dev qtdeclarative5-dev qtbase5-dev-tools gcc g++ make cmake libcurl4-gnutls-dev
RUN apt-get install -y libmysqlclient-dev libpq5 libodbc2 libmongoc-dev libbson-dev
#RUN pip3 install powerline-status

WORKDIR /root/install/
RUN curl https://raw.githubusercontent.com/Shougo/dein.vim/master/bin/installer.sh > installer.sh
RUN wget https://github.com/Shougo/dein.vim/archive/1.5.tar.gz
RUN wget https://github.com/peco/peco/releases/download/v0.5.3/peco_linux_amd64.tar.gz
RUN tar -xzf peco_linux_amd64.tar.gz
RUN rm -rf peco_linux_amd64.tar.gz
RUN git clone https://github.com/tmux-plugins/tpm /root/.tmux/plugins/tpm
RUN tar -xzf 1.5.tar.gz
RUN rm -rf 1.5.tar.gz
RUN mkdir -p /root/.vim/dein/repos/github.com/Shougo/dein.vim
RUN mv dein.vim-1.5/* /root/.vim/dein/repos/github.com/Shougo/dein.vim
RUN rm -rf 1.5
RUN curl -kLO https://github.com/tmux/tmux/releases/download/2.7/tmux-2.7.tar.gz
RUN tar -xzvf tmux-2.7.tar.gz

WORKDIR /root/install/tmux-2.7
RUN ./configure
&& make
&& make install

WORKDIR /root/
RUN mkdir webapp
COPY . /root/webapp

EXPOSE 8800

CMD /bin/bash

Please tell me what I did wrong. Thank you.

@huypn-miichi
Copy link
Author

This is log file:
2024-05-07 07:34:25 INFO [23] TreeFrog Framework version 2.8.0
2024-05-07 07:34:25 INFO [23] Execution environment: Qt 6.4.2 / Ubuntu 24.04 LTS
2024-05-07 07:34:25 INFO [23] TreeFrog application servers started up.
2024-05-07 07:34:25 WARN [24] Cannot load library /root/vcrm/webapp/lib/libcontroller: (/root/vcrm/webapp/lib/haswell/liblibcontroller.so: cannot open shared object file: No such file or directory)
2024-05-07 07:34:25 WARN [24] Failed to load application libraries.
2024-05-07 07:34:25 WARN [31] No such method: staticInitialize() of ApplicationController
2024-05-07 07:34:40 WARN [34] Reading a socket timed out after 10 seconds. Descriptor:10
2024-05-07 07:34:41 INFO [23] TreeFrog application servers shutting down
2024-05-07 07:34:41 ERROR [24] *** Aborted at 1715067281 (unix time) try "date -d @1715067281" if you are using GNU date ***
2024-05-07 07:34:41 ERROR [24] PC: @ 0x0 (unknown)
2024-05-07 07:34:41 ERROR [24] *** SIGTERM (@0x17) received by PID 24 (TID 0x7f523829a2c0) from PID 23; stack trace: ***
2024-05-07 07:34:41 ERROR [24] @ 0x7f523c131320 (unknown)
2024-05-07 07:34:41 ERROR [24] @ 0x7f523c2074cd poll
2024-05-07 07:34:41 ERROR [24] @ 0x7f523b89366e (unknown)
2024-05-07 07:34:41 ERROR [24] @ 0x7f523b833a53 g_main_context_iteration
2024-05-07 07:34:41 ERROR [24] @ 0x7f523c9c25ef QEventDispatcherGlib::processEvents()
2024-05-07 07:34:41 ERROR [24] @ 0x7f523c7d39a3 QEventLoop::exec()
2024-05-07 07:34:41 ERROR [24] @ 0x7f523c7cc35e QCoreApplication::exec()
2024-05-07 07:34:41 ERROR [24] @ 0x7f523d323d11 TWebApplication::exec()
2024-05-07 07:34:41 ERROR [24] @ 0x5634a585b441 (unknown)
2024-05-07 07:34:41 ERROR [24] @ 0x7f523c1161ca (unknown)
2024-05-07 07:34:41 ERROR [24] @ 0x7f523c11628b __libc_start_main
2024-05-07 07:34:41 ERROR [24] @ 0x5634a585a355 (unknown)
2024-05-07 07:34:41 ERROR [24] @ 0x0 (unknown)
2024-05-07 07:34:41 ERROR [23] tfserver error detected(1). [/usr/bin/tadpole]
2024-05-07 07:34:41 INFO [23] TreeFrog application servers shutdown completed
2024-05-07 08:48:43 INFO [9184] TreeFrog Framework version 2.8.0
2024-05-07 08:48:43 INFO [9184] Execution environment: Qt 6.4.2 / Ubuntu 24.04 LTS
2024-05-07 08:48:43 INFO [9184] TreeFrog application servers started up.
2024-05-07 08:48:43 WARN [9185] Cannot load library /root/vcrm/webapp/lib/libcontroller: (./libmodel.so.1: undefined symbol: _ZNK14TAbstractModel12toVariantMapERK11QStringList)
2024-05-07 08:48:43 WARN [9185] Failed to load application libraries.
2024-05-07 08:48:43 WARN [9193] No such method: staticInitialize() of ApplicationController
2024-05-07 08:49:04 WARN [9197] Reading a socket timed out after 10 seconds. Descriptor:10

@huypn-miichi
Copy link
Author

huypn-miichi commented May 8, 2024

It seems the issue occurs when I use treefrogframework/treefrog image.
If I use ubuntu image and after that, I install as tutorial, it works correctly.
This is my Dockerfile:
FROM ubuntu

RUN apt-get update && apt-get upgrade -y
&& apt-get install -y build-essential
&& apt-get install -y vim
&& apt-get install -y git ncurses-dev lua5.3 lua5.3-dev luajit
&& apt-get install -y python3-dev python3-pip
&& apt-get install -y tmux
&& apt-get install -y libevent-dev
&& apt-get install -y postgresql
RUN apt-get install -y libqt5sql5-mysql libqt5sql5-psql libqt5sql5-odbc libqt5sql5-sqlite libqt5core5a libqt5qml5 libqt5xml5 qtbase5-dev qtdeclarative5-dev qtbase5-dev-tools gcc g++ make cmake libcurl4-gnutls-dev
RUN apt-get install -y libmysqlclient-dev libpq5 libodbc2 libmongoc-dev libbson-dev
#RUN pip3 install powerline-status

WORKDIR /root/
RUN mkdir webapp
COPY . /root/webapp

EXPOSE 8800

CMD /bin/bash

@treefrogframework
Copy link
Owner

Qt5 and Qt6 appear to be mixed. Versions should be matched.
Docs were old..

Dockerfile of treefrogframework/treefrog: https://github.com/treefrogframework/treefrog-framework/blob/docker/dockerfiles/Dockerfile

@huypn-miichi
Copy link
Author

I got a error message when run docker build: pkg-config: command not found

**RUN curl -sL https://github.com/treefrogframework/treefrog-framework/archive/master.tar.gz | tar xz && cd treefrog-framework-master && ./configure --enable-shared-mongoc --spec=linux-clang && make -j"$(nproc)" -C src && make -C src install && make -j"$(nproc)" -C tools && make -C tools install && rm -rf /usr/src/treefrog:
#0 189.2 pkg-config: command not found
**

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants