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

Odoo Critical error "failed to initialize database" once server_environemnt is installed #44

Closed
dreispt opened this issue Mar 31, 2020 · 8 comments

Comments

@dreispt
Copy link
Member

dreispt commented Mar 31, 2020

server-env/server_environment/serv_config.py", line 50, in <module>
    "The parameter 'running_env' has not be set neither in base config "
Exception: The parameter 'running_env' has not be set neither in base config file option -c or in openerprc.
We strongly recommend against using the rc file but instead use an explicit config file with this content:
[options]
running_env = dev

I get the point that the additional configuration is very important.
But does it justify preventing the service from starting?
I think this would be a log message, rather than a error with a traceback.

@simahawk
Copy link
Contributor

IMO we should default to running_env=dev + show a warning that is running in dev mode.
@guewen ?

@guewen
Copy link
Member

guewen commented Mar 31, 2020

I agree!

@amh-mw
Copy link

amh-mw commented Mar 31, 2020

Per https://github.com/OCA/server-env/tree/13.0/server_environment#configuration

Values associated to keys containing 'passw' are only displayed in the 'dev' environment.

I'm not sure that we should default to a setting that exposes passwords...

@dreispt
Copy link
Member Author

dreispt commented Mar 31, 2020

I'm not sure what "displayed" means (printed out to the server log?), but following @amh-mw comment, I suggest using test as the default value, rather than dev..

@guewen
Copy link
Member

guewen commented Apr 1, 2020

IIRC, the module automatically replaces password fields with * chars in form views unless the running env is dev. This is a good remark @amh-mw, considering this, it would be better to use test by default indeed.

simahawk added a commit to simahawk/server-env that referenced this issue Apr 1, 2020
simahawk added a commit to simahawk/server-env that referenced this issue Apr 1, 2020
@simahawk
Copy link
Contributor

simahawk commented Apr 1, 2020

ah, reading now these remarks... 😅
I'll update my PR then :)

simahawk added a commit to simahawk/server-env that referenced this issue Apr 1, 2020
@simahawk
Copy link
Contributor

simahawk commented Apr 1, 2020

#45

simahawk added a commit to simahawk/server-env that referenced this issue Apr 1, 2020
simahawk added a commit to simahawk/server-env that referenced this issue Apr 1, 2020
simahawk added a commit to simahawk/server-env that referenced this issue Apr 2, 2020
simahawk added a commit to simahawk/server-env that referenced this issue Apr 2, 2020
@pedrobaeza
Copy link
Member

I suppose this is the same error I have now in OCA/l10n-spain:

https://travis-ci.org/github/OCA/l10n-spain/jobs/670689281#L2437

Is it?

simahawk added a commit to simahawk/server-env that referenced this issue Apr 10, 2020
simahawk added a commit to simahawk/server-env that referenced this issue Apr 10, 2020
pedrobaeza added a commit that referenced this issue Apr 10, 2020
server_environment: running_env default to `test` (fix #44)
alexey-pelykh pushed a commit to brainbeanapps/server-env that referenced this issue Apr 15, 2020
alexey-pelykh pushed a commit to brainbeanapps/server-env that referenced this issue Apr 15, 2020
alexey-pelykh pushed a commit to brainbeanapps/server-env that referenced this issue Apr 15, 2020
alexey-pelykh pushed a commit to brainbeanapps/server-env that referenced this issue Apr 15, 2020
alexey-pelykh pushed a commit to brainbeanapps/server-env that referenced this issue Apr 16, 2020
alexey-pelykh pushed a commit to brainbeanapps/server-env that referenced this issue Apr 16, 2020
guewen added a commit to guewen/odoo-cloud-platform that referenced this issue May 11, 2020
Now the default env is "test", and we don't need the directory
at all.
See OCA/server-env#44
guewen added a commit to guewen/odoo-cloud-platform that referenced this issue May 11, 2020
Now the default env is "test", and we don't need the directory
at all.
See OCA/server-env#44
guewen added a commit to guewen/odoo-cloud-platform that referenced this issue May 11, 2020
Now the default env is "test", and we don't need the directory
at all.
See OCA/server-env#44
mourad-ehm pushed a commit to akretion/server-env that referenced this issue Oct 12, 2020
mourad-ehm pushed a commit to akretion/server-env that referenced this issue Oct 12, 2020
sbejaoui pushed a commit to acsone/server-env that referenced this issue Oct 14, 2020
sbejaoui pushed a commit to acsone/server-env that referenced this issue Oct 14, 2020
JuMiSanAr pushed a commit to camptocamp/server-env that referenced this issue Oct 18, 2021
JuMiSanAr pushed a commit to camptocamp/server-env that referenced this issue Oct 18, 2021
JuMiSanAr pushed a commit to camptocamp/server-env that referenced this issue Oct 22, 2021
JuMiSanAr pushed a commit to camptocamp/server-env that referenced this issue Oct 22, 2021
simahawk added a commit to camptocamp/server-env that referenced this issue Oct 22, 2021
FrancoMaxime pushed a commit to acsone/server-env that referenced this issue Sep 1, 2022
FrancoMaxime pushed a commit to acsone/server-env that referenced this issue Oct 4, 2022
moitabenfdz pushed a commit to DynAppsNV/server-env that referenced this issue Nov 13, 2023
thienvh332 pushed a commit to thienvh332/server-env that referenced this issue Sep 20, 2024
thienvh332 pushed a commit to thienvh332/server-env that referenced this issue Sep 24, 2024
chaule97 pushed a commit to chaule97/server-env that referenced this issue Oct 1, 2024
chaule97 pushed a commit to chaule97/server-env that referenced this issue Oct 1, 2024
chaule97 pushed a commit to chaule97/server-env that referenced this issue Oct 1, 2024
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

5 participants