All ok.
You could try to reboot again but before doing that, show the output of these commands:
systemctl restart nginx ; sleep 5 ; ls -l /run/nginx.pid ; systemctl status nginx --no-pager -l
All ok.
You could try to reboot again but before doing that, show the output of these commands:
systemctl restart nginx ; sleep 5 ; ls -l /run/nginx.pid ; systemctl status nginx --no-pager -l
root@server:~# systemctl restart nginx ; sleep 5 ; ls -l /run/nginx.pid ; systemctl status nginx --no-pager -l
-rw-r--r-- 1 root root 8 Jun 15 02:29 /run/nginx.pid
ā nginx.service - nginx - high performance web server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; preset: enabled)
Active: active (running) since Sat 2024-06-15 02:29:15 PDT; 5s ago
Docs: https://nginx.org/en/docs/
Process: 1190886 ExecStart=/usr/sbin/nginx -c /etc/nginx/nginx.conf (code=exited, status=0/SUCCESS)
Main PID: 1190919 (nginx)
Tasks: 4 (limit: 7103)
Memory: 6.5M
CPU: 105ms
CGroup: /system.slice/nginx.service
āā1190919 "nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf"
āā1190920 "nginx: worker process"
āā1190921 "nginx: cache manager process"
āā1190922 "nginx: cache loader process"
Jun 15 02:29:15 server.uniplex.xyz systemd[1]: Starting nginx.service - nginx - high performance web server...
Jun 15 02:29:15 server.uniplex.xyz systemd[1]: nginx.service: Can't open PID file /run/nginx.pid (yet?) after start: No such file or directory
Jun 15 02:29:15 server.uniplex.xyz systemd[1]: Started nginx.service - nginx - high performance web server.
root@server:~#
Looks like thereās a problem here: Jun 15 02:29:15 server.uniplex.xyz systemd[1]: nginx.service: Canāt open PID file /run/nginx.pid (yet?) after start: No such file or directory
But it creates it, that is the reason I told to show this command ls -l /run/nginx.pid
Again, I see no problem there, thatās pretty weird, try to reboot the VPS, try to access again your site and check the nginx logs /var/log/nginx/error.log
and /var/log/nginx/domains/YourDomain.error.log
Rebooted VPS to no luck, log files still showing the SSL stuff for the other domains. Thatās about it. I have a hunch it has something to do with PHP but idk how it would relate to apache and nginx. I actually rebooted it twice, the first time I ran into an issue with none of the PHP on my sites working so like sites solely PHP were down but HTML was up. So I took another shot and did another reboot, and well it clearly didnāt like that and more stuff broke or something. Looking back, shouldnāt have rebooted the second time and tried to deal with the PHP issue insteadā¦
Pretty weird. Just in case, did you add something to /etc/hosts
?
Nope not that I am aware of, but Iāve been able to fix the issues right now by deleting each domain and re-adding them. Itās a pain and something I certainly donāt want to do again as I scale up well I guess I shouldnāt reboot again.
Instead of delete and re-add, you could try to rebuild them:
v-rebuild-web-domain USER DOMAIN yes
Nevermind, it didnāt fix it, I just thought the removal of the SSL and redirecting to https meant if I generated a SSL certificate, it would work. Iām gonna take backups and reinstall tomorrow. Thanks for your help. Sorry for the distuabance.
Magically started working after I turned off the VPS for 12 hours to go sleep and turned it back on today to check and then reinstall. welp its magical.
Iām glad it works again, but it is strange, maybe some hardware is not working fineā¦
Once, something similar happened to me. Incredibly, it was my firewall automatically blocking the IP.
If this happens again, I recommend checking the status of the following services:
service apache2 status
service nginx status
If both are running correctly, try temporarily pausing iptables:
service iptables stop
Test again. If everything works, youāve identified the problem. In that case, add your internal IPs to the whitelist or investigate why the block occurred.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.