Repetition Domainsetup
-
@alwi you should still be able to access
https://<ip>
. When you say, you cannot reach it, what is the error message?Alternately:
- SSH into the server
systemctl restart box
- Navigate to
https://ip
on the browser
-
- SSH into the server
- then
systemctl restart server
three times "timeout"
1.+2. Both addresses after starting the box: ip4 und IP6
3. using my local URLwrote on May 28, 2024, 3:32 PM last edited by@alwi said in Repetition Domainsetup:
then systemctl restart
serverbox -
@alwi said in Repetition Domainsetup:
then systemctl restart
serverbox -
wrote on May 29, 2024, 9:46 AM last edited by
What can I look for in /box.log?
-
@alwi I guess some sort of "Error" (string) . What are the last 50 lines in the log file (try to get this after
systemctl restart box
and wait for 20 seconds)?wrote on May 29, 2024, 4:16 PM last edited by alwi May 29, 2024, 4:19 PM@girish Here the rows after systemctl restart box - "mydomain" is a placeholder:
2024-05-29T16:08:46.796Z box:server Cloudron 7.7.2 2024-05-29T16:08:46.796Z box:server ========================================== 2024-05-29T16:08:46.796Z box:platform initialize: start platform 2024-05-29T16:08:46.818Z box:tasks stopAllTasks: stopping all tasks 2024-05-29T16:08:46.818Z box:shell stopTask /usr/bin/sudo -S /home/yellowtent/box/src/scripts/stoptask.sh all 2024-05-29T16:08:46.864Z box:reverseproxy writeDashboardConfig: writing dashboard config for willnc.de 2024-05-29T16:08:46.870Z box:shell isOscpEnabled execArgs: openssl ["x509","-in","/home/yellowtent/platformdata/nginx/cert/_.mydomain.de.cert","-noout","-ocsp_uri"] 2024-05-29T16:08:46.881Z box:shell reload /usr/bin/sudo -S /home/yellowtent/box/src/scripts/restartservice.sh nginx 2024-05-29T16:08:47.019Z box:platform start: not activated. generating IP based redirection config 2024-05-29T16:08:47.023Z box:reverseproxy writeDefaultConfig: writing configs for endpoint "setup" 2024-05-29T16:08:47.024Z box:shell reload /usr/bin/sudo -S /home/yellowtent/box/src/scripts/restartservice.sh nginx
-
@girish Here the rows after systemctl restart box - "mydomain" is a placeholder:
2024-05-29T16:08:46.796Z box:server Cloudron 7.7.2 2024-05-29T16:08:46.796Z box:server ========================================== 2024-05-29T16:08:46.796Z box:platform initialize: start platform 2024-05-29T16:08:46.818Z box:tasks stopAllTasks: stopping all tasks 2024-05-29T16:08:46.818Z box:shell stopTask /usr/bin/sudo -S /home/yellowtent/box/src/scripts/stoptask.sh all 2024-05-29T16:08:46.864Z box:reverseproxy writeDashboardConfig: writing dashboard config for willnc.de 2024-05-29T16:08:46.870Z box:shell isOscpEnabled execArgs: openssl ["x509","-in","/home/yellowtent/platformdata/nginx/cert/_.mydomain.de.cert","-noout","-ocsp_uri"] 2024-05-29T16:08:46.881Z box:shell reload /usr/bin/sudo -S /home/yellowtent/box/src/scripts/restartservice.sh nginx 2024-05-29T16:08:47.019Z box:platform start: not activated. generating IP based redirection config 2024-05-29T16:08:47.023Z box:reverseproxy writeDefaultConfig: writing configs for endpoint "setup" 2024-05-29T16:08:47.024Z box:shell reload /usr/bin/sudo -S /home/yellowtent/box/src/scripts/restartservice.sh nginx
@alwi ah ok, looks like it's running fine. I think something else is going wrong then - dns or network related. Are you able to ping your server by IP from the Mac ? You can also check if nginx is OK using
systemctl status nginx
. -
wrote on May 29, 2024, 4:36 PM last edited by
systemctl status nginx ● nginx.service - A high performance web server and a reverse proxy server Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled) Drop-In: /etc/systemd/system/nginx.service.d └─cloudron.conf Active: active (running) since Wed 2024-05-29 15:40:26 UTC; 54min ago Docs: man:nginx(8) Process: 822 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS) Process: 1196 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=0/SUCCESS) Main PID: 1197 (nginx) Tasks: 5 (limit: 18340) Memory: 13.0M CPU: 232ms CGroup: /system.slice/nginx.service ├─1197 "nginx: master process /usr/sbin/nginx -g daemon on; master_process on;" ├─1924 "nginx: worker process" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ├─1925 "nginx: worker process" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ├─1926 "nginx: worker process" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" └─1927 "nginx: worker process" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" Mai 29 15:40:23 giga systemd[1]: Starting A high performance web server and a reverse proxy server... Mai 29 15:40:26 giga systemd[1]: Started A high performance web server and a reverse proxy server.
-
@alwi yeah, that looks ok too. I think some DNS or networking issue then. I would debug this further like this:
All on the PC/Mac:
- Are you able to ping by IP?
- Then,
host my.domain.com
. Does this translate to the IP? - Then,
curl https://my.domain.com
. Does this give some html?
Are you hosting on some internal network or public VPS? If internal network, note that you have to setup port forwarding of port 443 from the public IP (i.e the DNS IP) to the private IP (i.e the VM)
-
wrote on May 29, 2024, 4:43 PM last edited by alwi May 29, 2024, 7:47 PM
to ping with the mac adress is new for me, I tried and
10853 packets transmitted, 0 received, 100% packet loss, time 11112083ms
-
Ah, I got confused from the initial post, I thought you were testing from the Mac (maybe you meant MAC - which is the hardware address?). Anyway, I mean to run those commands from your PC or computer on which you have your browser open.
-
Ah, I got confused from the initial post, I thought you were testing from the Mac (maybe you meant MAC - which is the hardware address?). Anyway, I mean to run those commands from your PC or computer on which you have your browser open.
wrote on May 29, 2024, 7:05 PM last edited by alwi May 29, 2024, 7:46 PM@girish said in Repetition Domainsetup:
Anyway, I mean to run those commands from your PC or computer on which you have your browser open.
Yes, I did so
-
wrote on May 31, 2024, 7:38 AM last edited by
There are two categories of servers for me.
A) my home server, I can ping
B) the server at Cloudron, which is not accessible with the two specified addresses