Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
update manager error
#11
Hi vic,

sorry for late reply.
I was update to 7.0NG.709 but same problem.

Error in package extraction.

Thanks.
jdpoe
 Reply
#12
Hi jdpoe,

Can you say me the version of PHP that do you have installed?

Best regards,

vic.
 Reply
#13
Hi vic,

I'm currently using PHP 5.6.

Thanks.
jdpoe
 Reply
#14
Hi jdpoe,

Have you looked if the memory of php is correct?
The update manager needs a minimum of 500Mb to work correctly.
Check the variable "memory_limit" in this file: /etc/php.ini

Code:
memory_limit = 500M

Best regards,

vic.
 Reply
#15
Hi vic,

It is not locked.
It has already been set memory_limit = 512M

Thanks.
jdpoe
 Reply
#16
Hi jdpoe,

I'm testing the pandora console and I checked its functioning in many compatible operating systems an I've seen some bug.
I recommended you make a backup of the pandora_console directory with all its content and save it in a safe place, then uninstall the console.

Download the latest version of the pandora_console and install it.

Rename or delete the file install.php of this directory:
Code:
/var/www/html/pandora_console/install.php

Also copy the file config.php of the backup (/pandora_console/include/config.php) in the same folder of the new installation.
Code:
/var/www/html/pandora_console/include/config.php

Finally access the console and check the Update Manager Online.

If you have any problem, tell me.

Best regards,

vic.
 Reply
#17
I had the same issue and tried everything I could think of.  I just decided to trace the issue in the code.

In my case I found that on line 658 of functions_update_manager.php where we do a check against $result :

Code:
if ($result != 0) {
//... Failed extraction code
}

$result was returning true on success, so evidently it's not equal to 0.

Changing the line to :

Code:
if ($result !== true) {

has resolved the issue on my end.

Hopefully this helps someone out there!
 Reply
#18
(08-30-2017, 02:24 PM)SpoonSauce Wrote: Hopefully this helps someone out there!
I doubt whether to say "yes" or "no".

First of all, it was supposed to help developers.
But looks like they don't care.
Which is also proven by the fact that nobody test that code.

As for me, after this fix, update processed further, popped out tons of messages and says it is complete.
But, of course, no, it wasn't complete.
Extracted pandora_console directory was placed inside existing pandora_console directory.
When I manually replaced old content with new one, server pages started to show PHP errors.
And only after manual applying of fresh pandoradb.sql, server now can be called as working.

But who knows which other steps update manager "forgot" to perform.
 Reply
#19
(08-30-2017, 02:24 PM)SpoonSauce Wrote: I had the same issue and tried everything I could think of.  I just decided to trace the issue in the code.

In my case I found that on line 658 of functions_update_manager.php where we do a check against $result :

Code:
if ($result != 0) {
//... Failed extraction code
}

$result was returning true on success, so evidently it's not equal to 0.

Changing the line to :

Code:
if ($result !== true) {

has resolved the issue on my end.

Hopefully this helps someone out there!
Hi, thank you for the Post, it help me.
In my Case the file was in C:\PandoraFMS\htdocs\pandora_console\include\functions_update_manager.php in Line 665. After i change to true the Update works.
 Reply


Users browsing this thread: 1 Guest(s)


(c) 2006-2018 Artica Soluciones Tecnológicas. Contents of this wiki are under Create Common Attribution v3 licence. | pandorafms.com | pandorafms.org

Theme © MyBB Themes