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

docker-compose up fails #541

Closed
yuyaYS opened this issue Nov 3, 2021 · 6 comments
Closed

docker-compose up fails #541

yuyaYS opened this issue Nov 3, 2021 · 6 comments

Comments

@yuyaYS
Copy link

yuyaYS commented Nov 3, 2021

Describe the bug
Docker-compose up fails.
The error message says ModuleNotFoundError: No module named 'appMR.urls'
Even though submodule install was success, it still give same error message.

To Reproduce
Initially, I installed docker.io and docker-compose from apt package, but I received same error above when I run docker-compose up.
Then, I remove docker.io and docker-compose and installed docker/docker-compose following official guide.

The following process is to install docker/docker-compose up, sync with submodule and run the application.

  1. Go to https://docs.docker.com/engine/install/ubuntu/ and install docker engine.
    Only change is that argument from $(lsb_release -cs) to focal in step 3, Set up the repository process.
  2. Go to https://docs.docker.com/compose/install/ and install docker-compose
  3. Go to the OnChain-Core repo and change the branch to dev
  4. sync with submodule repos. Run following commands.
  • git submodule init
  • git submodule set-url appMR https://github.com/Romulus10/AppMR.git
  • git submodule set-url clinic_messages https://github.com/Romulus10/DjangoMessage.git
  • git submodule update
  1. Run
  • docker-compose up

Expected behavior
It should install dependencies and build application.

Desktop (please complete the following information):

  • OS: linux mint 20.1(Ubuntu Focal)
  • Docker version: 20.10.10
    API version: 1.41
    Go version: go1.16.9
    Git commit: b485636
    Built: Mon Oct 25 07:42:59 2021
    OS/Arch: linux/amd64
    Context: default
    Experimental: true
  • docker-compose version 1.29.2, build 5becea4c
@Romulus10 Romulus10 self-assigned this Nov 3, 2021
@Romulus10
Copy link
Collaborator

Romulus10 commented Nov 3, 2021

I put together a Linux Mint VM that recreates most of your environment, except it's running Mint 20.2 instead of 20.1.
I wasn't able to reproduce this problem. I'll give it a shot with 20.1 as well, but all of the versions you listed match up otherwise.

Just counting out the weird problems - could you verify that appMR/urls.py actually exists and hasn't been lost in some crazy git accident?

@yuyaYS
Copy link
Author

yuyaYS commented Nov 3, 2021

I checked appMR/urls.py and it was exactly same. Also, I don't think there has been weird accident in git.
I tested out Mint 20.1 on VM and it works!!! Now just need to figure out why I am having trouble in my machine.

@Romulus10
Copy link
Collaborator

I didn't think there was anything weird with Git either honestly, I just wanted to count out anything we could think of.

That's really interesting. If you do manage to figure out the difference, please do let me know so I can make sure it gets documented. It might be something as simple as an old version of a package somewhere.

@yuyaYS
Copy link
Author

yuyaYS commented Nov 5, 2021

I found two commands from the official document.

sudo rm -rf /var/lib/docker
sudo rm -rf /var/lib/containerd 

It is possibly due to the docker from apt package version was old and stayed /bin even after running remove command.

@Romulus10
Copy link
Collaborator

That very well might do it - is this confirmed as fixing the problem?

@yuyaYS
Copy link
Author

yuyaYS commented Nov 5, 2021

Yes it is fixed.

@yuyaYS yuyaYS closed this as completed Nov 5, 2021
@Romulus10 Romulus10 removed their assignment Nov 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants