İçereği Atla
Menü
Bu soru işaretlendi
5 Cevaplar
1396 Görünümler

Hi everyone!


So I have a weird issue, whenever i reboot, or restart Odoo, the company name goes back to MyCompany, it removes the logo and i have to re-link it to its contact card and upload the logos again.

I also noticed that the user Admin goes back to admin again, even after being deleted or modified.


The rest of the configuration and settings, just works as intended! Any Idea on why this may be happening??

Avatar
Vazgeç
En İyi Yanıt

Hello Juan, May I know which command you are using to restart the Odoo server? It will help to identify if the issue is related to the way the server is being restarted.

Avatar
Vazgeç
En İyi Yanıt

I am also having this issue. I'm not using the dev=all flag during deployment, so this wasn't our issue. Has anyone else figured this out? 

For more reference to our specific problem.. we run a docker container inside of an ec2 instance, with a EFS mounted to the container for persistent storage of the filesystem. In theory this should prevent any loss of data, but any time I stop and restart the instance or even just the docker container, the company name and logo are lost, and the admin user is reverted back to its default credentials. This seems to be the extent of the issue, which makes it all the more confusing because the rest of the data seems to persist.

Hopefully someone can point me in the correct direction for resolving this issue. 

Avatar
Vazgeç

Hello Smith, May I know which command you are using to restart the Odoo server? It will help to identify if the issue is related to the way the server is being restarted

Hi Rushnik, thank you for reaching out. There is a script that is created upon deployment of the ec2 instance. This script is executed whenever the ec2 server is rebooted. I am also able to invoke the script manually after stopping the docker containers for nginx and odoo to perform a manual reboot of the odoo instance. This script executes a docker compose file for both the odoo and nginx containers.

After diving deeper into this, I may have found the issue the command argument in the docker compose file is as follows:

command: >
bash -c "pip install qifparse --break-system-packages && odoo
--addons-path=/usr/lib/python3/dist-packages/odoo/addons,/mnt/odoo/addons,/mnt/odoo/addons/project
--workers=4
--proxy-mode
--database=$DB_NAME
--db_host=$DB_HOST
--db_port=$DB_PORT
--db_user=$DB_USER
--db_password=$DB_PASSWORD
-i base,web,base_account_budget,base_accounting_kit,project_department,project_key,project_milestone_status,project_parent,project_parent_task_filter,project_pivot,project_purchase_link,project_role,project_scrum,project_sequence,project_type,project_template,project_type,project_version,project_task_note,project_role,project_pivot,mail,calendar,contacts,hr,project,sales_team,crm,stock,account
--without-demo=All"

Is " -i base..." potentially causing this issue? Should this only be run once upon initialization of the database, and omitted from the docker compose entirely? I was under the impression that these flags activate the module, but it appears that it might also be remapping the database to default values and overriding things like the company logo.

En İyi Yanıt

In my case I found the issue is related to the command option `-i base`​ when starting the odoo service (`odoo -i base`).

If this is your case, removing the option would fix the issue.

Avatar
Vazgeç
En İyi Yanıt

It happens when you run with dev=all as far as I can see.

Avatar
Vazgeç
En İyi Yanıt

I am having the same issue, did you find a solution?

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
2
Tem 25
436
1
Eyl 24
1407
2
Eyl 22
5830
3
Eyl 18
17923
1
Mar 15
6771