Problem with upgrading and specify backup directory
Heihei, Just tried to update to RC4 and got a problem with the koha.upgrade script. --- ERROR --- The upgrader will now try to backup your old files. Please specify a directory to store the backup in [/usr/local/backups]: /home/klaus/NFHS/datamaskiner/bibliotek/backup Use of uninitialized value in concatenation (.) or string at Install.pm line 2117, <STDIN> line 5. Use of uninitialized value in concatenation (.) or string at Install.pm line 2117, <STDIN> line 5. Use of uninitialized value in concatenation (.) or string at Install.pm line 2117, <STDIN> line 5. Use of uninitialized value in concatenation (.) or string at Install.pm line 2117, <STDIN> line 5. Error opening up backup file /usr/local/backups/Koha.backup_2004-12-08_13:00:34: No such file or directory --- END --- Seems it doesn't accept the specified folder. ;)) Regards, Klaus -- take care! xo,klaus
Klaus Weidenbach a écrit :
Heihei,
Just tried to update to RC4 and got a problem with the koha.upgrade script.
--- ERROR --- The upgrader will now try to backup your old files.
Please specify a directory to store the backup in [/usr/local/backups]: /home/klaus/NFHS/datamaskiner/bibliotek/backup Use of uninitialized value in concatenation (.) or string at Install.pm line 2117, <STDIN> line 5. Use of uninitialized value in concatenation (.) or string at Install.pm line 2117, <STDIN> line 5. Use of uninitialized value in concatenation (.) or string at Install.pm line 2117, <STDIN> line 5. Use of uninitialized value in concatenation (.) or string at Install.pm line 2117, <STDIN> line 5. Error opening up backup file /usr/local/backups/Koha.backup_2004-12-08_13:00:34: No such file or directory --- END ---
Seems it doesn't accept the specified folder. ;))
Are you sure you run the updater as a user with enough permissions ? what happends if you add just after : my $answer = showmessage(getmessage('BackupDir',[$backupdir]),'free',$backupdir); (in line 2089) $backupdir = $answer; ? -- Paul POULAIN Consultant indépendant en logiciels libres responsable francophone de koha (SIGB libre http://www.koha-fr.org)
Heihei,
Are you sure you run the updater as a user with enough permissions ?
Well, I was first user klaus and I have permissions to write in the directory I gave under "Please specify a directory to store the backup in", but the updater didn't took that directory, but always wanted to write in the default location: [/usr/local/backups] where I had no rights. I have then tried as root and then it worked, but it wrote the backup in /usr/local/backups and not in the folder I gave. Oh, the messages "Use of uninitialized value in concatenation (.) or string at Install.pm line 2117, <STDIN> line 5." were another problem, because I have my koha config not in /etc, but I changed a line in the updater script and then this message disasspeared. Is it possible to add a command line parameter for the updater where I can give the path to the config file? Thanks ;))
what happends if you add just after : my $answer = showmessage(getmessage('BackupDir',[$backupdir]),'free',$backupdir); (in line 2089) $backupdir = $answer;
Yes, that fixed this problem! ;)) Regards, Klaus -- take care! xo,klaus
Klaus Weidenbach a écrit :
Heihei,
Hello from Euroland,
Are you sure you run the updater as a user with enough permissions ?
Well, I was first user klaus and I have permissions to write in the directory I gave under "Please specify a directory to store the backup in", but the updater didn't took that directory, but always wanted to write in the default location: [/usr/local/backups] where I had no rights. I have then tried as root and then it worked, but it wrote the backup in /usr/local/backups and not in the folder I gave.
Yes, there was a bug [1]
Oh, the messages "Use of uninitialized value in concatenation (.) or string at Install.pm line 2117, <STDIN> line 5." were another problem, because I have my koha config not in /etc, but I changed a line in the updater script and then this message disasspeared. Is it possible to add a command line parameter for the updater where I can give the path to the config file?
Export KOHA_CONF=/path/to/koha.conf before doing anything ;-)
what happends if you add just after : my $answer = showmessage(getmessage('BackupDir',[$backupdir]),'free',$backupdir); (in line 2089) $backupdir = $answer;
Yes, that fixed this problem! ;))
[1] and this hack fixes it ;-) I modify Install.pm immedialty ! -- Paul POULAIN Consultant indépendant en logiciels libres responsable francophone de koha (SIGB libre http://www.koha-fr.org)
participants (2)
-
Klaus Weidenbach -
Paul POULAIN