archive.sh compatible with Freebsd (using /bin/sh instead of /bin/bash)
|Reported by:||tgrondin||Owned by:|
The archive.sh script is either broken or simply incompatible with Freebsd servers.
Attempting to run it as the root user as 'sh archive.sh' leads to:
Starting Piwik reports archiving...
Reports archiving finished.
Starting Scheduled tasks...
Error: You can't access this resource as it requires a 'superuser' access.Finished Scheduled tasks.
Running it via cron according to the directions listed at the setup-auto-archiving/ page leads to the following.
/usr/local/www/piwik/misc/cron/archive.sh: not found
That happens because bash is not installed by default on Freebsd servers. Further more the script references a non standard location of bash if it is installed. It should reference /usr/local/bin/bash. Installing and fixing the bash path and running it via cron leads to the following error:
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
I figured I'd try here first in the hope that I'm making a mistake or missing something before I start tearing it apart in a attempt to make it work.
There is also a forum reference to the issue. I'll link to it once the forum's are back on line. They appear to be down right now.
Change History (9)
comment:1 Changed 3 years ago by vipsoft (robocoder)
- Milestone set to 1.1 - Piwik 1.1
- Resolution set to invalid
- Status changed from new to closed
comment:4 Changed 3 years ago by matt (mattab)
- Resolution invalid deleted
- Status changed from closed to reopened
comment:6 Changed 3 years ago by matt (mattab)
- Resolution set to fixed
- Status changed from reopened to closed
comment:8 Changed 3 years ago by matt (mattab)
- Summary changed from archive.sh broken to archive.sh compatible with Freebsd (using /bin/sh instead of /bin/bash)