Closed nic0dk closed 5 years ago
could it be that we need path for cakephp correct?
from Dockerfile
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DZM_CGIDIR=/usr/share/webapps/zoneminder/cgi-bin \
-DZM_CONFIG_DIR=/etc/zm \
-DZM_CONFIG_SUBDIR=/etc/zm/conf.d \
-DZM_DIR_EVENTS=/data/zoneminder/events \
-DZM_DIR_IMAGES=/data/zoneminder/images \
-DZM_DIR_SOUNDS=/data/zoneminder/sounds \
-DZM_LOGDIR=/config/log/zoneminder \
-DZM_PATH_ARP=/usr/sbin/arp \
-DZM_RUNDIR=/var/run/zoneminder \
-DZM_SOCKDIR=/var/run/zoneminder \
-DZM_WEBDIR=/usr/share/webapps/zoneminder/htdocs \
-DZM_WEB_GROUP=abc \
-DZM_WEB_USER=abc \
find on config.php
root@a4327eac3d87:/# find / | grep config.php
/usr/share/webapps/zoneminder/htdocs/skins/classic/includes/config.php
/usr/share/webapps/zoneminder/htdocs/includes/config.php
/usr/share/webapps/zoneminder/htdocs/api/lib/Cake/Test/test_app/Plugin/TestPlugin/Config/custom_config.php
/usr/share/webapps/zoneminder/htdocs/api/lib/Cake/Config/config.php
error from the api interface:
Fatal Error
Error: require_once() [<a href='http://php.net/function.require'>function.require</a>]: Failed opening required '../../../includes/config.php' (include_path='.:/usr/share/php')
File: /usr/share/webapps/zoneminder/htdocs/api/app/Config/bootstrap.php
Line: 123
besides, something goes wrong with permission on mysql after deploy, i need to recreate them after the container is running:
mysql -uroot -e "grant all on zm.* to 'zmuser'@localhost identified by 'zmpass';"
This container isn't released yet and I'm not sure it will be either.
@tobbenb thx for the reply. Hmm I build the currently ZM from this container? What did I wrong ?
I don't know. I haven't made this container, so can't help.
We are planning on changing massive amounts of logic for this to go live, your help with testing would be appreciated:
having problem access the API and getting a cakephp error - aswell i see som weird errors on the logs. the web gui is working fine, aswell the recording
lastest docker image from here, on ubuntu 17.10 docker-compose build --no-cache with the docker-compose file below ``` version: '3' services: zoneminder: build: . container_name: zoneminder_ioserver restart: always ports: - 8000:80 environment: - PGID=1001 - PUID=1001 volumes: - /etc/localtime:/etc/localtime:ro - /home/nico/docker/zoneminder_docker/config:/config - /mnt/qnap/CCTV:/data shm_size: 4096M ```screenshot of the API interface API cakePHP error
and from apache log
im using nfs mount from the host OS to a NAS no symlinks usedfirst time creating a bug report, if you need more info, please let me know
Thanks, team linuxserver.io