Modify

Ticket #3210 (closed defect: worksforme)

Opened 21 months ago

Last modified 20 months ago

"Can't locate object method "png" via package "GD::Image"

Reported by: forumail2@… Owned by: jamor@…
Milestone: Component: base
Severity: normal Keywords:
Cc:

Description

Can't locate object method "png" via package "GD::Image" at /usr/share/perl5/Chart/Base.pm line 265.

This is the error i get when trying to see the disk usage.

Recently i tried to update the GD lib, libpng, libjpeg and other simiral libraries(via apt-get install), in order to install squid-graph to my server.

From that time and on, i get the error above. As i read i n other forums it is a perl relevant error, like the function GD:Image cannot locate the png library.

Where is the default libpng place installed in zentyal(i use zentyal installer)?

Do u thing that if i reinstall the libpng in zentyal's default location the problem will be solved?

Any other suggestions?

Attachments

eboxGD.log Download (146.4 KB) - added by forumail2@… 21 months ago.
The log file

Change History

Changed 21 months ago by forumail2@…

The log file

comment:1 Changed 21 months ago by jamor@…

  • Owner changed from jacalvo@… to jamor@…
  • Status changed from new to assigned

Hello forumail2, Zentyal doesnt call this method directly but through the Chart library. Could you try to update it to see if the latest version works with the changes of libGD/.

To do so:

apt-get install libchart-perl

comment:2 Changed 21 months ago by jamor@…

  • Status changed from assigned to closed
  • Resolution set to worksforme

I have checked that with the last version of libraries, it works. There are:

libgd2-xpm:
  Installed: 2.0.36~rc1~dfsg-3.1ubuntu1
  Candidate: 2.0.36~rc1~dfsg-3.1ubuntu1
  Version table:
 *** 2.0.36~rc1~dfsg-3.1ubuntu1 0
        500 http://ad.archive.ubuntu.com/ubuntu/ lucid/main Packages
        500 file:/var/tmp/ebox-packages/ ./ Packages
        100 /var/lib/dpkg/status
libgd-gd2-perl:
  Installed: 1:2.39-2build1
  Candidate: 1:2.39-2build1
  Version table:
 *** 1:2.39-2build1 0
        500 http://ad.archive.ubuntu.com/ubuntu/ lucid/main Packages
        500 file:/var/tmp/ebox-packages/ ./ Packages
        100 /var/lib/dpkg/status
libchart-perl:
  Installed: 2.4.1-5
  Candidate: 2.4.1-5
  Version table:
 *** 2.4.1-5 0
        500 http://ad.archive.ubuntu.com/ubuntu/ lucid/main Packages

I will close this ticket. Please, reopen it if you upgrade and it continues to fail. Or if you see another error related with this issue.

comment:3 Changed 21 months ago by forumail2@…

  • Status changed from closed to reopened
  • Resolution worksforme deleted

Thnks for the answer.

Unfortunately, i had already the latest versions of the libraries u mention above. I checked it.But the problem still occurs...

Something else that is happening to my server is that sometimes it has heavy load of cpu from the service postgres. This thing last for a long time, it stops for a while and then it continues...I do not know if this is relative(maybe i must open a new ticket for this),but i thought to mentioned it here..

So,to our issue,any other ideas?

comment:4 Changed 20 months ago by jacalvo@…

  • Status changed from reopened to closed
  • Resolution set to worksforme

Sorry but we can't reproduce this, could you provide detailed steps on how to reproduce it starting from a fresh install? Thanks!

comment:5 Changed 20 months ago by forumail2@…

  • Status changed from closed to reopened
  • Resolution worksforme deleted

Hello,

sorry i don't get what u mean by "reproduce" it...

U mean should i do a fresh install on my server or something else?

For what exactly do u nedd detailed step? As i explained i updated all the above libraries and that error occured. When u proposed the updating of the libraries, i said that the libraries where already installed on their latest versions, but the problem still occur!

Also, why everytime somebody writes a comment on the ticket, it's state turns to "closed"? Shouldn't a ticket be closed, only after a solution has benn found?

Thnks

comment:6 Changed 20 months ago by jamor@…

Hello forumail,

normally we tend to close ticket when we think there is no error in Zentyal or we are waitng feedback. We do this because in most cases we don;t get more responses for the reporter and we cannot reproduce it. For 'reproduce it' we mean to be able to generate the same error in our own test machines so we can confirm it and fix it.

Back to your problem..

We have tested with the server updated to the latest libraries and it worked. I believe that you have some packages from another sources. Have you changed your apt sources or installed anything by hand?.

comment:7 Changed 20 months ago by forumail2@…

Thnks for the reply.

Yes, i did install by hand libpng and libjpeg and xpmlib and another one that i cannot recall exactly, something like lib free...it was related to the others libraries and i think it was related to pictures..

I am also trying to recall if i installed libGD by hand and i think i did it. But running

apt-get install libgd2-xpm

isn't it "fixing" any error libGD may caused when installing by hand?

Should i try an libpng and lib jpeg "apt method" installation or something else???

comment:8 Changed 20 months ago by jamor@…

Hello, maybe you could try to install the same versions I had in my test system. You could do so using the sintax 'package=version' when running apt-get . Example: 'apt-get install libg2-xpm=2.0.36~rc1~dfsg-3.1ubuntu1'

comment:9 Changed 20 months ago by jacalvo@…

  • Status changed from reopened to closed
  • Resolution set to worksforme

Well, this is definitely not a bug en Zentyal, but a problem with your packages, so we are closing this. If you need further help with this issue, please go to  http://forum.zentyal.org.

comment:10 Changed 20 months ago by forumail2@…

Well, ok if u say so..

Just for the records, the versions u propose, are the latest versions there are out there...So it's not versions problem,meaning this is not MY packages problem..

Thnks anyway...

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.