SID-02432: End of script output before headers
| Status: |
Answered |
TWiki version: |
6.1.0 |
Perl version: |
5.28 |
| Category: |
CategoryAddOns |
Server OS: |
FreeBSD - Hosted |
Last update: |
5 years ago |
I'm trying to run backuprestore, but get the following error messages in the errors.log file:
[Wed Mar 04 01:34:20.246190 2020] [cgi:error] [pid 66066:tid 34477537280] [client 184.18.49.191:0] AH01215: CGI ERROR: An error prevented this request from being executed.: /fs1a/elwa/public/twiki/bin/backuprestore
[Wed Mar 04 01:34:20.246582 2020] [cgi:error] [pid 66066:tid 34477537280] [client 184.18.49.191:0] End of script output before headers: backuprestore
[Wed Mar 04 01:42:20.756331 2020] [cgi:error] [pid 66066:tid 34477434880] [client 184.18.49.191:0] AH01215: [Wed Mar 4 01:42:20 2020] view: Automatic recovery: breaking lock for /home/public/twiki/data/Main/TWikiAdminGroup.txt at /home/protected/twiki/lib/TWiki/Store/RcsWrap.pm line 469.: /fs1a/elwa/public/twiki/bin/view, referer:
https://elwa.nfshost.com/twiki/bin/view/Main/TWikiAdminGroup
[Wed Mar 04 01:42:20.778796 2020] [cgi:error] [pid 66066:tid 34477434880] [client 184.18.49.191:0] AH01215:
RCS: /usr/bin/rcs -l %FILENAME|F% failed: at /home/protected/twiki/lib/TWiki/Store/RcsWrap.pm line 479.: /fs1a/elwa/public/twiki/bin/view, referer:
https://elwa.nfshost.com/twiki/bin/view/Main/TWikiAdminGroup
[Wed Mar 04 15:23:34.258430 2020] [cgi:error] [pid 66066:tid 34479401216] [client 184.18.49.191:0] AH01215: CGI ERROR: An error prevented this request from being executed.: /fs1a/elwa/public/twiki/bin/backuprestore
[Wed Mar 04 15:23:34.258791 2020] [cgi:error] [pid 66066:tid 34479401216] [client 184.18.49.191:0] End of script output before headers: backuprestore
Hosted Web Server Nearly Free Speech
--
David Tremain - 2020-03-04
Discussion and Answer
Likely a file permission issue. Your scripts might need 755 instead of 775 permission, and need to be owned by the user Apache is running your scripts.
--
Peter Thoeny - 2020-03-04
The permission on backuprestore is 755.
The Apache user is the Group owner.
The owner is me.
Does the apache user need to be both the Group owner and the owner?
--
David Tremain - 2020-03-08
This depends on the Apache and suexec configuration. I recommend asking your ISP to get the proper permission settings for cgi executables.
--
Peter Thoeny - 2020-03-08
BackupRestore requires several things to be set right - starting with the Directory (/tmp - the default - is outside the twiki structure (and distribution tar ball), and either exists by default on the server or must be manually created. In my situation, it had to be manually created.
After the Directory is created, it must have rw permissions for the user Apache runs as (web in my case - set group to the web user)
Make sure the Apache user can access the zip and unzip apps - if not, that is another configure change
The Backuprestore plugin must be installed and activated (it is by default since rev. 5.0 or so)
Specific configurations for the plugin are under the Extensions section - for example, {Plugins}{BackupRestorePlugin}{BackupDir}
I had to change all the configure settings in the {Plugins}{BackupRestorePlugin} group.
Finally, Peter suggested elsewhere to set permissions on the Directory recursively to 777
--
David Tremain - 2020-04-03
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.