SpaceinvaderOne / Macinabox

Unraid docker image to help install MacOS vms
379 stars 72 forks source link

unzip: can't change directory to '/userscripts/': Permission denied #43

Closed ChangWenWu closed 2 years ago

ChangWenWu commented 3 years ago

Hello, I am facing the issue that an happened after i installed Macinabox in UNRAID 6.9.1. So that the VM will not be auto installed.

错误警告系统阵列登录

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-app-niceness.sh: executing...
[cont-init.d] 00-app-niceness.sh: exited 0.
[cont-init.d] 00-app-script.sh: executing...
[cont-init.d] 00-app-script.sh: exited 0.
[cont-init.d] 00-app-user-map.sh: executing...
[cont-init.d] 00-app-user-map.sh: exited 0.
[cont-init.d] 00-clean-logmonitor-states.sh: executing...
[cont-init.d] 00-clean-logmonitor-states.sh: exited 0.
[cont-init.d] 00-clean-tmp-dir.sh: executing...
[cont-init.d] 00-clean-tmp-dir.sh: exited 0.
[cont-init.d] 00-set-app-deps.sh: executing...
[cont-init.d] 00-set-app-deps.sh: exited 0.
[cont-init.d] 00-set-home.sh: executing...
[cont-init.d] 00-set-home.sh: exited 0.
[cont-init.d] 00-take-config-ownership.sh: executing...
[cont-init.d] 00-take-config-ownership.sh: exited 0.
[cont-init.d] 00-xdg-runtime-dir.sh: executing...
[cont-init.d] 00-xdg-runtime-dir.sh: exited 0.
[cont-init.d] 10-certs.sh: executing...
[cont-init.d] 10-certs.sh: exited 0.
[cont-init.d] 10-cjk-font.sh: executing...
[cont-init.d] 10-cjk-font.sh: exited 0.
[cont-init.d] 10-nginx.sh: executing...
[cont-init.d] 10-nginx.sh: exited 0.
[cont-init.d] 10-vnc-password.sh: executing...
[cont-init.d] 10-vnc-password.sh: exited 0.
[cont-init.d] 10-web-index.sh: executing...
[cont-init.d] 10-web-index.sh: exited 0.
[cont-init.d] 20-machineid_fix.sh: executing...
[cont-init.d] 20-machineid_fix.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] starting s6-fdholderd...
[services.d] starting certsmonitor...
[services.d] starting nginx...
[services.d] starting xvfb...
[nginx] starting...
[certsmonitor] disabling service: secure connection not enabled.
[xvfb] starting...
[services.d] starting logmonitor...
[services.d] starting statusmonitor...
[logmonitor] no file to monitor: disabling service...
[services.d] starting openbox...
[statusmonitor] no file to monitor: disabling service...
[openbox] starting...
[services.d] starting x11vnc...
[services.d] starting app...
[x11vnc] starting...
[app] starting Macinabox with VirtManager...
[services.d] done.
03/05/2021 18:29:51 passing arg to libvncserver: -rfbport
03/05/2021 18:29:51 passing arg to libvncserver: 5900
03/05/2021 18:29:51 passing arg to libvncserver: -rfbportv6
03/05/2021 18:29:51 passing arg to libvncserver: -1
03/05/2021 18:29:51 passing arg to libvncserver: -httpportv6
03/05/2021 18:29:51 passing arg to libvncserver: -1
03/05/2021 18:29:51 passing arg to libvncserver: -desktop
03/05/2021 18:29:51 passing arg to libvncserver: Macinabox with VirtManager
03/05/2021 18:29:51 x11vnc version: 0.9.14 lastmod: 2015-11-14 pid: 815

