symlink(): Permission denied

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
ZonedOut
Posts: 8
Joined: Sat Nov 27, 2010 9:50 pm

symlink(): Permission denied

Post by ZonedOut »

Ive upgraded from 1.33 to 1.34.22 on Ubuntu 14.04.6 LTS.

Zoneminder still runs fine, but Im trying to turn get zmNinja to connect. In doing so I added user authentication, upon which zmNinja reports "API detection failed". Following the wiki and trying to ensure APIs are set correctly, I didnt get far. So I tried to turn on logging (as the zm log folder was empty). I now get the following error across my ZM screens:

Code: Select all

Warning: symlink(): Permission denied in /usr/share/zoneminder/www/includes/functions.php on line 2231 
That functions.php file at line 2231 says

Code: Select all

 if ( file_exists(ZM_DIR_CACHE.'/'.$cacheFile) or symlink(ZM_PATH_WEB.'/'.$file, ZM_DIR_CACHE.'/'.$cacheFile) ) {

Code: Select all

and ZM_PATH_WEB is /usr/share/zoneminder/www whose permissions are  drwxr-xr-x www-data root
the ZM log folder was previously empty but I seem to have at least been able to turn on debug logging which reports:

Code: Select all

11/11/20 21:40:04.808372 web_php[16507].WAR [192.168.4.60] [Failed linking skins/classic/css/base/views/options.css to skins_classic_css_base_views_options-classic-1603135352.css] at /usr/share/zoneminder/www/includes/functions.php line 2234
11/11/20 21:40:04.850185 web_php[16507].WAR [192.168.4.60] [Failed linking skins/classic/js/dateTimePicker/jquery-ui-timepicker-addon.css to skins_classic_js_dateTimePicker_jquery-ui-timepicker-addon-classic-1603135352.css] at /usr/share/zoneminder/www/includes/functions.php line 2234
11/11/20 21:40:04.892032 web_php[16507].WAR [192.168.4.60] [Failed linking skins/classic/js/jquery-ui-1.12.1/jquery-ui.structure.min.css to skins_classic_js_jquery-ui-1.12.1_jquery-ui.structure.min-classic-1603135352.css] at /usr/share/zoneminder/www/includes/functions.php line 2234
11/11/20 21:40:04.933889 web_php[16507].WAR [192.168.4.60] [Failed linking skins/classic/css/classic/skin.css to skins_classic_css_classic_skin-classic-1603135352.css] at /usr/share/zoneminder/www/includes/functions.php line 2234
11/11/20 21:40:04.975810 web_php[16507].WAR [192.168.4.60] [Failed linking skins/classic/css/classic/views/options.css to skins_classic_css_classic_views_options-classic-1603135352.css] at /usr/share/zoneminder/www/includes/functions.php line 2234
11/11/20 21:40:05.017542 web_php[16507].WAR [192.168.4.60] [Failed linking js/Server.js to js_Server-classic-1603135352.js] at /usr/share/zoneminder/www/includes/functions.php line 2234
11/11/20 21:40:05.059592 web_php[16507].WAR [192.168.4.60] [Failed linking skins/classic/views/js/state.js to skins_classic_views_js_state-classic-1603135352.js] at /usr/share/zoneminder/www/includes/functions.php line 2234
11/11/20 21:40:05.093117 web_php[16507].WAR [192.168.4.60] [Failed linking skins/classic/js/classic.js to skins_classic_js_classic-classic-1603135352.js] at /usr/share/zoneminder/www/includes/functions.php line 2234
11/11/20 21:40:05.126617 web_php[16507].WAR [192.168.4.60] [Failed linking skins/classic/js/skin.js to skins_classic_js_skin-classic-1603135352.js] at /usr/share/zoneminder/www/includes/functions.php line 2234
11/11/20 21:40:05.161266 web_php[16507].WAR [192.168.4.60] [Failed linking js/logger.js to js_logger-classic-1603135352.js] at /usr/share/zoneminder/www/includes/functions.php line 2234
Can anyone shed any light on why this is happening and how to rectify it?
Last_Mile
Posts: 8
Joined: Tue Jan 03, 2017 3:08 pm

Re: symlink(): Permission denied

Post by Last_Mile »

I started to have the same issue with 1.34.26 docker. Did you find a solution?
magnetiktank
Posts: 1
Joined: Fri Sep 02, 2022 9:33 pm

Re: symlink(): Permission denied

Post by magnetiktank »

Hi

I've same issue. ZM on docker on Syno (ds220+)
I use zoneminderhq/zoneminder:latest-el7
plainequally
Posts: 3
Joined: Thu Dec 08, 2022 7:25 am

Re: symlink(): Permission denied

Post by plainequally »

I had the same problem with Docker 1.34.26. Have you solved the problem? word wipe
Post Reply