Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
5 Odpovědi
1354 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Nejlepší odpověď

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
Zrušit

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.

Nejlepší odpověď

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
Zrušit
Nejlepší odpověď

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

Avatar
Zrušit
Nejlepší odpověď

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

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
čvc 25
400
1
zář 24
1380
2
zář 22
5785
3
zář 18
17897
1
bře 15
6739