Page 1 of 2

Update from 1.6.9.2

Posted: Tue Feb 20, 2018 9:15 am
by Francesco
Hi to all,

after upgrade from 1.6.9.2 to 1.7.1 (upgrade ok with no problem at all) seems that 123 service is not working properly anymore after reboot .

In the 1.6.9.2 when i reboot the device (orange pi pc) the home page show data (service started correctly) and connection is ok.

In the 1.7.1 after restart the admin page is shown and 123 service is on. But is not possible to go to the main page and no data is recorded until stop

and restart service manually from the admin page.


Any suggestion?


My system:
OPI PC
sunny beam 5000 connected via bluetooth
sbfspot 3.3.1
nginx
php7.0

Re: Update from 1.6.9.2

Posted: Tue Feb 20, 2018 11:21 am
by jeanmarc
Hi,
What systemctl status 123solar return after a reboot ?

You may then systemctl start | stop 123solar

Re: Update from 1.6.9.2

Posted: Tue Feb 20, 2018 2:04 pm
by Francesco
OK

rebooted and then:


root@orangepipc:~# uname -r
3.4.113-sun8i


root@orangepipc:~# systemctl status 123solar
● 123solar.service - 123Solar
Loaded: loaded (/etc/systemd/system/123solar.service; enabled; vendor preset: enabled)
Active: inactive (dead) since Tue 2018-02-20 12:58:27 UTC; 1min 54s ago
Process: 883 ExecStart=/usr/bin/curl http://localhost/123solar/scripts/boot123s.php (code=exited, status=0/SUCCESS)
Main PID: 883 (code=exited, status=0/SUCCESS)

Feb 20 12:58:19 orangepipc systemd[1]: Starting 123Solar...
Feb 20 12:58:20 orangepipc curl[883]: % Total % Received % Xferd Average Speed Time Time Time Current
Feb 20 12:58:20 orangepipc curl[883]: Dload Upload Total Spent Left Speed
Feb 20 12:58:27 orangepipc curl[883]: [711B blob data]
Feb 20 12:58:28 orangepipc systemd[1]: Started 123Solar.



from the admin page service is ON

no output at all from main or console page till i stop and restart service from the admin page and restart it

After manually switch service off and on from the admin page all working ok

Re: Update from 1.6.9.2

Posted: Tue Feb 20, 2018 2:49 pm
by jeanmarc
Looks good..
Did you use php-fpm ? If not, maybe remove it from 123solar.service "After=network.target nginx.service php-fpm.service"
You may need to "systemctl --user daemon-reload".

You can enable 123s debug, then reboot. Check ls -l /srv/http/123solar/scripts/123solar.pid and more /srv/http/123solar/scripts/123solar.pid
See if the process is running ps -ef | grep 123s.
Then report the /data/123solar.err log.

Re: Update from 1.6.9.2

Posted: Tue Feb 20, 2018 6:31 pm
by Francesco
Yes, using php7.0-fpm. 123solar.service modified my me (php7.0-fpm.service instead fo the standard php-fpm). This is working with old version 1.6.9.2

root@orangepipc:~# cat /etc/systemd/system/123solar.service
[Unit]
Description=123Solar
Requires=network.target
After=network.target nginx.service php7.0-fpm.service

[Service]
Type=oneshot
ExecStart=/usr/bin/curl http://localhost/123solar/scripts/boot123s.php

[Install]
WantedBy=default.target
root@orangepipc:~#



root@orangepipc:~# locate 123solar.pid
/var/www/html/123solar/scripts/123solar.pid
root@orangepipc:~# more /var/www/html/123solar/scripts/123solar.pid
850
root@orangepipc:~# ps -ef | grep 123s
www-data 850 1 0 17:24 ? 00:00:00 php 123solar.php
root 2079 1850 0 17:26 pts/0 00:00:00 grep --color=auto 123s
root@orangepipc:~#


from log file:

20/02/2018 18:22:33 Stopping 123Solar (14497)

#* 20/02/2018 18:22:35 Starting 123Solar debug (9591)

#* 20/02/2018 18:24:24 Starting 123Solar on boot debug (850)

nothing else... seems ok but now the inverter is off (no sun)

i will try again tomorrow morning when inverter is on.

Thank you jeanmarc for your support!

Re: Update from 1.6.9.2

Posted: Tue Feb 20, 2018 7:55 pm
by jeanmarc
All seem correct.. let's see tomorrow :geek:
Please also return /var/www/html/123solar/data/123solar.err

Re: Update from 1.6.9.2

Posted: Wed Feb 21, 2018 8:20 am
by Francesco
Ok this morning service from the admin page was on but no data at all (with no reboot)

from the err file:
root@orangepipc:~# cat /var/www/html/123solar/data/123solar.err
21/03/2017 22:33:27 Starting 123Solar

22/03/2017 21:55:57 Starting 123Solar

20/02/2018 18:22:33 Stopping 123Solar (14497)

#* 20/02/2018 18:22:35 Starting 123Solar debug (9591)

#* 20/02/2018 18:24:24 Starting 123Solar on boot debug (850)

PHP Notice: Undefined variable: daemon in /var/www/html/123solar/scripts/123solar.php on line 58



and then same procedure (stop and restart from the admin page:

21/03/2017 22:33:27 Starting 123Solar

22/03/2017 21:55:57 Starting 123Solar

20/02/2018 18:22:33 Stopping 123Solar (14497)

#* 20/02/2018 18:22:35 Starting 123Solar debug (9591)

#* 20/02/2018 18:24:24 Starting 123Solar on boot debug (850)

PHP Notice: Undefined variable: daemon in /var/www/html/123solar/scripts/123solar.php on line 58
21/02/2018 08:09:36 Stopping 123Solar (850)

#* 21/02/2018 08:09:38 Starting 123Solar debug (7725)

#* 21/02/2018 08:10:12 Starting 123Solar debug (7800)


and as usual all working ok after manual sart and stop.

Only found:

PHP Notice: Undefined variable: daemon in /var/www/html/123solar/scripts/123solar.php on line 58

Re: Update from 1.6.9.2

Posted: Wed Feb 21, 2018 8:57 am
by jeanmarc
okey.. How do you start sbfspot ?
My guess is that the sbfspot daemon isn't started after a reboot...

Re: Update from 1.6.9.2

Posted: Wed Feb 21, 2018 9:32 am
by Francesco
Don't have any SBFspot daemon running. (also no local sqllite database configured).

Just compiled sbfspot bin and copied in folder /admin the following files:

date_time_zonespec.csv
TagListEN-US.txt
TagListEN-IT.txt

This is necessary for script (if i'm not wrong):

SBFspot.php
SBFspot_checks.php
SBFspot_startup.php

Of course copied in /config the SBFspot_0.cfg


this file are also in the 1.6.9.2 installation.

Another upgrade: communication test in the inverter config page is ok also when no data are dispayed in the main page (before the start and stop tricks)

Re: Update from 1.6.9.2

Posted: Wed Feb 21, 2018 11:47 am
by jeanmarc
how odd :?
Is it possible for me to log on your system ? You can PM me a temporary password ?