Hello Guest

Author Topic: Pandora 6.0 Update  (Read 3218 times)

0 Members and 1 Guest are viewing this topic.

Offline geoffrey.langdon

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
  • Windows SQL Server Background
    • View Profile
Pandora 6.0 Update
« on: February 01, 2016, 08:43:50 AM »
Hi all,

I have recently installed the free CentOS VM version of Pandora and have run the Network Recon with no issues.  Yesterday I noticed a warning saying there is an notification of an available update. Clicking it takes me to the Update manager which says there is a console update to version 151102.  I believe I am running Version 6.0 on CentOS 6.7.

When I click "Update to the latest version", I get an error "Failed to copy files".

It looks like it could be a permissions issue, though I get the same issue when I try it on the server console.

I have a Windows background, so I may be missing something obvious!

I have tried Yum update, and hit an error with Percona, which I have emailed them about (out of date URL perhaps), but not yet heard back.  Although the update manager was an enterprise feature in earlier installations, I believe it is now supposed to work in the free version (especially as it now warns that is is out of date on the toolbar).

Please let me know if you are having the same issue, or require further information.

Many thanks in advance for any help.


Geoff.

Offline geoffrey.langdon

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
  • Windows SQL Server Background
    • View Profile
Re: Pandora 6.0 Update
« Reply #1 on: February 01, 2016, 08:59:38 AM »
BTW.
The URL Update manager is set to: https://artica.es/pandoraupdate6/server.php

This link appears not to work manually.

Offline mike_moyse

  • Full Member
  • ***
  • Posts: 31
  • Karma: 0
    • View Profile
Re: Pandora 6.0 Update
« Reply #2 on: April 14, 2016, 06:44:21 AM »
I tried v5 a few years back, it had the same problem, it's a shame to see the same issue still unresolved and unanswered.

Offline AKevin

  • Administrator
  • Sr. Member
  • *****
  • Posts: 97
  • Karma: 3
    • View Profile
Re: Pandora 6.0 Update
« Reply #3 on: April 15, 2016, 01:58:00 AM »
Hello,

It might be a permissions related issue. Please check if apache has rw permissions on config.php file,
-rw------- 1 apache root 393 Apr 11 10:51 /var/www/html/pandora_console/include/config.php

Same for the /var/www/html/pandora_console/attachment/ directory,
drwxr-xr-x  5 apache apache   4096 Apr 11 12:10 attachment


Kind regards,
Kevin.

Offline sonc

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
Re: Pandora 6.0 Update solved!
« Reply #4 on: November 16, 2016, 12:27:04 AM »
i solved the Problem:

look at: tail /var/www/html/pandora_console/pandora_console.log

[16-Nov-2016 09:08:42] PHP Warning:  unlink(/var/www/html/pandora_console/attachment/downloads/pandora_console): No such file or directory in /var/www/html/pandora_console/include/functions_update_manager.php on line 60

create that missing directory and update works:
[root@pandora downloads]# pwd
/var/www/html/pandora_console/attachment/downloads
[root@pandora downloads]# mkdir pandora_console
[root@pandora downloads]# chown apache:apache pandora_console/


But there is an crazy second bug: after update, the directory disappeared, so you have to recreate it for every update


Offline Cengiz.Pirasa

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Re: Pandora 6.0 Update
« Reply #5 on: November 17, 2016, 07:03:18 AM »
High,

just add:

Code: [Select]
@mkdir($full_path);

before:
Quote
ob_start();

In the: "function update_manager_starting_update()" Function within the following Path: /var/www/html/pandora_console/include/functions_update_manager.php

It seems that the Updater does not create the pandora_console folder. The tar command just exctracts the files into "unix" and thats why it fails.

Greets



Offline conspacer

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Re: Pandora 6.0 Update
« Reply #6 on: November 22, 2016, 08:59:42 AM »
This answer works perfect to fix the problem. Thanks @Cengiz.Pirasa

High,

just add:

Code: [Select]
@mkdir($full_path);

before:
In the: "function update_manager_starting_update()" Function within the following Path: /var/www/html/pandora_console/include/functions_update_manager.php

It seems that the Updater does not create the pandora_console folder. The tar command just exctracts the files into "unix" and thats why it fails.

Greets