themepark-dev / theme.park

A collection of themes/skins for 50 selfhosted apps!
https://theme-park.dev
MIT License
2.44k stars 799 forks source link

NPM script unable to execute #483

Closed instantdreams closed 1 year ago

instantdreams commented 1 year ago

Describe the bug After installing the theme, the NPM container cannot run the script.

Theme Install Method

Application Info

To Reproduce Steps to reproduce the behavior:

  1. nano .env
  2. docker compose pull;docker compose up --detach
  3. docker compose logs

Expected behavior Script to execute

Versions

GilbN commented 1 year ago

Take a look at the hotio FAQ here: https://docs.theme-park.dev/setup/#hotio-faq

instantdreams commented 1 year ago

Thank you, that worked:

cd /srv/nginx-proxy-manager/themepark/
rm 98-themepark
wget https://raw.githubusercontent.com/GilbN/theme.park/master/docker-mods/nginx-proxy-manager/root/etc/cont-init.d/98-themepark
chmod +x 98-themepark
cd /srv/nginx-proxy-manager
docker compose pull
docker compose up --detach

Resulted in this: image

Thank you for the direction! It was the line breaks.

slimshizn commented 1 year ago

Something to do with the latest NPM version. 2.9.19 works fine, while the last two versions do not.

Error logs with everything above tried.

cont-init: info: running /etc/cont-init.d/01_perms.sh

/package/admin/s6-overlay-3.1.4.1/etc/s6-rc/scripts/cont-init: 20: /package/admin/s6-overlay-3.1.4.1/etc/s6-rc/scripts/cont-init: /etc/cont-init.d/01_perms.sh: not found

cont-init: info: /etc/cont-init.d/01_perms.sh exited 127

cont-init: info: running /etc/cont-init.d/01_s6-secret-init.sh

/package/admin/s6-overlay-3.1.4.1/etc/s6-rc/scripts/cont-init: 20: /package/admin/s6-overlay-3.1.4.1/etc/s6-rc/scripts/cont-init: /etc/cont-init.d/01_s6-secret-init.sh: Permission denied

cont-init: info: /etc/cont-init.d/01_s6-secret-init.sh exited 126

cont-init: info: running /etc/cont-init.d/99-themepark

/package/admin/s6-overlay-3.1.4.1/etc/s6-rc/scripts/cont-init: 20: /package/admin/s6-overlay-3.1.4.1/etc/s6-rc/scripts/cont-init: /etc/cont-init.d/99-themepark: not found

cont-init: info: /etc/cont-init.d/99-themepark exited 127

cont-init: warning: some scripts exited nonzero

https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2705

pbanj commented 1 year ago

ya nothing i do will make it work. getting the same error as @slimshizn

pbanj commented 1 year ago

Something to do with the latest NPM version. 2.9.19 works fine, while the last two versions do not.

Error logs with everything above tried.

cont-init: info: running /etc/cont-init.d/01_perms.sh

/package/admin/s6-overlay-3.1.4.1/etc/s6-rc/scripts/cont-init: 20: /package/admin/s6-overlay-3.1.4.1/etc/s6-rc/scripts/cont-init: /etc/cont-init.d/01_perms.sh: not found

cont-init: info: /etc/cont-init.d/01_perms.sh exited 127

cont-init: info: running /etc/cont-init.d/01_s6-secret-init.sh

/package/admin/s6-overlay-3.1.4.1/etc/s6-rc/scripts/cont-init: 20: /package/admin/s6-overlay-3.1.4.1/etc/s6-rc/scripts/cont-init: /etc/cont-init.d/01_s6-secret-init.sh: Permission denied

cont-init: info: /etc/cont-init.d/01_s6-secret-init.sh exited 126

cont-init: info: running /etc/cont-init.d/99-themepark

/package/admin/s6-overlay-3.1.4.1/etc/s6-rc/scripts/cont-init: 20: /package/admin/s6-overlay-3.1.4.1/etc/s6-rc/scripts/cont-init: /etc/cont-init.d/99-themepark: not found

cont-init: info: /etc/cont-init.d/99-themepark exited 127

cont-init: warning: some scripts exited nonzero

NginxProxyManager/nginx-proxy-manager#2705

just figured it out. change #!/usr/bin/with-contenv bash to #!/bin/bash at the top of the script

image

instantdreams commented 1 year ago

Change #!/usr/bin/with-contenv bash to #!/bin/bash at the top of the script

This absolutely worked for me too, thank you.