Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 644452 - www-misc/zoneminder-1.30.2 API is not working as /var/lib/zoneminder/api_tmp/cache/ directory is missing
Summary: www-misc/zoneminder-1.30.2 API is not working as /var/lib/zoneminder/api_tmp/...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-13 13:17 UTC by jeniik
Modified: 2020-05-05 07:26 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jeniik 2018-01-13 13:17:28 UTC
zonemiders REST API calls like:

curl -d "username=xxx&password=xxxx&action=login&view=console" -c cookies.txt http://IP/zm/index.php
curl -b cookies.txt http://IP/zm/api/host/monitors.json

does not return anything, but apache log:
PHP Warning:  /usr/share/zoneminder/www/api/app/tmp/cache/persistent/ is not writable

where cache directory does not exists

/usr/share/zoneminder/www/api/app/tmp -> /var/lib/zoneminder/api_tmp
ll /usr/share/zoneminder/www/api/app/tmp/
-rwxrwxr-x 1 apache apache    0 Dec 11 04:39 .keep_www-misc_zoneminder-0


WORKAROUND:
cd /var/lib/zoneminder/api_tmp
mkdir cache
chown apache:apache cache/
chmod 770 cache
cd /var/lib/zoneminder/api_tmp/cache/
mkdir persistent
chown apache:apache persistent/
chmod 770 persistent
mkdir models
chown apache:apache models/
chmod 770 models