[SOLVED] 123solar stopped after reboot + some interruptions

Talks about solar stuff
lucaspeed
Posts: 9
Joined: Wed Jun 17, 2020 10:08 pm

Re: 123solar stopped after reboot + some interruptions

Post by lucaspeed » Sat Jan 09, 2021 12:44 am

Hi Jeanmarc, time to update: after I changed RS485 converter monitoring is still running. I only have the usual problem of 123solar stopped at every restart, I can't find a solution...

jeanmarc
Posts: 2100
Joined: Thu Aug 29, 2013 7:16 am

Re: 123solar stopped after reboot + some interruptions

Post by jeanmarc » Sat Jan 09, 2021 7:03 am

:idea: https://123solar.org/help.html

How to start 123solar on boot ?
systemd or SysVinit run as process 1
Check if you use initd or systemd with this command : ps 1

For sysvinit, edit /etc/rc.local file and add the line: /usr/bin/curl http://localhost/123solar/scripts/boot123s.php
If you use systemd: Download '123solar.service' and put it in /etc/systemd/system then type : systemctl enable 123solar

lucaspeed
Posts: 9
Joined: Wed Jun 17, 2020 10:08 pm

Re: 123solar stopped after reboot + some interruptions

Post by lucaspeed » Sat Jan 09, 2021 4:58 pm

123solar starts at boot but my problem is that it starts in STOPPED mode. I have to manually enter administration and activate it everytime I reboot my pi. Any hint? What if I edit rc.local with:

/usr/bin/curl http://localhost/123solar/scripts/daemon_start.php

EDIT: I tried, no luck. :D

jeanmarc
Posts: 2100
Joined: Thu Aug 29, 2013 7:16 am

Re: 123solar stopped after reboot + some interruptions

Post by jeanmarc » Sat Jan 09, 2021 6:12 pm

What does curl returns ?

lucaspeed
Posts: 9
Joined: Wed Jun 17, 2020 10:08 pm

Re: 123solar stopped after reboot + some interruptions

Post by lucaspeed » Sat Jan 09, 2021 6:29 pm

No errors but I'm not a sysadmin, maybe I have to look in other places.
If I reboot, the webserver starts, I can reach the 123solar page but in Admin it's stopped.

I don't know what else to do.

EDIT: strange thing is ps 1 give init as result but I have .service in systemd/system and I didn't have the curl command in rc.local (I have added it today as per your instructions)
Tried adding this to crontab (no way):

@reboot /usr/bin/curl http://localhost:8080/123solar/scripts/boot123s.php

Tried removing .service and use only rc.local (nope).

I think it's related to me running webserver on port 8080, I have updated .service, maybe I have to modify the scripts? If this is the case I don't know what & how...

2nd EDIT: Solved adding '@reboot pause 20' in crontab

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 7 guests