http://b-star-y.tech:8081 does not work (@ commit 1f550d67c4d662682c10358582e68c94cd2f0b6e)
achakravarti opened this issue · 2 comments
achakravarti commented
When we attempt to run the HelpCovid server on http://b-star-y.tech:8081, either through make localtest0
or through ./helpcovid -D -T 2
, the HelpCovid server starts and runs, but after some time aborts even when no GET
or POST
requests are made.
This is the output from the HelpCovid server:
abhishkt39@b-star-y:~/helpcovid$ make localtest0
./generate-timestamp.sh > __timestamp.c-tmp
'/tmp/helpcovid-11779.tar.gz' -> '/home/abhishkt39/tmp/helpcovid.tar.gz'
cp: cannot create regular file '/home/abhishkt39/tmp/helpcovid.tar.gz': No such file or directory
printf "const char hcv_cxx_compiler[]=\"%s\";\n" "$(ccache g++ --version | head -1)" >> __timestamp.c-tmp
mv --backup __timestamp.c-tmp __timestamp.c
ccache gcc -c -o __timestamp.o __timestamp.c
ccache g++ -std=gnu++17 -O0 -g3 -Wall -Wextra -pthread -I/usr/include/giomm-2.4 -I/usr/lib/x86_64-linux-gnu/giomm-2.4/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/glibmm-2.4 -I/usr/lib/x86_64-linux-gnu/glibmm-2.4/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sigc++-2.0 -I/usr/lib/x86_64-linux-gnu/sigc++-2.0/include -I/usr/include/jsoncpp -I/usr/include/postgresql -DHELPCOVID_GITID=\"ff185635fccb7451045406fbd17686cfdba4f245\" -rdynamic -pthread -L /usr/local/lib -L /usr/lib hcv_web.o hcv_database.o hcv_main.o hcv_models.o hcv_template.o hcv_background.o hcv_views.o __timestamp.o \
-lgiomm-2.4 -lgio-2.0 -lglibmm-2.4 -lgobject-2.0 -lglib-2.0 -lsigc-2.0 -ljsoncpp -lpqxx -lssl -lcrypto -rdynamic -ldl -o helpcovid-tmp
mv --backup helpcovid-tmp helpcovid
mv --backup __timestamp.c __timestamp.c~
rm -f __timestamp.o
./helpcovid --debug --threads=3
./helpcovid[11841]: hcv_main.cc:474 - !! parsed 3 program arguments
./helpcovid[11841]: hcv_main.cc:737 - !! start of ./helpcovid
version:github.com/bstarynk/helpcovid built Mon 30 Mar 2020 10:14:40 AM CEST
... gitcommit ff185635fccb Fix paths for chown and rm commands
... md5sum 528cdf29aba42bf68c47fb492bd57754 on b-star-y.tech
at Mon Mar 30 10:14:42 2020 CEST on b-star-y.tech
./helpcovid[11841]: hcv_main.cc:527 - !! loading configuration file /home/abhishkt39/.helpcovidrc
./helpcovid[11841]: hcv_main.cc:533 - !! helpcovid loaded configuration file /home/abhishkt39/.helpcovidrc
./helpcovid[11841]: hcv_web.cc:73 - !! hcv_initialize_web: weburl='http://b-stary-y.tech:8081/', webroot='/home/abhishkt39/helpcovid/webroot/', opensslcert='', opensslkey=''
./helpcovid[11841]: hcv_web.cc:108 - !! starting plain HTTP server using weburl http://b-stary-y.tech:8081/ and webroot /home/abhishkt39/helpcovid/webroot/ hcv_webserver@0x563bfb58c380
./helpcovid[11841]: hcv_main.cc:811 - !! helpcovid debugging enabled
./helpcovid[11841]: ΔBG!hcv_main.cc:812:00.00 s helpcovid is debugging
./helpcovid[11841]: hcv_main.cc:858 - !! helpcovid unable to write builtin pidfile /var/run/helpcovid.pid
-: Permission denied
./helpcovid[11841]: hcv_database.cc:113 - !! using 'dbname=helpcovid_db user=helpcovid_usr password=_0sDpsn5BFCQ047pXr4 hostaddr=127.0.0.1 port=5432' as PostGreSQL connection string.
./helpcovid[11841]: hcv_database.cc:127 - !! hcv_initialize_database connstr=dbname=helpcovid_db user=helpcovid_usr password=_0sDpsn5BFCQ047pXr4 hostaddr=127.0.0.1 port=5432
./helpcovid[11841]: hcv_database.cc:131 - !! hcv_initialize_database for connstr=dbname=helpcovid_db user=helpcovid_usr password=_0sDpsn5BFCQ047pXr4 hostaddr=127.0.0.1 port=5432 hcv_dbconn is 0x563bfb58ca40
./helpcovid[11841]: hcv_database.cc:140 - !! hcv_initialize_database got PostGreSQL version PostgreSQL 11.7 (Debian 11.7-0+deb10u1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit(server version 11.7 (Debian 11.7-0+deb10u1))
./helpcovid[11841]: ΔBG!hcv_database.cc:216:00.01 s hcv_initialize_database before preparing statements in dbname=helpcovid_db user=helpcovid_usr password=_0sDpsn5BFCQ047pXr4 hostaddr=127.0.0.1 port=5432
./helpcovid[11841]: ΔBG!hcv_database.cc:244:00.01 s preparing find_user_by_email_pstm
./helpcovid[11841]: ΔBG!hcv_database.cc:270:00.01 s Registering prepared SQL statement user_create_pstm
./helpcovid[11841]: ΔBG!hcv_database.cc:270:00.01 s Registering prepared SQL statement user_get_password_by_email_pstm
./helpcovid[11841]: hcv_database.cc:218 - !! PostGreSQL database dbname=helpcovid_db user=helpcovid_usr password=_0sDpsn5BFCQ047pXr4 hostaddr=127.0.0.1 port=5432 successfully initialized
./helpcovid[11841]: ΔBG!hcv_background.cc:201:00.01 s hcv_start_background_thread did start hcv_bgthread of id 140200225543936
./helpcovid[11841]: hcv_web.cc:523 - !! Starting HelpCovid web server hcv_webserver@0x563bfb58c380 with hcv_weburl=http://b-stary-y.tech:8081/ and 3 threads and 16777216 maximal payload
./helpcovid[11841]: hcv_web.cc:545 - !! weburl=http://b-stary-y.tech:8081/ listening on webhost=b default webport=8080
./helpcovid[11841]: ΔBG!hcv_web.cc:557:00.01 s hcv_webserver_run webport=8080 weburl= http://b-stary-y.tech:8081/
./helpcovid[11841]: hcv_background.cc:65 - !! hcv_background_thread_body starting thread hcovibg11841
./helpcovid[11841]: hcv_web.cc:680 - !! end hcv_webserver_run webhost=b webport=8080
-: Resource temporarily unavailable
./helpcovid[11841]: hcv_main.cc:869 - !! normal end of ./helpcovid
-: Resource temporarily unavailable
terminate called without an active exception
make: *** [Makefile:96: localtest0] Aborted
achakravarti commented
Replacing the URL key in the ~/.helpcovidrc
file with the IP address of http://b-star-y.tech
seems to fix the problem. The HelpCovid server is running without aborting.
bstarynk commented
Sent a private email mentioning fail2ban
running on http://b-star-y.tech