Passa al contenuto
Odoo Menu
  • Accedi
  • Provalo gratis
  • App
    Finanze
    • Contabilità
    • Fatturazione
    • Note spese
    • Fogli di calcolo (BI)
    • Documenti
    • Firma
    Vendite
    • CRM
    • Vendite
    • Punto vendita Negozio
    • Punto vendita Ristorante
    • Abbonamenti
    • Noleggi
    Siti web
    • Configuratore sito web
    • E-commerce
    • Blog
    • Forum
    • Live chat
    • E-learning
    Supply chain
    • Magazzino
    • Produzione
    • PLM
    • Acquisti
    • Manutenzione
    • Qualità
    Risorse umane
    • Dipendenti
    • Assunzioni
    • Ferie
    • Valutazioni
    • Referral dipendenti
    • Parco veicoli
    Marketing
    • Social marketing
    • E-mail marketing
    • SMS marketing
    • Eventi
    • Marketing automation
    • Sondaggi
    Servizi
    • Progetti
    • Fogli ore
    • Assistenza sul campo
    • Helpdesk
    • Pianificazione
    • Appuntamenti
    Produttività
    • Comunicazioni
    • Approvazioni
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    App di terze parti Odoo Studio Piattaforma cloud Odoo
  • Settori
    Retail
    • Libreria
    • Negozio di abbigliamento
    • Negozio di arredamento
    • Alimentari
    • Ferramenta
    • Negozio di giocattoli
    Cibo e ospitalità
    • Bar e pub
    • Ristorante
    • Fast food
    • Pensione
    • Grossista di bevande
    • Hotel
    Agenzia immobiliare
    • Agenzia immobiliare
    • Studio di architettura
    • Edilizia
    • Gestione immobiliare
    • Impresa di giardinaggio
    • Associazione di proprietari immobiliari
    Consulenza
    • Società di contabilità
    • Partner Odoo
    • Agenzia di marketing
    • Studio legale
    • Selezione del personale
    • Audit e certificazione
    Produzione
    • Tessile
    • Metallo
    • Arredamenti
    • Alimentare
    • Birrificio
    • Ditta di regalistica aziendale
    Benessere e sport
    • Club sportivo
    • Negozio di ottica
    • Centro fitness
    • Centro benessere
    • Farmacia
    • Parrucchiere
    Commercio
    • Tuttofare
    • Hardware e assistenza IT
    • Ditta di installazione di pannelli solari
    • Calzolaio
    • Servizi di pulizia
    • Servizi di climatizzazione
    Altro
    • Organizzazione non profit
    • Ente per la tutela ambientale
    • Agenzia di cartellonistica pubblicitaria
    • Studio fotografico
    • Punto noleggio di biciclette
    • Rivenditore di software
    Carica tutti i settori
  • Community
    Apprendimento
    • Tutorial
    • Documentazione
    • Certificazioni 
    • Formazione
    • Blog
    • Podcast
    Potenzia la tua formazione
    • Programma educativo
    • Scale Up! Business Game
    • Visita Odoo
    Ottieni il software
    • Scarica
    • Versioni a confronto
    • Note di versione
    Collabora
    • Github
    • Forum
    • Eventi
    • Traduzioni
    • Diventa nostro partner
    • Servizi per partner
    • Registra la tua società di contabilità
    Ottieni servizi
    • Trova un partner
    • Trova un contabile
    • Incontra un esperto
    • Servizi di implementazione
    • Testimonianze dei clienti
    • Supporto
    • Aggiornamenti
    GitHub Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Richiedi una demo
  • Prezzi
  • Aiuto

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Contabilità
  • Magazzino
  • PoS
  • Progetti
  • MRP
All apps
È necessario essere registrati per interagire con la community.
Tutti gli articoli Persone Badge
Etichette (Mostra tutto)
odoo accounting v14 pos v15
Sul forum
È necessario essere registrati per interagire con la community.
Tutti gli articoli Persone Badge
Etichette (Mostra tutto)
odoo accounting v14 pos v15
Sul forum
Assistenza

Odoo 14 high idle CPU load and log rotation problem?

Iscriviti

Ricevi una notifica quando c'è un'attività per questo post

La domanda è stata contrassegnata
deploymentv14
3 Risposte
7401 Visualizzazioni
Avatar
Samo Arko

I've installed Odoo 14 CE from source on Ubuntu 20.04 server. It's installed in proxy mode so it's behind nginx. I've created a service for odoo. Same as all my Odoo 12 CE installs.

I used instructions from https://linuxize.com/post/how-to-install-odoo-14-on-ubuntu-20-04 to help me with the install.

My problem is not that even in idle, no one is accessing odoo, the CPUs are at high load. When looking into the log it looks like odoo is restarting every 2  seconds.

LOG:

