davidmonterocrespo24/odoo_micro_saas

Instance creation failure

Closed this issue · 19 comments

Impacted versions:
16.0
Steps to reproduce:
When you click on start instance it starts but on the log, it shows error and that instance was not created
Current behavior:
image
image

Expected behavior:
To work well and open with the new port
Video/Screenshot link (optional):
image

Hello, thank you very much for reporting the error. To solve it you must install docker compose

https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-compose-on-ubuntu-20-04

Greetings

Hello Please note that I have installed docker compose already and am still getting the same error

On Fri, 20 Oct 2023 at 02:06, David Montero Crespo @.> wrote: Hello, thank you very much for reporting the error. To solve it you must install docker compose https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-compose-on-ubuntu-20-04 Greetings — Reply to this email directly, view it on GitHub <#29 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AP5QBF3LRF37FKUVJFI7AI3YAHFABAVCNFSM6AAAAAA6HZZVR2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZRHEYTAMZWGY . You are receiving this because you authored the thread.Message ID: @.>

add the user you are running with in odoo to docker

sudo usermod -aG docker USER

In the log, it says that there was an error executing the docker-compose command.
copy that command and run it on your server directly to see if there is no permissions problem

image
Here is what i get after running the code

error to create instance
1111

ERROR: The Compose file '/odoo/odoo_docker/data/odoo_15_company1/docker-compose.yml' is invalid because:
services.odoo15.ports contains an invalid type, it should be a number, or an object
services.odoo15.ports contains an invalid type, it should be a number, or an object

image

I am still this error and it is not working.

Should I share my server credentials for you to see?

ERROR: The Compose file '/odoo/odoo_docker/data/odoo_15_company1/docker-compose.yml' is invalid because: services.odoo15.ports contains an invalid type, it should be a number, or an object services.odoo15.ports contains an invalid type, it should be a number, or an object

The error it is showing you is that the ports are invalid, share an image to see how the instance turned out

image

I am still this error and it is not working.

Should I share my server credentials for you to see?

Can you run the command that is giving you the error directly on the server to see the more exact error?
Update the module with the new improvements I have made

image

image

I got this error while upgrading the module with your latest push

Screenshot from 2023-11-10 19-07-51

when I run the command you put above i get this error above.

when I updated the module, I still get this error above

Screenshot from 2023-11-10 19-07-51

when I run the command you put above i get this error above.

when I updated the module, I still get this error above

Send me the photo of the instance created in Odoo, where the variables are. The ports are not correct
@samako41

Hello David I have shared the picture already. I do appreciate all of your help and effort. I await your response soon. Many thanks

On Sat, 11 Nov 2023 at 01:25, David Montero Crespo @.> wrote: [image: Screenshot from 2023-11-10 19-07-51] https://user-images.githubusercontent.com/66781335/282202501-6c21dd4f-0a6c-42e0-999d-3d3c99bbff2d.png when I run the command you put above i get this error above. when I updated the module, I still get this error above Send me the photo of the instance created in Odoo, where the variables are. The ports are not correct — Reply to this email directly, view it on GitHub <#29 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AP5QBFY2LKTPC6RSM3OCUCTYD3AWNAVCNFSM6AAAAAA6HZZVR2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBWGU4TEMJWGE . You are receiving this because you authored the thread.Message ID: @.>

@samako41

The error has been corrected, update the code on your odoo server

i have same issue on odoo 16

#12/06/2023, 19:20:55 [INFO] Docker Compose command executed successfully

#12/06/2023, 19:20:55 Error to execute command: Command 'docker-compose -f /opt/odoo/odoo_docker/data/odoo_15_from_template/docker-compose.yml up -d' returned non-zero exit status 1.

#12/06/2023, 19:20:55 [INFO] Path to modified docker-compose.yml file

#12/06/2023, 19:20:55 [INFO] Archivo odoo.conf creado exitosamente en /opt/odoo/odoo_docker/data/odoo_15_from_template/etc/odoo.conf

#12/06/2023, 19:20:55 [INFO] Starting Odoo Instance False