Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with database running migrations triggering docker-compose error related to webpack - docker login #9128

Closed
samqi opened this issue Mar 19, 2024 · 3 comments
Labels
need-more-info This issue does not have enough information to start working on it. 🐳 self-hosted/docker Issues related to docker installations waiting-for-reply

Comments

@samqi
Copy link

samqi commented Mar 19, 2024

Describe the bug

I encounter an error related to webpack & docker login when running step #4 "Prepare the database by running the migrations." docker-compose run command docker compose run --rm rails bundle exec rails db:chatwoot_prepare following the docker installation guide.

I'm running Ubuntu 22.04.4 with Docker & docker-compose already installed.

To Reproduce

  1. In cmd line run the database migrations command docker compose run --rm rails bundle exec rails db:chatwoot_prepare
  2. Press enter and let it run
  3. Error outputs:
Creating network "chatwoot_default" with the default driver
Creating volume "chatwoot_postgres" with default driver
Creating volume "chatwoot_redis" with default driver
Creating volume "chatwoot_packs" with default driver
Creating volume "chatwoot_node_modules" with default driver
Creating volume "chatwoot_cache" with default driver
Creating volume "chatwoot_bundle" with default driver
Building webpack
Step 1/4 : FROM chatwoot:development
ERROR: Service 'webpack' failed to build : pull access denied for chatwoot, repository does not exist or may require 'docker login': denied: requested access to the resource is denied

Expected behavior

expected webpack to run, and the rails db migration runs as it should

Environment

Docker

Cloud Provider

None

Platform

None

Operating system

Ubuntu 22.04.4

Browser and version

Google Chrome

Docker (if applicable)

**$ docker version**
Client:
 Version:           24.0.5
 API version:       1.43
 Go version:        go1.20.3
 Git commit:        24.0.5-0ubuntu1~22.04.1
 Built:             Mon Aug 21 19:50:14 2023
 OS/Arch:           linux/amd64
 Context:           default

Server:
 Engine:
  Version:          24.0.5
  API version:      1.43 (minimum version 1.12)
  Go version:       go1.20.3
  Git commit:       24.0.5-0ubuntu1~22.04.1
  Built:            Mon Aug 21 19:50:14 2023
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.7.2
  GitCommit:
 runc:
  Version:          1.1.7-0ubuntu1~22.04.2
  GitCommit:
 docker-init:
  Version:          0.19.0
  GitCommit:
**$ docker info**
 Client:
 Version:    24.0.5                                                                                                                          Context:    default
 Debug Mode: false

Server:
 Containers: 66
  Running: 0
  Paused: 0
  Stopped: 66
 Images: 215
 Server Version: 24.0.5                                                                                                                      Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false                                                                                                                       Native Overlay Diff: true
  userxattr: false                                                                                                                           Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay                                                                                            Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog                                                        Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc                                                                                                        Default Runtime: runc                                                                                                                       Init Binary: docker-init
 containerd version:
 runc version:
 init version:                                                                                                                               Security Options:
  apparmor                                                                                                                                    seccomp                                                                                                                                      Profile: builtin                                                                                                                           cgroupns
 Kernel Version: 6.5.0-25-generic
 Operating System: Ubuntu 22.04.4 LTS
 OSType: linux
 Architecture: x86_64
 CPUs: 16
 Total Memory: 15.61GiB
 Name: machine-name
 ID: 2e02e5f8-cb4c-4b05-bd01-badd190283d9
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false
**$ docker-compose version**
docker-compose version 1.29.2, build unknown
docker-py version: 5.0.3
CPython version: 3.10.12
OpenSSL version: OpenSSL 3.0.2 15 Mar 2022

Additional context

No response

@samqi samqi added the Bug label Mar 19, 2024
@vishnu-narayanan
Copy link
Member

@samqi Are you doing local development? If yes, you will need to build the local images yourself before running the migration.

@vishnu-narayanan vishnu-narayanan added need-more-info This issue does not have enough information to start working on it. waiting-for-reply 🐳 self-hosted/docker Issues related to docker installations and removed Bug labels Apr 5, 2024
@vishnu-narayanan
Copy link
Member

Closing this for now. Please reopen if you are facing issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need-more-info This issue does not have enough information to start working on it. 🐳 self-hosted/docker Issues related to docker installations waiting-for-reply
Projects
None yet
Development

No branches or pull requests

2 participants