Tags:
create new tag
view all tags

SID-02439: TWiki_BackupRestorePlugin_Daemon directory and contents

Status: Answered Answered TWiki version: 6.1.0 Perl version:
Category: CategoryPlugins Server OS: FreeBSD (hosted) Last update: 5 years ago

On my virtual server installation, the directory /tmp contains a directory /TWiki_BackupRestorePlugin_Daemon, which contains file_name.txt magic.txt pid.txt stderr.txt stdout.txt

On the hosted site, I set configuration to point to /home/protected/twiki/tmp and it is empty. Then, when I run the BackupRestoreConsole, I get the following message in the warning file:

2020-03-29 - 16:20:42 Can not open pidfile (pid_file => '/home/protected/twiki/tmp/TWiki_BackupRestorePlugin_Daemon/pid.txt'): Permission denied at /home/protected/twiki/lib/TWiki/Plugins/BackupRestorePlugin/ProcDaemon.pm line 289.

That makes sense, since the /home/protected/twiki/tmp directory is empty (the Daemon directory (and contents) isn't there.

How do I create that directory and its contents?

-- David Tremain - 2020-03-30

Discussion and Answer

Likely caused by the /home/protected/twiki/tmp not being writable by the webserver user. Ask support to change ownership of that directory and content to the webserver user. Alternatively set the permission to 777.

-- Peter Thoeny - 2020-04-01

You need to make sure to change the permissions to 777 for /tmp recursively, and then enter configure and save. The files were created automagically.

However, when I try to create a backup, it just displays the spinning circle before the new backup file name, and the scanning bars under size. On my virtual server host, a full backup takes under a minute. On the hosted site, I waiting more than 45 minutes, and it did not complete.

When I tried to restore my web from the backup zip file I copied to the directory, it asked if I really wanted to restore, and then came back immediately. But nothing was restored. No errors displayed, and the error_log file had no relevant entries, and the access_log only showed accessing the BackupRestoreConsole (I think those are NFSHost logs).

I then went to PuTTY and did the command /usr/local/bin/unzip -l /home/protected/twiki/tmp/twiki-backup-2019-07-24-14-59.zip and it gave a list of all the files in the zip file.

So, I guess I figure out how to turn on backuprestore debug and where it records information, and see if I can get any visibility on what's going wrong...wrong...wrong...

-- David Tremain - 2020-04-01

Directory and contents are automatically created once permissions are correct.

-- David Tremain - 2020-04-03

      Change status to:
ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
SupportForm
Status Answered
Title TWiki_BackupRestorePlugin_Daemon directory and contents
SupportCategory CategoryPlugins
TWiki version 6.1.0
Server OS FreeBSD (hosted)
Web server Apache
Perl version

Browser & version

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2020-04-03 - DavidTremain
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.