123solar 1.8

Talks about solar stuff
jeanmarc
Posts: 2086
Joined: Thu Aug 29, 2013 7:16 am

Re: 123solar 1.8

Post by jeanmarc » Sat Mar 21, 2020 1:56 pm

i'll look later to allow group
For 1, 2, 3 requests i will not. Inverters should report alarms and warnings via their com app and mostly in English.
4) you can do so if you wish
5) Never, i don't like spam and useless messages
6) It show the inverter number with the #, i could add the name

andy
Posts: 73
Joined: Wed May 04, 2016 10:25 am
Location: Ukraine
Contact:

Re: 123solar 1.8

Post by andy » Sat Mar 21, 2020 2:18 pm

thanks for answer
i will write script

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

Re: 123solar 1.8

Post by jeanmarc » Sat Mar 21, 2020 6:21 pm

BTW did you solved the /var/lock things ?

andy
Posts: 73
Joined: Wed May 04, 2016 10:25 am
Location: Ukraine
Contact:

Re: 123solar 1.8

Post by andy » Sun Mar 22, 2020 2:21 pm

BTW did you solved the /var/lock things ?
NO.
after upgrade my aurora script didnt work!
Image
BUT

Code: Select all

[root@pi alarm]# sudo -u http aurora -a 3 -c -T -Y5 -d0 -e -3 /dev/ttyUSB0
20200322-15:21:20   749.295593       6.296184    4717.703125     714.157227       6.260574    4471.034180     241.683228      12.419404    8894.550781      49.985004      96.798401      20.637207      16.892578       77.374      720.474        0.000     1739.774     3554.774    49440.774    49440.774     0.000000   241.729813   237.863144   239.765137    12.410375    12.374193    12.328816    49.986004    49.986004    49.986004    OK

Code: Select all

 ls -la /var/lock/
загалом 0
drwxr-xr-x  4 root root 100 бер 22 15:21 .
drwxr-xr-x 16 root root 480 бер 22 15:02 ..
-rw-r--r--  1 root http   0 бер 22 15:21 LCK..ttyUSB0
drwx------  2 root root  40 бер 20 02:09 lvm
drwxr-xr-x  2 root root  40 бер 20 02:09 subsys

Code: Select all

 cat /var/log/nginx/error.log
2020/03/22 15:06:06 [error] 26949#26949: *16 FastCGI sent in stderr: "PHP message: PHP Warning:  file_put_contents(/var/lock/test): failed to open stream: Permission denied in /srv/http/123solar/admin/help.php on line 106" while reading response header from upstream, client: ****, server: localhost, request: "GET /123solar/admin/help.php HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/php-fpm.sock:", host: "****:***", referrer: "http://***:***/123solar/admin/admin.php"
2020/03/22 15:06:43 [error] 26949#26949: *22 FastCGI sent in stderr: "PHP message: PHP Warning:  file_put_contents(/var/lock/test): failed to open stream: Permission denied in /srv/http/123solar/admin/help.php on line 106" while reading response header from upstream, client: ****, server: localhost, request: "GET /123solar/admin/help.php HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/php-fpm.sock:", host: "***:***", referrer: "http://***:****/123solar/admin/admin.php?startstop=done"
2020/03/22 15:16:35 [error] 26949#26949: *48 FastCGI sent in stderr: "PHP message: PHP Warning:  file_put_contents(/var/lock/test): failed to open stream: Permission denied in /srv/http/123solar/admin/help.php on line 106" while reading response header from upstream, client: *****, server: localhost, request: "GET /123solar/admin/help.php HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/php-fpm.sock:", host: "****:****", referrer: "http://****:***/123solar/admin/admin.php"
2020/03/22 15:17:37 [error] 26949#26949: *51 directory index of "/srv/http/" is forbidden, client: ****, server: localhost, request: "GET / HTTP/1.1", host: "****:****"
2020/03/22 15:20:32 [error] 26949#26949: *58 directory index of "/srv/http/" is forbidden, client: ***, server: localhost, request: "GET / HTTP/1.1", host: "***:***"
IP addresses hidden by*

andy
Posts: 73
Joined: Wed May 04, 2016 10:25 am
Location: Ukraine
Contact:

Re: 123solar 1.8

Post by andy » Sun Mar 22, 2020 2:44 pm

problem with /var/lock solved by
chmod 777 /run/lock
but how to solve problem with aurora error?

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

Re: 123solar 1.8

Post by jeanmarc » Sun Mar 22, 2020 3:48 pm

What is your distro ? don't you have a /usr/lib/tmpfiles.d/legacy.conf file ?
Mind that chmod /run won't surive a reboot.

Which upgrade you talk about ? does aurora run from terminal ? If you run php >7.4, you set PrivateDevices=false in php-fpm.service.

I use Arch (always fully updated) and all work for sure.

andy
Posts: 73
Joined: Wed May 04, 2016 10:25 am
Location: Ukraine
Contact:

Re: 123solar 1.8

Post by andy » Sun Mar 22, 2020 4:16 pm

i use Arch too
problem with aurora after upgrade arch (pacman -Syu)

Code: Select all

 uname -a
Linux pi 4.19.108-1-ARCH #1 SMP PREEMPT Tue Mar 10 01:42:12 UTC 2020 armv7l GNU/Linux

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

Re: 123solar 1.8

Post by jeanmarc » Sun Mar 22, 2020 4:22 pm

Well, i use Arch for x86 ;) Kernel 5.5.4, PHP 7.4..3.
So about /usr/lib/tmpfiles.d/legacy.conf file ? PHP version ?

andy
Posts: 73
Joined: Wed May 04, 2016 10:25 am
Location: Ukraine
Contact:

Re: 123solar 1.8

Post by andy » Sun Mar 22, 2020 4:30 pm

jeanmarc wrote: Sun Mar 22, 2020 3:48 pm What is your distro ? don't you have a /usr/lib/tmpfiles.d/legacy.conf file ?
Mind that chmod /run won't surive a reboot.

Which upgrade you talk about ? does aurora run from terminal ? If you run php >7.4, you set PrivateDevices=false in php-fpm.service.

I use Arch (always fully updated) and all work for sure.
nano /etc/tmpfiles.d/legacy.conf

Code: Select all

#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.

# See tmpfiles.d(5) for details

# These files are considered legacy and are unnecessary on legacy-free
# systems.

d /run/lock 0755 root root -
L /var/lock 0777 - - - ../run/lock

# /run/lock/subsys is used for serializing SysV service execution, and
# hence without use on SysV-less systems.

d /run/lock/subsys 0755 root root -

# /forcefsck, /fastboot and /forcequotacheck are deprecated in favor of the
# kernel command line options 'fsck.mode=force', 'fsck.mode=skip' and
# 'quotacheck.mode=force'

r! /forcefsck
r! /fastboot
r! /forcequotacheck
php -v

Code: Select all

PHP 7.4.4 (cli) (built: Mar 18 2020 05:48:13) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies

andy
Posts: 73
Joined: Wed May 04, 2016 10:25 am
Location: Ukraine
Contact:

Re: 123solar 1.8

Post by andy » Sun Mar 22, 2020 4:35 pm

i insert print_r(@dataarray) in /srv/http/123solar/admin/admin_invt2.php
Image
whats wrong?

after reboot and manual
chmod 777 /run/lock
all fine!
but after reboot - problem with /var/lock

Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests