Tao_Ren
February 27, 2017, 2:24pm
1
Hi,
Got some trouble to upgrade.
Here is what I’ve done :
Fresh centos 7 install
import database (with the same user as my old 1.7.4)
untar cms 1.7.9
put my settings.php in my cms repository
and now When I try to go to my cms web page I got a blank screen. No upgrade page.
here is the error when I put the display error in the lib/include.php :
Fatal error: Uncaught exception
'Stash\Exception\InvalidArgumentException' with message 'Failed to
create cache path.' in
/var/www/html/xibo/3rdparty/stash/src/Stash/Utilities.php:225
Stack trace:
#0 /var/www/html/xibo/3rdparty/stash/src/Stash/Driver/FileSystem.php(176): Stash\Utilities::checkFileSystemPermissions('/opt/xibolib/ca...', 504)
#1 /var/www/html/xibo/lib/app/pdoconnect.class.php(149): Stash\Driver\FileSystem->setOptions(Array)
#2 /var/www/html/xibo/lib/include.php(133): PDOConnect::configureCache(NULL, NULL)
#3 /var/www/html/xibo/index.php(24): include_once('/var/www/html/x...')
#4 {main} thrown in /var/www/html/xibo/3rdparty/stash/src/Stash/Utilities.php on line 225"
any idea ?
Alex
Tao_Ren
February 28, 2017, 10:11am
2
after some research, I tried to change the 2 files from the stash modul : Utilities.php and FileSystem.php. I get some from stash Github repo.
But didn’t solved the problem…
stash modul isn’t present in 1.7.4 (wanted to get files from my old server).
Thx for replies
Alex
dan
February 28, 2017, 11:26am
3
Are you sure your library location is writeable on your new installation? The stash filesystem driver will be trying to create a cache sub-folder under your library folder.
Tao_Ren
February 28, 2017, 11:53am
4
I did a chown -R apache:apache on my xibo folder.
Do you want me to try a 777 ?
Tao_Ren
February 28, 2017, 12:00pm
5
sorry for my fast previous answer.
apache can create a folder into lib :
sudo -u apache mkdir /var/www/html/xibo/lib/toto
result
ls -al
total 44
drwxr-xr-x 11 apache apache 4096 28 févr. 12:59 .
drwxr-xr-x 9 apache apache 4096 27 févr. 14:32 ..
drwxr-xr-x 2 apache apache 4096 27 févr. 14:32 app
drwxr-xr-x 2 apache apache 4096 27 févr. 14:32 data
drwxr-xr-x 2 apache apache 25 27 févr. 14:32 Entity
drwxr-xr-x 2 apache apache 32 27 févr. 14:32 Factory
drwxr-xr-x 2 apache apache 41 27 févr. 14:32 Helper
-rw-r--r-- 1 apache apache 6501 28 févr. 10:45 include.php
-rw-r--r-- 1 apache apache 0 27 févr. 14:32 index.html
drwxr-xr-x 2 apache apache 86 27 févr. 14:32 modules
-rw-r--r-- 1 apache apache 1372 27 févr. 14:32 oauth.inc.php
drwxr-xr-x 2 apache apache 4096 27 févr. 14:32 pages
drwxr-xr-x 2 apache apache 4096 27 févr. 14:32 service
drwxr-xr-x 2 apache apache 6 28 févr. 12:59 toto <----- here is my folder ---------------------------
-rw-r--r-- 1 apache apache 4737 27 févr. 14:32 xmds.inc.php
dan
February 28, 2017, 12:03pm
6
Where was your previous DB library configured to be saved? It is possible that the paths are not the same?
Tao_Ren
February 28, 2017, 12:19pm
7
previous lib path :
/var/www/html/xibo/lib
new lib path:
/var/www/html/xibo/lib
dan
February 28, 2017, 12:29pm
8
Oh really, I am amazed that works - lib
is a code include path - if you had maintenance enabled on your old install it would have deleted itself.
Your library path should be outside the web root - for example /var/www/library/
Also strnage - if you look at the error message it would imply that the library path is actually elsewhere? /opt/xibolib/ca...
Perhaps your old LIBRARY_LOCATION
was actually configured as lib/
?
Tao_Ren
February 28, 2017, 12:34pm
9
just to be sure you got all informations :
I 'm trying to to put my settings.php and my database (1.7.4) on a new server with xibo 1.7.9.
Really thx for your help.
dan
February 28, 2017, 12:35pm
10
OK, so you need to look at your old installation, in the web UI and check your library location - i suspect lib/
. You then really need to change that in your database backup dump to something more appropriate - i.e. /var/www/xibo_library
or similar.
Of you can edit that in your current restore of that DB using the mysql
client.
Tao_Ren
February 28, 2017, 12:41pm
11
sorry for my bad language :
OH MY F… GOD !!!
You are right !!!
… so sry !!! I feel like newbie …
my xibo lib path in the web ui : /opt/xibolib/
So sry to have made you loose your time with me…
Il will try to create the same path to my library on my new server and give you feedback in 1 hour (meeting time).
Alex
2 Likes
Tao_Ren
February 28, 2017, 1:12pm
12
you are great !!
it’s ok for the upgrade.
last question :
after upgrading my xibo server from 1.7.4 to 1.7.9 do I need to upgrade my client ?
1 more time : really thx !!!
Alex
Peter
February 28, 2017, 1:21pm
13
While not strictly necessary, it would be best and recommended to use Xibo for Windows 1.7.9 as well.
Tao_Ren
February 28, 2017, 3:00pm
14
ok cool. I will do the client upgrade but not ALL at the same time. I can do a “soft” migration.
Thx all
Cya
Alex