Local quickstart failing due to permissions error

I’m trying to start tutor local quickstart, in non-root mode, as I downloaded the binary and installed applying the recommended permission for it (via chmod 0755). So, I’m having the following errors :

==================================================
        Interactive platform configuration
==================================================
Are you configuring a production platform? Type 'n' if you are just testing Tutor on your local computer [y/N] n
As you are not running this platform in production, we automatically set the following configuration values:
    LMS_HOST = local.overhang io
    CMS_HOST = studio.local.overhang io
    ENABLE_HTTPS = False
Your platform name/title [Test Project] 
Your public contact email address [myproject@gmail.com] 
The default language code for the platform [pt-br] 
Configuration saved to /home/mylab/.local/share/tutor/config.yml
Environment generated in /home/mylab/.local/share/tutor/env
==============================================
        Stopping any existing platform
==============================================
docker-compose -f /home/mylab/.local/share/tutor/env/local/docker-compose.yml -f /home/mylab/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local stop
Stopping tutor_local_mfe_1  ... done
Stopping tutor_local_smtp_1 ... done
======================================================
        Starting the platform in detached mode
======================================================
docker-compose -f /home/mylab/.local/share/tutor/env/local/docker-compose.yml -f /home/mylab/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local up --remove-orphans --build -d
Removing tutor_local_cms-permissions_1
Removing tutor_local_elasticsearch-permissions_1
Removing tutor_local_lms-permissions_1
Removing tutor_local_mysql-permissions_1
Removing tutor_local_caddy_1
Removing tutor_local_mysql_1
Removing tutor_local_redis-permissions_1
Removing tutor_local_mongodb-permissions_1
Building mfe
...
Successfully tagged overhangio/openedx-mfe:13.0.2
Starting b861ca56b8a5_tutor_local_elasticsearch-permissions_1 ... 
Starting 32d2c7070df2_tutor_local_redis-permissions_1         ... error
Recreating 5522851eb846_tutor_local_mysql_1                   ... 
Starting e2fb40c12ff4_tutor_local_cms-permissions_1           ... 
Starting b861ca56b8a5_tutor_local_elasticsearch-permissions_1 ... error
Starting tutor_local_smtp_1                                   ... 
Recreating tutor_local_mfe_1                                  ... 
Recreating 480613a0944c_tutor_local_caddy_1                   ... 
Starting 3bd2b8f204f9_tutor_local_mongodb-permissions_1       ... 
Starting 70d7118e32b7_tutor_local_lms-permissions_1           ... 

Starting e2fb40c12ff4_tutor_local_cms-permissions_1           ... error
aused: process_linux.go:545: container init caused: rootfs_linux.go:76: mounting "/home/mylab/.local/share/tutor/data/redis" to rootfs at "/openedx/redis/data" caused: stat /hStarting tutor_local_smtp_1                                   ... done

ERROR: for b861ca56b8a5_tutor_local_elasticsearch-permissions_1  Cannot start service elasticsearch-permissions: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: rootfs_linux.go:76: mounting "/home/mylab/.local/share/tutor/data/elasticsearch" to rootfs at "/usr/share/elasticsearch/data" caused: stat /home/mylab/.local/share/tutor/data/elasticsearch: permission denied: unknown

ERROR: for e2fb40c12ff4_tutor_local_cms-permissions_1  Cannot start service cms-permissions: OCI runtime create failed: container_linux.go:380: starting container process causeStarting db02290103ca_tutor_local_mysql-permissions_1         ... error
me/mylab/.local/share/tutor/data/openedx-media: permission denied: unknown
Recreating tutor_local_mfe_1                                  ... done
ERROR: for 3bd2b8f204f9_tutor_local_mongodb-permissions_1  Cannot start service mongodb-permissions: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: rootfs_linux.go:76: mounting "/home/mylab/.local/share/tutor/data/mongodb" to rootfs at "/data/db" caused: stat /home/mylab/.local/share/tutor/data/mongodb: permission denied: unknown
Recreating 5522851eb846_tutor_local_mysql_1                   ... error
ERROR: for db02290103ca_tutor_local_mysql-permissions_1  Cannot start service mysql-permissions: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: rootfs_linux.go:76: mounting "/home/mylab/.local/share/tutor/data/mysql" to rootfs at "/var/lib/mysql" caused: stat /home/mStarting 70d7118e32b7_tutor_local_lms-permissions_1           ... error

ERROR: for 70d7118e32b7_tutor_local_lms-permissions_1  Cannot start service lms-permissions: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: rootfs_linux.go:76: mounting "/home/mylab/.local/share/tutor/data/lms" to rootfs at "/openedx/data" caused: stat /home/mylab/.local/share/tutor/data/lms: permission denied: unknown

Recreating 480613a0944c_tutor_local_caddy_1                   ... error
545: container init caused: rootfs_linux.go:76: mounting "/home/mylab/.local/share/tutor/data/mysql" to rootfs at "/var/lib/mysql" caused: stat /home/mylab/.local/share/tutor/data/mysql: permission denied: unknown

ERROR: for 480613a0944c_tutor_local_caddy_1  Cannot start service caddy: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: rootfs_linux.go:76: mounting "/home/mylab/.local/share/tutor/env/apps/caddy/Caddyfile" to rootfs at "/etc/caddy/Caddyfile" caused: stat /home/mylab/.local/share/tutor/env/apps/caddy/Caddyfile: permission denied: unknown

