Error updating from 1.7.2 to 1.7.3

Talks about solar stuff
Post Reply
extreme79
Posts: 4
Joined: Sat Jun 16, 2018 11:33 am

Error updating from 1.7.2 to 1.7.3

Post by extreme79 » Sun Jun 17, 2018 10:16 pm

Hi guys!

I'm trying to update to the latest version, but I got:

Code: Select all

ERROR: mv /var/www/123solar/_INSTALL/123solar/ /var/www/123solar/

The update didn't complete as expected !

CURDIR: /var/www/123solar 
SRVDIR: /var/www/123solar 
SELFDIR: /admin
I installed 123solar under /var/www/123solar (under raspbian stretch on rpi), running nginx, www folder owner www-data (the user in nginx conf), 123solar folder owner is again www-data (and all the subfolders).

Code: Select all

pi@raspisolar:/var/www $ ls -l
totale 4
drwxrwxrwx 12 www-data www-data 4096 giu 14 23:08 123solar
pi@raspisolar:/var/www $ 
But I'm unable to understand where's is the error.
After the error, I found the backupped folder 123solar.yyyymmdd.
Moving back to the 123solar folder, all works again with all data.. but obviously I'm again at the starting point.
Can you point me in the right direction?

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

Re: Error updating from 1.7.2 to 1.7.3

Post by jeanmarc » Mon Jun 18, 2018 6:23 am

Hi,
It's because you set /var/www/123solar as base server directory in nginx. It should be /var/www/ or /srv/http..

extreme79
Posts: 4
Joined: Sat Jun 16, 2018 11:33 am

Re: Error updating from 1.7.2 to 1.7.3

Post by extreme79 » Mon Jun 18, 2018 9:04 pm

probably I have to understand a little better.. first time on linux a little bit more seriously :P

I set root to /var/www/123solar intentionally, beacuse I want 123solar on my ip port 80 .. but I'm planning to setup other thing in other ports.
so my nginx.conf will appear like this:

Code: Select all

server {
		listen 80;
       		root /var/www/123solar/;
                index  index.html index.php;
                .
                .
 	}
 	server {
		listen 88;
       		root /var/www/something_else/;
                index  index.html index.php;
                .
                .
 	}
 	 	server {
		listen 8080;
       		root /var/www/something_else_again/;
                index  index.html index.php;
                .
                .
 	}
This is the reason of root as 123solar instead www.. as I understand this is not wrong, is correct in a multiple server environment..
or not? :roll: :?:

Anyway.. I temporary changed the root to /var/www like expected and the update process completed itself succesfully.
Next I moved back to my original config. 8-)

Thanks to have addressed me in the right direction.

I think could be useful to add a "fix" to one of the next relases to let 123solar to update also if installed in a multi-server environment.

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

Re: Error updating from 1.7.2 to 1.7.3

Post by jeanmarc » Tue Jun 19, 2018 7:05 am

Hi,
I'll make a check to get an error if 123s is installed as base root directory.
Webserver root should be set to /var/www/, it's not about the http port.
The reason because 123s should not be on root is because it must be able to write as www user in the directory above (for /var/www/_INSTALL ).

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest