You are not logged in.
Pages: 1
After an upgrade to 9.4.4 it is telling me that the database is not up to date: You are trying to use GLPI with outdated files compared to the version of the database. Please install the correct GLPI files corresponding to the version of your database.
It does not give upgrade option. From documentation if found the solution is to run: php bin/console db:update
I get the following error: Could not open input file: bin/console
Nothing I found works to fix this problem. Any ideas, I am running centos 7.7 and it is the upgrade to this that caused the problem. It also updated glpi from the remi repo.
Thank for any help on this.
Ron
Offline
It does not give upgrade option. From documentation if found the solution is to run: php bin/console db:update
Youi have to change directory in glpi root.
for example
"cd /var/www/glpi"
then you could run the command
Offline
Hi Ron
It happened to me too (don't recall if it were in 9.4.4, thou...), but "automatic" way (i.e.: the button "proceed with upgrade" on welcome page, right after the upgrade) reappeared after granting correct ownership to all of the files (chown command, I'm using manual method for installation of new versions). Then all went smooth.
Offline
I have tried using the root directory /var/lib/glpi. The is no /var/www/glpi. There is only cgi-bin and html. Both are empty. I have also tried /var/lib/mysql/glpi
I have also tried search for bin/console and have found nothing.
Anything else to try? I have been dead since this upgrade. Is there way to go back to 9.4.3 or 9.4.2
Offline
The is no /var/www/glpi. There is only cgi-bin and html. Both are empty.
Well this is really strange.
Where is the installation directory of glpi? (to be clear: in which directory you find the index.php of glpi)
/var/lib/glpi is another directory
Offline
Hello,
It is in /var/lib/glpi. That is where I have tried to run it but get the same message, It was the directory I tried to run it when I posted the first message.
I have just tried running it from every directory that has a index.php. Still same results. I am confused, this has us down for over two weeks now. If I would have know this was going to happen I would disabled the remi repo.
Thanks,
Ron
Offline
Go inside /var/lib/glpi and post the output of ls command
Last edited by Kaya84 (2019-10-17 09:09:20)
Offline
This /var/lib/glpi
[root@glpiserver glpi]# ls
files
this is the files directory
[root@glpiserver files]# ls -l
total 96
drwxrws--- 4 root apache 236 Oct 14 11:39 _cache
drwxrws--- 2 root apache 6 Oct 14 11:39 _cron
drwxrws--- 2 root apache 6 Oct 14 11:39 _dumps
drwxrws--- 2 root apache 6 Oct 14 11:39 _graphs
drwxrws--- 2 root apache 33 Oct 14 11:39 _lock
drwxrwsrwx 258 apache apache 8192 Feb 7 2019 PDF
drwxrws--- 2 root apache 6 Oct 14 11:39 _pictures
drwxrws--- 4 root apache 50 Oct 14 11:39 _plugins
drwxrws--- 2 root apache 6 Oct 14 11:39 _rss
drwxrws--- 2 root apache 131072 Oct 17 13:07 _sessions
drwxrws--- 2 root apache 6 Oct 14 11:39 _tmp
drwxrws--- 2 root apache 6 Oct 14 11:39 _uploads
Thanks
Ron
Offline
This /var/lib/glpi
[root@glpiserver glpi]# ls
filesthis is the files directory
[root@glpiserver files]# ls -l
total 96
drwxrws--- 4 root apache 236 Oct 14 11:39 _cache
drwxrws--- 2 root apache 6 Oct 14 11:39 _cron
drwxrws--- 2 root apache 6 Oct 14 11:39 _dumps
drwxrws--- 2 root apache 6 Oct 14 11:39 _graphs
drwxrws--- 2 root apache 33 Oct 14 11:39 _lock
drwxrwsrwx 258 apache apache 8192 Feb 7 2019 PDF
drwxrws--- 2 root apache 6 Oct 14 11:39 _pictures
drwxrws--- 4 root apache 50 Oct 14 11:39 _plugins
drwxrws--- 2 root apache 6 Oct 14 11:39 _rss
drwxrws--- 2 root apache 131072 Oct 17 13:07 _sessions
drwxrws--- 2 root apache 6 Oct 14 11:39 _tmp
drwxrws--- 2 root apache 6 Oct 14 11:39 _uploadsThanks
Ron
As I said above, this is not the application directory.
Check the right one (eventually look inside your apache/nging server configuration)
Typicalli is inside /var/www/glpi or /var/www/html/glpi
To be more clear, this is what i found inside mine:
/var/www/html/glpi# ls -l
totale 244
drwxrwxr-x 2 www-data www-data 4096 ago 22 14:21 ajax
-rw-rw-r-- 1 www-data www-data 51119 giu 20 15:06 apirest.md
-rw-rw-r-- 1 www-data www-data 1439 giu 20 15:06 apirest.php
-rw-rw-r-- 1 www-data www-data 1406 giu 20 15:06 apixmlrpc.php
drwxrwxr-x 2 www-data www-data 4096 giu 20 15:06 bin
-rw-rw-r-- 1 www-data www-data 19902 giu 20 15:06 CHANGELOG.md
drwxrwxr-x 2 www-data www-data 4096 giu 20 15:06 config
-rw-rw-r-- 1 www-data www-data 1868 giu 20 15:06 CONTRIBUTING.md
-rw-rw-r-- 1 www-data www-data 18092 giu 20 15:06 COPYING.txt
drwxrwxr-x 4 www-data www-data 4096 lug 16 15:14 css
drwxrwxr-x 14 www-data www-data 4096 giu 20 15:06 files
drwxrwxr-x 2 www-data www-data 24576 ott 4 09:03 front
drwxrwxr-x 5 www-data www-data 32768 ott 10 16:29 inc
-rw-rw-r-- 1 www-data www-data 7490 giu 20 15:06 index.php
drwxrwxr-x 3 www-data www-data 4096 lug 8 14:45 install
drwxrwxr-x 2 www-data www-data 4096 giu 20 15:06 js
drwxrwxr-x 16 www-data www-data 4096 giu 20 15:06 lib
drwxrwxr-x 2 www-data www-data 4096 giu 20 15:06 locales
drwxrwxr-x 7 www-data www-data 4096 giu 20 15:06 pics
drwxrwxr-x 8 www-data www-data 4096 ott 7 15:54 plugins
-rw-rw-r-- 1 www-data www-data 5706 giu 20 15:06 README.md
drwxrwxr-x 3 www-data www-data 4096 giu 20 15:06 scripts
drwxrwxr-x 2 www-data www-data 4096 giu 20 15:06 sound
-rw-rw-r-- 1 www-data www-data 6465 giu 20 15:06 status.php
-rw-rw-r-- 1 www-data www-data 481 giu 20 15:06 SUPPORT.md
drwxrwxr-x 19 www-data www-data 4096 giu 20 15:06 vendor
Offline
I have a directory that most of files you have. Still no change, see results below of the both ls and update command.
[root@glpiserver files]# cd /usr/share/glpi
[root@glpiserver glpi]# ls -l
total 204
drwxr-xr-x 2 root root 8192 Oct 11 08:01 ajax
-rw-r--r-- 1 root root 51097 Sep 24 06:33 apirest.md
-rw-r--r-- 1 root root 1439 Sep 24 06:33 apirest.php
-rw-r--r-- 1 root root 1406 Sep 24 06:33 apixmlrpc.php
-rw-r--r-- 1 root root 18092 Sep 24 06:33 COPYING.txt
drwxr-xr-x 4 root root 4096 Oct 11 08:01 css
drwxr-xr-x 2 root root 24576 Oct 11 08:01 front
drwxr-xr-x 5 root root 24576 Oct 11 08:01 inc
-rw-r--r-- 1 root root 7490 Sep 24 06:33 index.php
drwxr-xr-x 3 root root 4096 Oct 11 08:01 install
drwxr-xr-x 2 root root 326 Oct 11 08:01 js
drwxr-xr-x 15 root root 322 Oct 11 08:01 lib
drwxr-xr-x 2 root root 4096 Oct 11 08:01 locales
drwxr-xr-x 7 root root 4096 Oct 11 08:01 pics
drwxr-xr-x 9 root root 133 Oct 11 08:06 plugins
drwxr-xr-x 3 root root 113 Oct 11 08:01 scripts
drwxr-xr-x 2 root root 158 Oct 11 08:01 sound
-rw-r--r-- 1 root root 6465 Sep 24 06:33 status.php
drwxr-xr-x 2 root root 26 Oct 11 08:01 vendor
[root@glpiserver glpi]# php bin/console db:update
Could not open input file: bin/console
[root@glpiserver glpi]#
Offline
I believe you need set correct Apache path to GLPI. The directory's owner must be apache to deliver the permissions and appointment to internal system-files.
Offline
Hi mecmav,
I don't understand, everything was working fine for the past 2 years. On the upgrade to 9.4.4 it says an database upgrade is needed, and I can not do the database upgrade. I have always done this from the web page. Now it's not giving me that option so I am trying to do this using "php bin/console db:update" and I get following response: "Could not open input file: bin/console".
This has been working the last few years and I took over this 2 years ago. Everything had been working. This upgrade happened on 10/9/2019. I cannot get it working without doing the data upgrade, and cannot do the upgrade.
Ron
Last edited by Rocketrrt (2019-10-18 22:30:09)
Offline
As said above, if it works it doesn't mean that is correctly configured.
First of all (this is a security problem) the files are owned by root and this is BAD, really BAD.
Fix it! (chown -R apache:apache *) or the user which run apache
Seconds: How did you upgraded GLPI?
As I can see there are some files missing (as bin folder).
If you download the tarball from the official repo ( https://github.com/glpi-project/glpi/re … -9.4.4.tgz ) you will see the bin folder with "console" file.
So check this and explain .
Offline
HI I will do the fix, and download the tarball. This update was done with regular update command (yum update). I had the remi repository enable as that where I got it from initially. I will let know if this works.
Thank you for your help,
Ron
Offline
Hi kaya84,
I have done the changes you recommend and everything is work great again. Thank you very much.
Again Thank You,
Ron
Offline
I guess remi repo doesn't deploy full sources.
Glad to know it worked
Offline
Hi,,
I have some litle problem..
GLPI install with RPM install on centos 7, using yum install glpi, GLPI 9.4.5
and then, i moved /usr/share/glpi to /var/www/glpi
how yo update to GLPI 9.4.6 ?
Last edited by teguh.umar (2020-05-27 19:39:13)
GLPI 10.0.10
Installation mode: zip on OREL9
Offline
Pages: 1