Koozali.org: home of the SME Server

GLPI dead after upgrade

Offline bcalder01

  • ***
  • 47
  • +0/-0
GLPI dead after upgrade
« on: April 24, 2009, 05:46:29 PM »
I did two things simultaneously, and now I get a "Sorry. You can't access directly to this file" error when trying to access a working GLPI installation (OCS is functioning correctly, as is server-manager) -

- Applied latest SME server updates as of 24 April
- Copied 3 GLPI plugin directories to /opt/inventory/glpi/plugins (just copied them)

... I assume it was the software upgrade that broke it.

I have restarted httpd. How can I rectify this?

Offline bcalder01

  • ***
  • 47
  • +0/-0
Re: GLPI dead after upgrade
« Reply #1 on: April 24, 2009, 06:01:13 PM »
OK, I removed the compte & manageentity directories, and now it works after restarting httpd. At least I know where the issue is.

If anyone has any nuggets of wisdom as to why copying one of these plugins to GLPI would stop it, I'd be grateful! Permissions looked to be 755.

Bruce

Offline bcalder01

  • ***
  • 47
  • +0/-0
Re: GLPI dead after upgrade
« Reply #2 on: April 24, 2009, 06:07:30 PM »
Sorry, two last pieces of info ...

- Latest SME version installed (0.68.3)
- Tried recopying compte directory to plugins directory. Got the error. Changed -R the perms on the directory to 777 & restarted httpd. Still denied access.
- Removed compte directory & restarted httpd. Now working fine.

I'm still a Linux minnow, so any guidance would be greatly appreciated.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: GLPI dead after upgrade
« Reply #3 on: April 24, 2009, 07:30:44 PM »
Changed -R the perms on the directory to 777
For starters never again set the permissions to 777 as it is a bad thing and a security risk as anything or anyone is able to modify the files with such a permission setting.

To find the cause of your error you will have to try and hunt for clues as we do not have (a USB powered) crystal ball. You could try looking in /var/log/messages /var/log/httpd/error_log and /var/log/httpd/access_log around the time you tried and see if there are any clues.

If you have questions on what you find feel free to post back, perhaps others can help you if you provide a little more information for us to go with.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: GLPI dead after upgrade
« Reply #4 on: April 24, 2009, 07:31:38 PM »
- Latest SME version installed (0.68.3)
I doubt this is the version number of SME Server, but the SME Server version number is most likely somewhere around 7.4.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline alex_rhys-hurn

  • **
  • 29
  • +0/-0
Re: GLPI dead after upgrade
« Reply #5 on: April 26, 2009, 08:58:28 PM »
Hi,

I am having the exact same issue. I can replicate bcalder issue. Before we decide that it may be a bug in this contrib could anyone else help us to make sure we are being dumb?

Some detail of the program.

I am working with a test SME Server. It is a clean install of SME 7.4.

Following this wiki article for the OCS Inventory Tools Contrib I have it installed and running:  http://wiki.contribs.org/OCS_Inventory_Tools

Glpi and OCS work fine.

Now the problem. Following the instructions on the GLPI Wiki for installing new plugins at this url:  http://glpi-project.org/wiki/doku.php?id=en:plugins.

I try to install a plugin by SCP to the /opt/inventory/glpi/plugins folder. I un pack the archive there.

As soon as this is done visting the GLPI interface at http://servername/glpi gives an error : "Sorry. You can't access directly to this file"

Removing the fodler and fies put there results in the glpi working again.

I have listed the directory and notice that the plugin gives user of 1000:1000 to the ownership of the directory where all other glpi stuff is www:root I tried chown to no effect.

I tried all combinations of permissions of 550 and 440 and owner to no avail.

It looks to me like a glpi problem, but cant find any similar experiences in glpi forum so appeal to the contrib auther here.

Help appreciated. ANd apologies if I have missed something obvious.

Rgds

Alex

Offline alex_rhys-hurn

  • **
  • 29
  • +0/-0
Re: GLPI dead after upgrade
« Reply #6 on: April 26, 2009, 09:18:02 PM »
Deal All,

Sorry about wasting all your time.

I found the cause of the problem here: http://glpi-project.org/forum/viewtopic.php?pid=50153

IN short, the SME contrib uses GLPI 0.68, THis error shows up if you are installing GLPI plugins in 0.68 when they are intended for use in glpi 0.70.

Now to the contrib author: I have attempted to use the procedure for updating the contrib as set out in the wiki, however this does not indicate that there is any glpi update.

The latest glpi version is 0.71

Can anybody help me to update the Glpi in SME server? Can I just download and install the glpi component from the glpi website?  will it break OCS or anything else?

Regards

ALex

Offline bcalder01

  • ***
  • 47
  • +0/-0
Re: GLPI dead after upgrade
« Reply #7 on: April 27, 2009, 09:02:33 AM »
Thanks for the posts, all.

Yes, I also meant I was using GLPI 0.68 (My SME is also v7.4), as I had suspected it might have something to do witht he version, but got caught in my inarticulateness (?).

I'll look forward to seeing what the contrib author says, or if it's deemed possible to install the more recent GLPI under SME.

Offline alex_rhys-hurn

  • **
  • 29
  • +0/-0
Re: GLPI dead after upgrade
« Reply #8 on: April 27, 2009, 09:47:35 AM »
Hey there...

Well, I went to bed late last night.....

I was able to install a new version of GLPI by following the normal glpi installation procedure. For some reason I was not able to upgrade though...

I installed version 0.71.5.

I was able to install and use plugins. It broke the OCS integration though and I couldnt find out how to re-enable it.....

I had to install the phpmyadmin contrib to then change the glpi db password as the contrib  maker doesnt make that available.

I also had to make the files/ and configs/ folder chmod 777. I know this is wrong but I couldnt get it to install without that. I tried 755 also....

Any help with upgrading and install (to preserve data) and if the contrib maker can tell us the existing glpi db user password would be a help.

Standing by:

Alex

P.S. I am making these changes on my development SME Server. It is NOT in production and I know chmod 777 must never be done. This was an excersise just to see if I could get GLPI to install in a rough and ready manner.
« Last Edit: April 27, 2009, 10:42:33 AM by alex_rhys-hurn »

Offline bcalder01

  • ***
  • 47
  • +0/-0
Re: GLPI dead after upgrade
« Reply #9 on: April 27, 2009, 09:54:09 AM »
Oh man ... good luck, Alex, this is what we all want to avoid!!