03/05/2021 18:29:51 Using X display :0
03/05/2021 18:29:51 rootwin: 0x43 reswin: 0x400001 dpy: 0x100ab20
03/05/2021 18:29:51
03/05/2021 18:29:51 ------------------ USEFUL INFORMATION ------------------
unzip: can't change directory to '/userscripts/': Permission denied
unzip: can't change directory to '/userscripts/': Permission denied
03/05/2021 18:29:51 X DAMAGE available on display, using it for polling hints.
chmod: /userscripts/1_macinabox_helper/: Permission denied
03/05/2021 18:29:51 To disable this behavior use: '-noxdamage'
03/05/2021 18:29:51
03/05/2021 18:29:51 Most compositing window managers like 'compiz' or 'beryl'
03/05/2021 18:29:51 cause X DAMAGE to fail, and so you may not see any screen
03/05/2021 18:29:51 updates via VNC. Either disable 'compiz' (recommended) or
03/05/2021 18:29:51 supply the x11vnc '-noxdamage' command line option.
03/05/2021 18:29:51 X COMPOSITE available on display, using it for window polling.
03/05/2021 18:29:51 To disable this behavior use: '-noxcomposite'
03/05/2021 18:29:51
03/05/2021 18:29:51 Wireframing: -wireframe mode is in effect for window moves.
03/05/2021 18:29:51 If this yields undesired behavior (poor response, painting
03/05/2021 18:29:51 errors, etc) it may be disabled:
03/05/2021 18:29:51 - use '-nowf' to disable wireframing completely.
03/05/2021 18:29:51 - use '-nowcr' to disable the Copy Rectangle after the
03/05/2021 18:29:51 moved window is released in the new position.
03/05/2021 18:29:51 Also see the -help entry for tuning parameters.
03/05/2021 18:29:51 You can press 3 Alt_L's (Left "Alt" key) in a row to
03/05/2021 18:29:51 repaint the screen, also see the -fixscreen option for
03/05/2021 18:29:51 periodic repaints.
03/05/2021 18:29:51 GrabServer control via XTEST.
chmod: /userscripts/1_macinabox_vmready_notify/: Permission denied
03/05/2021 18:29:51
03/05/2021 18:29:51 Scroll Detection: -scrollcopyrect mode is in effect to
03/05/2021 18:29:51 use RECORD extension to try to detect scrolling windows
03/05/2021 18:29:51 (induced by either user keystroke or mouse input).

03/05/2021 18:29:51 If this yields undesired behavior (poor response, painting
03/05/2021 18:29:51 errors, etc) it may be disabled via: '-noscr'
03/05/2021 18:29:51 Also see the -help entry for tuning parameters.
03/05/2021 18:29:51 You can press 3 Alt_L's (Left "Alt" key) in a row to
03/05/2021 18:29:51 repaint the screen, also see the -fixscreen option for
03/05/2021 18:29:51 periodic repaints.
03/05/2021 18:29:51
03/05/2021 18:29:51 XKEYBOARD: number of keysyms per keycode 7 is greater
03/05/2021 18:29:51 than 4 and 51 keysyms are mapped above 4.
03/05/2021 18:29:51 Automatically switching to -xkb mode.
03/05/2021 18:29:51 If this makes the key mapping worse you can
03/05/2021 18:29:51 disable it with the "-noxkb" option.
03/05/2021 18:29:51 Also, remember "-remap DEAD" for accenting characters.
03/05/2021 18:29:51
03/05/2021 18:29:51 X FBPM extension not supported.
Xlib: extension "DPMS" missing on display ":0".
03/05/2021 18:29:51 X display is not capable of DPMS.
03/05/2021 18:29:51 --------------------------------------------------------
03/05/2021 18:29:51
03/05/2021 18:29:51 Default visual ID: 0x21
03/05/2021 18:29:51 Read initial data from X display into framebuffer.
03/05/2021 18:29:51 initialize_screen: fb_depth/fb_bpp/fb_Bpl 24/32/5120
03/05/2021 18:29:51
03/05/2021 18:29:51 X display :0 is 32bpp depth=24 true color
03/05/2021 18:29:51
03/05/2021 18:29:51 Listening for VNC connections on TCP port 5900
03/05/2021 18:29:51
03/05/2021 18:29:51 Xinerama is present and active (e.g. multi-head).
03/05/2021 18:29:51 Xinerama: number of sub-screens: 1
03/05/2021 18:29:51 Xinerama: no blackouts needed (only one sub-screen)
03/05/2021 18:29:51
03/05/2021 18:29:51 fb read rate: 1382 MB/sec
03/05/2021 18:29:51 fast read: reset -wait ms to: 10
03/05/2021 18:29:51 fast read: reset -defer ms to: 10
03/05/2021 18:29:51 The X server says there are 10 mouse buttons.

03/05/2021 18:29:51 screen setup finished.
03/05/2021 18:29:51

The VNC desktop is: 7637456b0320:0

0

******************************************************************************
Have you tried the x11vnc '-ncache' VNC client-side pixel caching feature yet?

The scheme stores pixel data offscreen on the VNC viewer side for faster
retrieval. It should work with any VNC viewer. Try it by running:

x11vnc -ncache 10 ...

One can also add -ncache_cr for smooth 'copyrect' window motion.
More info: http://www.karlrunge.com/x11vnc/faq.html#faq-client-caching
MYTECHREVIEW commented 3 years ago

Change the userscripts folder permissions to 777 or 700. Also make sure root has the ownership, you can find the userscript folder in /boot/config/plugins/user.scripts .. to check permissions and ownership use "ls -l"

940842546 commented 2 years ago

the same issue and i solve it by set the docker uid to 0