2021-01-18 06:52:06,595 3470092 DEBUG ? odoo.netsvc: logger level set: "odoo.http.rpc.request:INFO" 
2021-01-18 06:52:06,595 3470092 DEBUG ? odoo.netsvc: logger level set: "odoo.http.rpc.response:INFO" 
2021-01-18 06:52:06,595 3470092 DEBUG ? odoo.netsvc: logger level set: ":INFO" 
2021-01-18 06:52:06,596 3470092 DEBUG ? odoo.netsvc: logger level set: "odoo:DEBUG" 
2021-01-18 06:52:06,596 3470092 DEBUG ? odoo.netsvc: logger level set: "odoo.sql_db:INFO" 
2021-01-18 06:52:06,596 3470092 DEBUG ? odoo.netsvc: logger level set: ":INFO" 
2021-01-18 06:52:06,597 3470092 INFO ? odoo: Odoo version 14.0 
2021-01-18 06:52:06,597 3470092 INFO ? odoo: Using configuration file at /etc/odoo.conf 
2021-01-18 06:52:06,597 3470092 INFO ? odoo: addons paths: ['/opt/odoo/odoo14/odoo/addons', '/opt/odoo/.local/share/Odoo/addons/14.0', '/opt/odoo/odoo14/addons', '/opt/odoo/customaddons', '/opt/odoo/thirdpartyaddons'] 
2021-01-18 06:52:06,598 3470092 INFO ? odoo: database: odoo@default:default 
2021-01-18 06:52:06,850 3470092 INFO ? odoo.addons.base.models.ir_actions_report: Will use the Wkhtmltopdf binary at /usr/local/bin/wkhtmltopdf

The above messages are repeated every 2 seconds. Is this normal for odoo 14 because it didn't in odoo 12.

The second problem is that my logs don't rotate. I've set the logrotate parameter to true but it's juts writing into the same file. Used same settings and permissions as for odoo 12 on Ubuntu 18, but it's not working.

How to fix this issues?

Thanks!


EDIT:

Running the odoo-bin gets error:

<frozen importlib._bootstrap>:219: RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C header, got 152 from PyObject





0
Avatar
Abbandona
Avatar
Samo Arko
Autore Risposta migliore

The high CPU usage was because Ubuntu 20 has python 3.8 and it doesn't work with the libs in requirements.txt.

Had to add a new line and comment out the original line and create a new venv.

gevent>= 20.9; python_version >= '3.8'
#gevent==1.5.0 ; python_version >= '3.7'

Need to see with odoo usage if there are any problems, but there in no more error when launching odoo from odoo-bin.

Hope this will help with the logrotation.

0
Avatar
Abbandona
Avatar
Neha Sharma
Risposta migliore

Hello Samo Arko


In odoo. conf file

#-----------------------------------------------------------------------------

# True/False. If True, create a daily log file and keep 30 files.

#-----------------------------------------------------------------------------

logrotate = True


It seems logrotate parameter works how I needed it. At first, I didn't notice it, maybe not the whole 24h were not passed yet or (sometimes needed to archive log). But now I see it archives logs daily.


Restarting Problem is maybe the server is overloaded or in your service creating you made mistake please make sure you have not run any CRON job is running on Ubuntu or OS level.

Thanks

For more information Contact us: -     https://kanakinfosystems.com/odoo-development-services

0
Avatar
Abbandona
Samo Arko
Autore

I've set the parameter in odoo.conf. I said in the question "I've set the logrotate parameter to true". Still doesn't work. I had it set a few days already and it doesn't work! No cronjobs are running. The problem for the CPU load is that odoo requirements.txt has unsupportet python libs. Libs gevent and greenlet don't work with the specified versions. So I don't know who marked you answer, but your answer didn't solve anything!

Avatar
Ray
Risposta migliore

Hi,

Add this in your odoo.conf file,

logrotate = True

also, check this link

0
Avatar
Abbandona
Samo Arko
Autore

I've set the logrotate parameter in odoo.conf as said in the question, but I'll check out the link, maybe it'll contain something useful. But I need to fix the python lib versions, maybe that is the reason logrotate doesn't work.

Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!

Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!

Registrati
Post correlati Risposte Visualizzazioni Attività
k8 No such file or directory: '/var/lib/odoo/filestore odoo.exceptions.CacheMiss #388
deployment Odoo13.0 v14
Avatar
0
set 21
7051
Odoo14 alternative for Automated Translations through Gengo API module
v14
Avatar
Avatar
Avatar
Avatar
3
set 25
3646
Odoo Community v14 Slow on High-End Servers, Fast on i5/i7 PCs
v14
Avatar
0
ago 25
1087
How to Managing Birthdate and Age in Odoo
v14
Avatar
Avatar
1
ago 25
3433
Update Initial Stock of Product using XMLRPC API [Odoo14] Risolto
v14
Avatar
Avatar
Avatar
2
lug 25
9008
Community
  • Tutorial
  • Documentazione
  • Forum
Open source
  • Scarica
  • Github
  • Runbot
  • Traduzioni
Servizi
  • Hosting Odoo.sh
  • Supporto
  • Aggiornamenti
  • Sviluppi personalizzati
  • Formazione
  • Trova un contabile
  • Trova un partner
  • Diventa nostro partner
Chi siamo
  • La nostra azienda
  • Branding
  • Contattaci
  • Lavora con noi
  • Eventi
  • Podcast
  • Blog
  • Clienti
  • Note legali • Privacy
  • Sicurezza
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo è un gestionale di applicazioni aziendali open source pensato per coprire tutte le esigenze della tua azienda: CRM, Vendite, E-commerce, Magazzino, Produzione, Fatturazione elettronica, Project Management e molto altro.

Il punto di forza di Odoo è quello di offrire un ecosistema unico di app facili da usare, intuitive e completamente integrate tra loro.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now