Hi,
I’ve installed openedX natively, using the koa.master branch on a VirtualBox VM with 3GB of RAM and 60GB of VHD.
When starting all services using sudo /edx/bin/supervisorctl start all (and checking all 16 of them are RUNNING with sudo /edx/bin/supervisorctl status), I used a browser on the host machine to access the LMS.
I’m met with the “Server error” page:
Following the troubleshooting guide, I did the following steps:
wis20211@wis20211:~$ time sudo service nginx status
● nginx.service - nginx - high performance web server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2021-05-10 09:54:24 UTC; 26min ago
Docs: https://nginx.org/en/docs/
Process: 675 ExecStart=/usr/sbin/nginx -c /etc/nginx/nginx.conf (code=exited, status=0/SUCCESS)
Main PID: 828 (nginx)
Tasks: 5 (limit: 3404)
Memory: 1.6M
CGroup: /system.slice/nginx.service
├─828 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf
├─829 nginx: worker process
├─830 nginx: worker process
├─831 nginx: worker process
└─832 nginx: worker process
May 10 09:54:12 wis20211 systemd[1]: Starting nginx - high performance web server...
May 10 09:54:24 wis20211 systemd[1]: nginx.service: Can't open PID file /run/nginx.pid (yet?) after start: Operation not permitted
May 10 09:54:24 wis20211 systemd[1]: Started nginx - high performance web server.
real 0m11.738s
user 0m0.016s
sys 0m0.058s
Then sudo service nginx status (which returned nothing);
wis20211@wis20211:~$ sudo /edx/bin/supervisorctl status edxapp:
edxapp: ERROR (no such group)
wis20211@wis20211:~$ sudo service nginx stop
wis20211@wis20211:~$ sudo service supervisor stop
wis20211@wis20211:~$ sudo service supervisor.devpi stop
Failed to stop supervisor.devpi.service: Unit supervisor.devpi.service not loaded.
wis20211@wis20211:~$ sudo pkill -u www-data
wis20211@wis20211:~$ sudo service nginx start
wis20211@wis20211:~$ sudo service supervisor start
Job for supervisor.service failed because the control process exited with error code.
See "systemctl status supervisor.service" and "journalctl -xe" for details.
wis20211@wis20211:~$ sudo service supervisor.devpi start
Failed to start supervisor.devpi.service: Unit supervisor.devpi.service not found.
I’ll stop here.
Thank you for the help, and please tell me if you need any specific logs and/or additional details.
Hi @amit,
Thanks for replying.
I’ve rebooted the VM, started all services to ensure a “fresh” session, then visited my site.
I’ve examined /edx/var/log/lms/edx.log, /edx/var/log/cms/edx.log and they both contain no new information. /edx/var/log/nginx/access.log shows that I did make requests to the server from the host machine:
While /edx/var/log/nginx/error.log shows a timeout:
2021/05/10 10:52:53 [error] 846#846: *20 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.56.1, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8000/", host: "192.168.56.5"
2021/05/10 10:57:07 [error] 848#848: *1 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 127.0.0.1, server: , request: "GET /xqueue/get_queuelen/?queue_name=certificates HTTP/1.1", upstream: "http://127.0.0.1:8040/xqueue/get_queuelen/?queue_name=certificates", host: "localhost:18040"
Through recent searching, I see that an user has the same timeout message here, however they are not running on the koa.master branch and do not have all the same errors.
I hope this provides needed information to further investigate.
In the meantime, I’ll try to allocate more RAM and restart the services (albeit reluctantly, I’m doing more of a class Web project than establishing a full-fledged edX platform; and my host machine has 8GB RAM).