Skip to content

permission denied on LXC #13

@lobbiaa

Description

@lobbiaa

I'm runing on PVE priviledged LXC, with default .env copied from .env.example, got below error when docker compose up, any clue? I tried remove user switch in Dockerfile, or change UID/GID to 0 in .env all make no use.

playsms-1 | playSMS installation starts
playsms-1 |
playsms-1 |
playsms-1 | ==================================================================
playsms-1 |
playsms-1 | INSTALL DATA:
playsms-1 |
playsms-1 | MySQL username = playsms
playsms-1 | MySQL password = playsms
playsms-1 | MySQL database = playsms
playsms-1 | MySQL host = mariadb
playsms-1 | MySQL port = 3306
playsms-1 |
playsms-1 | playSMS source path = /home/playsms/src
playsms-1 |
playsms-1 | playSMS web path = /home/playsms/web
playsms-1 | playSMS lib path = /home/playsms/lib
playsms-1 | playSMS bin path = /home/playsms/bin
playsms-1 | playSMS log path = /home/playsms/log
playsms-1 |
playsms-1 | playSMS conf path = /home/playsms/etc
playsms-1 |
playsms-1 | ==================================================================
playsms-1 |
playsms-1 | Cloning into '/home/playsms/src'...
playsms-1 |
playsms-1 | Getting composer from https://getcomposer.com
playsms-1 |
playsms-1 | Please wait while this script downloading composer
playsms-1 |
playsms-1 | Composer has been installed
playsms-1 |
playsms-1 | Please wait while composer getting and updating required packages
playsms-1 |
playsms-1 | Loading composer repositories with package information
playsms-1 | Updating dependencies
playsms-1 | Lock file operations: 8 installs, 0 updates, 0 removals
playsms-1 | - Locking ezyang/htmlpurifier (v4.18.0)
playsms-1 | - Locking gregwar/captcha (v1.2.1)
playsms-1 | - Locking mlocati/ip-lib (1.20.0)
playsms-1 | - Locking openpsa/universalfeedcreator (v1.9.0)
playsms-1 | - Locking phpmailer/phpmailer (v6.10.0)
playsms-1 | - Locking playsms/tpl (1.0.11)
playsms-1 | - Locking playsms/webservices (1.0.7)
playsms-1 | - Locking symfony/finder (v7.2.2)
playsms-1 | Writing lock file
playsms-1 | Installing dependencies from lock file (including require-dev)
playsms-1 | Package operations: 8 installs, 0 updates, 0 removals
playsms-1 | - Downloading ezyang/htmlpurifier (v4.18.0)
playsms-1 | - Downloading symfony/finder (v7.2.2)
playsms-1 | - Downloading gregwar/captcha (v1.2.1)
playsms-1 | - Downloading mlocati/ip-lib (1.20.0)
playsms-1 | - Downloading openpsa/universalfeedcreator (v1.9.0)
playsms-1 | - Downloading phpmailer/phpmailer (v6.10.0)
playsms-1 | - Downloading playsms/tpl (1.0.11)
playsms-1 | - Downloading playsms/webservices (1.0.7)
playsms-1 | 0/8 [>---------------------------] 0%
playsms-1 | 1/8 [===>------------------------] 12%
playsms-1 | 3/8 [==========>-----------------] 37%
playsms-1 | 8/8 [============================] 100%
playsms-1 | - Installing ezyang/htmlpurifier (v4.18.0): Extracting archive
playsms-1 | - Installing symfony/finder (v7.2.2): Extracting archive
playsms-1 | - Installing gregwar/captcha (v1.2.1): Extracting archive
playsms-1 | - Installing mlocati/ip-lib (1.20.0): Extracting archive
playsms-1 | - Installing openpsa/universalfeedcreator (v1.9.0): Extracting archive
playsms-1 | - Installing phpmailer/phpmailer (v6.10.0): Extracting archive
playsms-1 | - Installing playsms/tpl (1.0.11): Extracting archive
playsms-1 | - Installing playsms/webservices (1.0.7): Extracting archive
playsms-1 | 0/8 [>---------------------------] 0%
playsms-1 | 8/8 [============================] 100%
playsms-1 | 11 package suggestions were added by new dependencies, use composer suggest to see details.
playsms-1 | Generating autoload files
playsms-1 | 3 packages you are using are looking for funding.
playsms-1 | Use the composer fund command to find out more!
playsms-1 | No security vulnerability advisories found.
playsms-1 |
playsms-1 | Composer has been installed and packages has been updated
playsms-1 |
playsms-1 | cp: can't create '/home/playsms/web/config-dist.php': Permission denied
playsms-1 | cp: can't create '/home/playsms/web/config-env.php': Permission denied
playsms-1 | cp: can't create '/home/playsms/web/favicon.ico': Permission denied
playsms-1 | cp: can't create directory '/home/playsms/web/inc': Permission denied
playsms-1 | cp: can't create '/home/playsms/web/index.php': Permission denied
playsms-1 | cp: can't create '/home/playsms/web/init.php': Permission denied
playsms-1 | cp: can't create directory '/home/playsms/web/lib': Permission denied
playsms-1 | cp: can't create directory '/home/playsms/web/plugin': Permission denied
playsms-1 | cp: can't create directory '/home/playsms/web/storage': Permission denied
playsms-1 | cp: can't create '/home/playsms/web/config.php': Permission denied
playsms-1 | touch: /home/playsms/log/audit.log: Permission denied
playsms-1 | touch: /home/playsms/log/playsms.log: Permission denied
playsms-1 | chmod: /home/playsms/log: Operation not permitted
playsms-1 | chmod: /home/playsms/log: Operation not permitted
playsms-1 | chmod: /home/playsms/web/storage: No such file or directory
playsms-1 |
playsms-1 | ==================================================================
playsms-1 |
playsms-1 | sed: /home/playsms/web/config.php: No such file or directory
playsms-1 | sed: /home/playsms/web/config.php: No such file or directory
playsms-1 | sed: /home/playsms/web/config.php: No such file or directory
playsms-1 | sed: /home/playsms/web/config.php: No such file or directory
playsms-1 | sed: /home/playsms/web/config.php: No such file or directory
playsms-1 | sed: /home/playsms/web/config.php: No such file or directory
playsms-1 | playSMS daemon config file: /home/playsms/etc/playsmsd.conf
playsms-1 |
playsms-1 | PLAYSMS_PATH="/home/playsms/web"
playsms-1 | PLAYSMS_LIB="/home/playsms/lib"
playsms-1 | PLAYSMS_BIN="/home/playsms/bin"
playsms-1 | PLAYSMS_LOG="/home/playsms/log"
playsms-1 | DAEMON_SLEEP="1"
playsms-1 | ERROR_REPORTING="E_ALL ^ (E_NOTICE | E_WARNING)"
playsms-1 |
playsms-1 | ==================================================================
playsms-1 |
playsms-1 | Importing data to database...
playsms-1 | Database has been installed successfully.
playsms-1 |
playsms-1 | ==================================================================
playsms-1 |
playsms-1 | Web admin password has been successfully updated.
playsms-1 |
playsms-1 | WARNING:
playsms-1 | - Web admin username is admin
playsms-1 | - Web admin password is changemeplease
playsms-1 | - This is just the default admin password
playsms-1 | - Login and change it to your own strong password
playsms-1 |
playsms-1 | ==================================================================
playsms-1 |
playsms-1 | playSMS has been installed on your system
playsms-1 |
playsms-1 | Your playSMS daemon script operational guide:
playsms-1 |
playsms-1 | - To start it : playsmsd start
playsms-1 | - To stop it : playsmsd stop
playsms-1 | - To check it : playsmsd check
playsms-1 |
playsms-1 | ==================================================================
playsms-1 |
playsms-1 | INSTALLATION FINISHED.
playsms-1 |
playsms-1 | ==================================================================
playsms-1 |
playsms-1 | playSMS installation ends
playsms-1 |
Gracefully stopping... (press Ctrl+C again to force)
dependency failed to start: container docker-playsms-playsms-1 is unhealthy

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions