v1.7.1 install error

Talks about solar stuff
Post Reply
chrisarcher
Posts: 9
Joined: Fri Jan 06, 2017 11:00 am

v1.7.1 install error

Post by chrisarcher » Thu Jan 11, 2018 4:37 pm

Hi,
I have just tried updating to 1.7.1 and I get the following error :


ERROR: mv /var/www/123solar/ /var/www/123solar.20180111/

The update didn't complete as expected !

CURDIR: /var/www/123solar
SRVDIR: /var/www/123solar
SELFDIR: /admin


Now when I go back to the main page I get :

404 Not Found
nginx/1.6.2


I am running on a Rpi2 with Jessie. How can I either get my previous version working again, or install the update?

Thanks,
Chris

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

Re: v1.7.1 install error

Post by jeanmarc » Thu Jan 11, 2018 4:40 pm

Hi,
From which version did you update ?
Make sure /var/www/ is owned by the webserver user (chown -R www-data:www-data /var/www/)

chrisarcher
Posts: 9
Joined: Fri Jan 06, 2017 11:00 am

Re: v1.7.1 install error

Post by chrisarcher » Thu Jan 11, 2018 4:50 pm

Sorry - it was from v1.7.0. I had already set the permissions as you said (chown -R www-data:www-data /var/www/) when I did the previous update.
Thanks
Chris

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

Re: v1.7.1 install error

Post by jeanmarc » Thu Jan 11, 2018 5:05 pm

What's strange is that your server dir is /var/www/123solar or it should be /var/www/.
Did you change your webserver config ? 123s should be installed on base directory.

Also, moving output the error because it can't write in /var/www/ as www user.

chrisarcher
Posts: 9
Joined: Fri Jan 06, 2017 11:00 am

Re: v1.7.1 install error

Post by chrisarcher » Thu Jan 11, 2018 5:10 pm

I don't remember - but I suppose I must have.
In my nginx.conf file I have :

root /var/www/123solar;

chrisarcher
Posts: 9
Joined: Fri Jan 06, 2017 11:00 am

Re: v1.7.1 install error

Post by chrisarcher » Thu Jan 11, 2018 5:29 pm

When I look in the folder I see this :
pi@raspberrypi:/var/www $ ls
123solar.20170823 123solar.20180111 html

... so it does seem to have done the mv command? You can see the 123solar folder from the v1.7.0 update last August.
Last edited by chrisarcher on Thu Jan 11, 2018 5:30 pm, edited 1 time in total.

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

Re: v1.7.1 install error

Post by jeanmarc » Thu Jan 11, 2018 5:30 pm

I guess that's the problem ;)
Change you webserver config and restart it.
You can rename 123solar.20180111/ to 123solar/ and try the update ?

chrisarcher
Posts: 9
Joined: Fri Jan 06, 2017 11:00 am

Re: v1.7.1 install error

Post by chrisarcher » Thu Jan 11, 2018 5:31 pm

So do I need to change the nginx.conf file? How come it worked for the v1.7.0 update?

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

Re: v1.7.1 install error

Post by jeanmarc » Thu Jan 11, 2018 5:35 pm

I dunno..
You can then create this index.html page on base server directory if you wish to redirect :

Code: Select all

<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta http-equiv="refresh" content="0; url=123solar" />
<title>Redirection html</title>
<meta name="robots" content="noindex,follow" />
</head>
</html>

chrisarcher
Posts: 9
Joined: Fri Jan 06, 2017 11:00 am

Re: v1.7.1 install error

Post by chrisarcher » Fri Jan 12, 2018 1:44 pm

Thanks for that - its all working on v1.7.1. I left the root at var/www and put the index.html in as you said and the redirect works fine.

Many thanks for you help.
Chris

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest