Open saumyashah7 opened 3 years ago
Thanks, couple of things to try:
Did those commands output any error messages? Can you paste the output of docker-compose logs
and docker-compose exec apache bin/status
?
Does docker-compose exec apache curl http://127.0.0.1/boincserver/
print out the HTML of the main webpage or still 404 ?
docker-compose exec apache curl http://127.0.0.1/boincserver/ says: 404
Thanks, yea this line
apache_1 | 2021-04-02 22:52:56,096 INFO gave up: start entered FATAL state, too many start retries too quickly
means the Apache server never started. The reason should be in the logs, what does this say:
docker-compose exec apache bash -c "cat /var/log/supervisor/apache2-std*"
that says: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.18.0.4. Set the 'ServerName' directive globally to suppress this message AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.18.0.4. Set the 'ServerName' directive globally to suppress this message [Fri Apr 02 22:52:48.881708 2021] [mpm_prefork:notice] [pid 11] AH00163: Apache/2.4.25 (Debian) PHP/7.0.31 configured -- resuming normal operations [Fri Apr 02 22:52:48.881755 2021] [core:notice] [pid 11] AH00094: Command line: 'apache2 -D FOREGROUND' [Sat Apr 03 01:44:01.730644 2021] [autoindex:error] [pid 28] [client 92.16.195.36:43253] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.php,index.html) found, and server-generated directory index forbidden by Options directive 172.18.0.1 - - [02/Apr/2021:23:03:54 +0000] "GET /boincserver HTTP/1.1" 404 501 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:87.0) Gecko/20100101 Firefox/87.0" 172.18.0.1 - - [02/Apr/2021:23:03:54 +0000] "GET /favicon.ico HTTP/1.1" 404 500 "http://127.0.0.1/boincserver" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:87.0) Gecko/20100101 Firefox/87.0" 127.0.0.1 - - [02/Apr/2021:23:09:17 +0000] "GET /boincserver/ HTTP/1.1" 404 446 "-" "curl/7.52.1" 92.16.195.36 - - [03/Apr/2021:01:44:01 +0000] "GET / HTTP/1.1" 403 450 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36"
Any update on this?
No, I'm not able to reproduce this. Can you try a docker-compose down -v
(warning, will delete all your data volumes, including database and project directory) to wipe everything and try again fresh? The error Cannot serve directory /var/www/html/
seems to indicate the boincserver.httpd.conf
file wasn't succesfully symlinked into /etc/apache2/sites-enabled/
, so the server is trying to serve the wrong directory (/var/www/html/
instead of /home/boincadm/project/html
)
Yes I tried that earlier and now as well but no luck. Just to double check I started fresh on two other machines again and I got the same errors.
Also I see there was a change recently in the makeproject-step2.sh file but the related makeproject docker image hasn't been updated since last two years. Do you think the problem could be related to that? I tried to build image locally but the git repo might not have all the files since I keep getting error file not found for:
/bin/sh: 1: ./_autosetup: not found ERROR: Service 'makeproject' failed to build: The command '/bin/sh -c cd /usr/local/boinc && ./_autosetup && ./configure --disable-client --disable-manager && make' returned a non-zero code: 127
If you'd like to build locally, don't forgret to check out the submodules (described in readme).
I tried to rebuild the image with your updated code but I still see the apache error:
apache_1 | 2021-04-22 23:56:17,459 INFO exited: start (exit status 1; not expected) apache_1 | 2021-04-22 23:56:19,464 INFO spawned: 'start' with pid 34 apache_1 | 2021-04-22 23:56:19,526 INFO exited: start (exit status 1; not expected) apache_1 | 2021-04-22 23:56:22,532 INFO spawned: 'start' with pid 37 apache_1 | 2021-04-22 23:56:22,589 INFO exited: start (exit status 1; not expected) apache_1 | 2021-04-22 23:56:23,591 INFO gave up: start entered FATAL state, too many start retries too quickly
but I think the other error regarding serving the wrong directory went away. I got the following from executing docker-compose exec apache bash -c "cat /var/log/supervisor/apache2-std*":
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.26.0.4. Set the 'ServerName' directive globally to suppress this message AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.26.0.4. Set the 'ServerName' directive globally to suppress this message [Thu Apr 22 23:56:16.394821 2021] [mpm_prefork:notice] [pid 11] AH00163: Apache/2.4.25 (Debian) PHP/7.0.31 configured -- resuming normal operations [Thu Apr 22 23:56:16.394899 2021] [core:notice] [pid 11] AH00094: Command line: 'apache2 -D FOREGROUND' 73.116.89.112 - - [23/Apr/2021:00:09:44 +0000] "GET /boincserver HTTP/1.1" 404 506 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.128 Safari/537.36" 73.116.89.112 - - [23/Apr/2021:00:09:52 +0000] "GET /boincserver HTTP/1.1" 404 506 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.128 Safari/537.36"
Any suggestions on how to proceed further since the site is still unreachable?
git clone https://github.com/marius311/boinc-server-docker.git
cd boinc-server-docker
and then run,
docker-compose pull
docker-compose up -d
docker-compose exec apache bash
ln -s /home/boincadm/project/boincserver.httpd.conf /etc/apache2/conf-enabled/boincserver.httpd.conf
/etc/init.d/apache2 reload
bin/stop
bin/start
These are the steps required to run boinc server. If you change the environment file then you need to change the boincserver to the env project name
I had this same issue on a windows machine yesterday. Tried to follow the readme and got the 404 page. Adding the symlink and reloading the service and restarting. As Jordan-Hall mentioned got it working.
I still have some issues getting the tasks from when connecting and boinc client logs shows some log permission issues on the server side.
15/09/2022 08:39:54 | boincserver | Server can't open log file (../log_boincserver/scheduler.log)
I had the original error in this issue and the one mentioned by tentom (my server is ubuntu 22.04).
My problem was solved after I did the docker post-installation step: creating the docker group and adding my user to it.
Also, I used the template in example_project
.
After setting up boinc on the machine, I get the following 404 Not found while accessing http://127.0.0.1/boincserver :
To reproduce:
git clone https://github.com/marius311/boinc-server-docker.git cd boinc-server-docker docker-compose pull docker-compose up -d
OS : Ubuntu 18.04 Docker version: 19.03.6
Please help on the same.