azukaar / Cosmos-Server

☁️ The Most Secure and Easy Selfhosted Home Server. Take control of your data and privacy without sacrificing security and stability (Authentication, anti-DDOS, anti-bot)
https://cosmos-cloud.io
Other
3.45k stars 119 forks source link

[BUG]: Can't create meshcentral docker #145

Closed jindalvivek closed 10 months ago

jindalvivek commented 10 months ago

What happened?

Using this docker compose file: File

I have just changed the HOSTNAME to my subdomain.

What should have happened?

-

How to reproduce the bug?

  1. Use import compose file function

Relevant log output

Creating Service...                              
Starting creation of new service...
Pulling image mongo:latest
latest Pulling from library/mongo 
{"status":"Digest: sha256:e86b32dc3df2a30610dd3eeab15132b67d3ae00f3435a3c72ada21b12dfd6c5e"}
{"status":"Status: Image is up to date for mongo:latest"}
Image mongo:latest pulled
Pulling image typhonragewind/meshcentral:mongodb-latest
mongodb-latest Pulling from typhonragewind/meshcentral 
{"status":"Digest: sha256:e9f3fa15e2cd9afe930b8003ec6e034c71c667fbf720574c3abb5d6e6e29d0f6"}
{"status":"Status: Image is up to date for typhonragewind/meshcentral:mongodb-latest"}
Image typhonragewind/meshcentral:mongodb-latest pulled
Checking service meshcentral...
Creating container meshcentral...
Checking directory /mnt/host/usr/meshcentral/data for bind mount
Checking directory /mnt/host/usr/meshcentral/user_files for bind mount
Container meshcentral createdChecking service mongodb...
Creating container meshcentral_db...
Checking directory /mnt/host/opt/meshcentral/database for bind mount
Container meshcentral_db created[ERROR] Rolling back changes because of -- Container creation error: Could not start all services due to unsatisfied dependencies or circular dependencies:
Could not start service: meshcentral
Unsatisfied dependencies:
Rolled back container meshcentral_db
Rolled back container meshcentral
[OPERATION FAILED]. CHANGES HAVE BEEN ROLLEDBACK.

Other details

No response

System details

azukaar commented 10 months ago

You overwrite the container name, so the dependency manager cannot find "mongodb" You should change "mongodb" to whatever name you want to use, both in the containerID and the depends_on

image