ERROR: for redis-permissions  Cannot start service redis-permissions: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: rootfs_linux.go:76: mounting "/home/mylab/.local/share/tutor/data/redis" to rootfs at "/openedx/redis/data" caused: stat /home/mylab/.local/share/tutor/data/redis: permission denied: unknown

ERROR: for elasticsearch-permissions  Cannot start service elasticsearch-permissions: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: rootfs_linux.go:76: mounting "/home/mylab/.local/share/tutor/data/elasticsearch" to rootfs at "/usr/share/elasticsearch/data" caused: stat /home/mylab/.local/share/tutor/data/elasticsearch: permission denied: unknown

ERROR: for cms-permissions  Cannot start service cms-permissions: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: rootfs_linux.go:76: mounting "/home/mylab/.local/share/tutor/data/openedx-media" to rootfs at "/openedx/media" caused: stat /home/mylab/.local/share/tutor/data/openedx-media: permission denied: unknown

ERROR: for mongodb-permissions  Cannot start service mongodb-permissions: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: rootfs_linux.go:76: mounting "/home/mylab/.local/share/tutor/data/mongodb" to rootfs at "/data/db" caused: stat /home/mylab/.local/share/tutor/data/mongodb: permission denied: unknown

ERROR: for mysql-permissions  Cannot start service mysql-permissions: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: rootfs_linux.go:76: mounting "/home/mylab/.local/share/tutor/data/mysql" to rootfs at "/var/lib/mysql" caused: stat /home/mylab/.local/share/tutor/data/mysql: permission denied: unknown

ERROR: for lms-permissions  Cannot start service lms-permissions: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: rootfs_linux.go:76: mounting "/home/mylab/.local/share/tutor/data/lms" to rootfs at "/openedx/data" caused: stat /home/mylab/.local/share/tutor/data/lms: permission denied: unknown

ERROR: for mysql  Cannot start service mysql: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: rootfs_linux.go:76: mounting "/home/mylab/.local/share/tutor/data/mysql" to rootfs at "/var/lib/mysql" caused: stat /home/mylab/.local/share/tutor/data/mysql: permission denied: unknown

ERROR: for caddy  Cannot start service caddy: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: rootfs_linux.go:76: mounting "/home/mylab/.local/share/tutor/env/apps/caddy/Caddyfile" to rootfs at "/etc/caddy/Caddyfile" caused: stat /home/mylab/.local/share/tutor/env/apps/caddy/Caddyfile: permission denied: unknown
ERROR: Encountered errors while bringing up the project.
Error: Command failed with status 1: docker-compose -f /home/mylab/.local/share/tutor/env/local/docker-compose.yml -f /home/mylab/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local up --remove-orphans --build -d

Can you run docker as a normal user?
[Post-installation steps for Linux | Docker Documentation](Can you check if these post installation docker steps are performed?)

Yes, I did this, and as I’m running on Debian 10 “Buster”, the .docker strangely doesn’t exist, so I created and tried again, still nothing. I tried to apply the same principles of permissions as in Docker to /home/mylab/.local/share/tutor, but it accuses the directory as not existing.

Will keep trying.

Hi @pedroalvesbatista! Can you tell us a little bit more about your environment? Are you running Debian natively, in a VM or in lxd? Is it a server or a personal computer? How did you install Docker?

Hi @regis thanks for replying !

I’m using Debian in my desktop PC, and installed Docker downloading the binary from the website. Tutor is the only application giving me those weirdness, since I use Docker for other projects and everything run just fine. I had the very same problem in another machine, using Rocky Linux.

Do you mean that you downloaded the .deb package, as described here?

It’s difficult for me to troubleshoot this issue without access to the computer itself. Can you give us your version number of Docker and docker-compose?

Sure !

Client:
 Version:           20.10.12
 API version:       1.41
 Go version:        go1.16.12
 Git commit:        e91ed57
 Built:             Mon Dec 13 11:40:57 2021
 OS/Arch:           linux/amd64
 Context:           default
 Experimental:      true

Server: Docker Engine - Community
 Engine:
  Version:          20.10.12
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.16.12
  Git commit:       459d0df
  Built:            Mon Dec 13 11:46:12 2021
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          v1.4.12
  GitCommit:        7b11cfaabd73bb80907dd23182b9347b4245eb5d
 runc:
  Version:          1.0.2
  GitCommit:        v1.0.2-0-g52b36a2d
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

And Docker Compose :

docker-compose version 1.29.2, build unknown
docker-py version: 5.0.0
CPython version: 3.7.3
OpenSSL version: OpenSSL 1.1.1d  10 Sep 2019

@regis Last time I installed, didn’t use the .deb, just the compiled binary and put in /usr/bin.

So you mean you don’t have a docker daemon running on your OS? Where is this installation procedure documented?

Just followed this : Install Docker Engine from binaries | Docker Documentation. Downloaded tar file, extracted and that’s it.

Right. I encourage you to actually read the instructions from that very page you linked…

Well, I followed everything in instructions, from top to bottom, and the problem still persists. Will keep trying. Thanks Regis !