Siirry sisältöön
Odoo Menu
  • Kirjaudu sisään
  • Kokeile ilmaiseksi
  • Sovellukset
    Talous
    • Kirjanpito
    • Laskutus
    • Kulut
    • Datataulukot (BI)
    • Asiakirjat
    • Allekirjoita
    Myynti
    • CRM
    • Myynti
    • Kassajärjestelmä myymälään
    • Kassajärjestelmä ravintolaan
    • Tilaukset
    • Vuokraus
    Verkkosivut
    • Verkkosivun Rakennustyökalu
    • Verkkokauppa
    • Blogi
    • Foorumi
    • Livechat
    • Verkko-oppiminen
    Toimitusketju
    • Varastointi
    • Tuotanto
    • Tuotteen elinkaaren hallinta (PLM)
    • Ostot
    • Huolto
    • Laatu
    Henkilöstöhallinto
    • Työntekijät
    • Rekrytointi
    • Vapaat
    • Arvioinnit
    • Suositukset
    • Kuljetuskalusto
    Markkinointi
    • Somemarkkinointi
    • Sähköpostimarkkinointi
    • Tekstiviestimarkkinointi
    • Tapahtumat
    • Markkinoinnin automaatio
    • Kyselyt
    Palvelut
    • Projekti
    • Työaikakirjaukset
    • Kenttähuolto
    • Asiakaspalvelu
    • Suunnittelu
    • Ajanvaraukset
    Tuottavuus
    • Viestintä
    • Hyväksynnät
    • IoT
    • IP-puhe
    • Tietokirjasto
    • WhatsApp
    Kolmannen osapuolen sovellukset Odoo-Studio Odoo-Pilvialusta
  • Toimialat
    Vähittäiskauppa
    • Kirjakauppa
    • Vaatekauppa
    • Huonekaluliike
    • Ruokakauppa
    • Laitteistokauppa
    • Lelukauppa
    Ruoka & Majoitus
    • Baari ja Pubi
    • Ravintola
    • Pikaruoka
    • Majatalo
    • Juomien jakelija
    • Hotelli
    Kiinteistöt
    • Kiinteistönvälitystoimisto
    • Arkkitehtitoimisto
    • Rakentaminen
    • Kiinteistönhallinta
    • Puutarhanhoito
    • Kiinteistön omistajien yhdistys
    Konsultointi
    • Tilitoimisto
    • Odoo-kumppani
    • Markkinointitoimisto
    • Lakitoimisto
    • Osaajahankinta
    • Tilintarkastus & sertifiointi
    Tuotanto
    • Tekstiili
    • Metalli
    • Huonekalut
    • Ruoka
    • Panimo
    • Yrityslahjat
    Terveys & Liikunta
    • Urheiluseura
    • Silmälasiliike
    • Kuntokeskus
    • Hyvinvointialan ammattilaiset
    • Apteekki
    • Kampaamo
    Kaupat
    • Yleismies
    • IT-laitteisto & Tuki
    • Aurinkoenergiajärjestelmät
    • Suutari
    • Siivouspalvelut
    • LVI-palvelut
    Muut
    • Voittoa tavoittelematon järjestö
    • Ympäristötoimisto
    • Mainostaulujen vuokraus  
    • Valokuvaus
    • Leasing-pyörät
    • Ohjelmistojen jälleenmyyjä
    Selaa kaikkia toimialoja
  • Yhteisö
    Opi
    • Kurssit
    • Dokumentaatio
    • Todistukset
    • Koulutus
    • Blogi
    • Podcast
    Kannusta kouluttautumaan
    • Koulutusohjelmat
    • Scale Up! Liiketoimintapeli
    • Vieraile Odoolla
    Hanki ohjelmisto
    • Lataa
    • Vertaile versioita
    • Julkaisut
    Tee yhteistyötä
    • Github
    • Foorumi
    • Tapahtumat
    • Käännökset
    • Ryhdy kumppaniksi
    • Kumppanipalvelut
    • Rekisteröi tilitoimistosi
    Hanki palveluja
    • Löydä kumppani
    • Löydä kirjanpitäjä
    • Varaa asiantuntijatapaaminen
    • Implementaatiopalvelut
    • Asiakasreferenssit
    • Tuki
    • Versionkorotukset
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Varaa demo
  • Hinnoittelu
  • Asiakaspalvelu

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

  • CRM
  • e-Commerce
  • Kirjanpito
  • Varastointi
  • PoS
  • Projekti
  • MRP
All apps
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Kaikki kirjoitukset Ihmiset Merkit
Tunnisteet (Näytä kaikki)
odoo accounting v14 pos v15
Tietoa tästä foorumista
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Kaikki kirjoitukset Ihmiset Merkit
Tunnisteet (Näytä kaikki)
odoo accounting v14 pos v15
Tietoa tästä foorumista
Apua

Issue Restoring a Database in Odoo 17 CE : Database already exists

Tilaa

Saat ilmoituksen, kun tähän viestiin ilmaantuu aktiviteettia

Tämä kysymys on merkitty
communityrestoredatabasebackupzipfileOdooV17
2 Vastaukset
2226 Näkymät
Avatar
Tuni ERP

Hello everyone,

I'm facing an issue while trying to restore a database in my Odoo instance.

I created a backup from the Odoo web interface (file: odoodb.zip) using the database manager. Now I’m trying to restore this backup on the same Odoo instance.

However, when I try to import it, I get the following error in the web interface:

Database restore error: Database already exists

And in the terminal, I see the following log:

2025-04-23 10:30:19,568 8369 INFO testdb odoo.service.db: RESTORING DB: odoodb 
2025-04-23 10:32:20,660 8369 WARNING ? odoo.service.server: Thread , <Thread(odoo.service.http.request.140697989527104, started 140697989527104)> virtual real time limit (168/120s) reached. 
...
odoo/service/db.py", line 326, in restore_db
  r = subprocess.run(
...
subprocess.py", line 1260, in wait
  return self._wait(timeout=timeout)

Additional information:

  • I’m restoring the database through the web interface at: http://<my-ip>:8069/web/database/restore
  • The database name I’m trying to restore does not currently exist (or shouldn't).
  • The restoration process seems to hang until it reaches the virtual real time limit.

Note:

The database did not exist before I attempted the restore. The PostgreSQL server contains no other custom databases — only the default ones created by the system.

My questions:

  • How can I properly restore a .zip database backup if it supposedly doesn’t already exist?
  • Could this be a caching or permission issue?
  • Are there any recommended best practices when restoring database backups in Odoo?

Thanks in advance for your help!

0
Avatar
Hylkää
Avatar
Jainesh Shah(Aktiv Software)
Paras vastaus

Hello Tuni ERP, 


This issue can sometimes occur if the database backup is large or if the web interface reaches a timeout during the restore process.

If you're encountering a server time out error, you can adjust the time limits in your Odoo configuration file (odoo.conf) by adding the following parameters: 

    limit_time_cpu = 1200

    limit_time_real = 1200

These settings increase the allowed processing time and can help with large database restores.

If you're using a Linux-based system like Ubuntu, it's generally more reliable to restore the database via the terminal instead of the web interface.

 Here’s a step-by-step guide:

1. Unzip your .zip backup file — it typically contains a .sql dump file inside.

2. Create a New PostgreSQL Database

    - Open a terminal and run the following command to create a new empty database (replace your_database_name with your preferred name):

createdb your_database_name

 3. Restore the SQL Dump

   - Use the following command to restore the .sql file into the new database:

psql your_database_name < /full/path/to/your_dump_file.sql

Make sure to replace the path with the actual location of your dump file. 

Once completed, your database should be restored and accessible via your Odoo instance.

Feel free to reach out if you have any questions or run into issues - happy to help !! 


Thanks & Regards,

Email:  odoo@aktivsoftware.com           

Skype: kalpeshmaheshwari

0
Avatar
Hylkää
Avatar
Noble Saji
Paras vastaus

From the logs, it is evident that when you try to restore a db, the thread reaches a time limit and is killed. In order to fix this try setting the limit_time_cpu and limit_time_real parameters in your odoo-sever.conf file. You will find a lot of examples of these in other posts. Let us know if it works. Thank you

0
Avatar
Hylkää
Nautitko keskustelusta? Älä vain lue, vaan osallistu!

Luo tili jo tänään nauttiaksesi yksinoikeusominaisuuksista ja osallistuaksesi mahtavaan yhteisöömme!

Rekisteröidy
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
How to restore a dump.sql file to new postgresql database ? Ratkaistu
restore databasebackup Postgresql9.4
Avatar
Avatar
Avatar
Avatar
Avatar
10
tammik. 21
80826
Problem- Restore Database on Odoo 8
restore restoredb databasebackup
Avatar
Avatar
Avatar
3
kesäk. 16
8338
restore database from terminal
database restore restoredb databasebackup
Avatar
1
toukok. 16
9314
How to make snapshots of the Odoo online configuration and restore them?
backup restore restoredb databasebackup snapshot
Avatar
0
huhtik. 24
3209
Odoo database restore error Ratkaistu
community database databasebackup v14 databasemigration
Avatar
Avatar
1
tammik. 23
6786
Yhteisö
  • Kurssit
  • Dokumentaatio
  • Foorumi
Avoin lähdekoodi
  • Lataa
  • Github
  • Runbot
  • Käännökset
Palvelut
  • Odoo.sh hosting
  • Tuki
  • Versionkorotus
  • Räätälöidyt kehitykset
  • Koulutus
  • Löydä kirjanpitäjä
  • Löydä kumppani
  • Ryhdy kumppaniksi
Meistä
  • Yrityksemme
  • Brändiominaisuudet
  • Ota yhteyttä
  • Työpaikat
  • Tapahtumat
  • Podcast
  • Blogi
  • Asiakkaat
  • Oikeudellinen ilmoitus • Yksityisyys
  • Tietoturva
الْعَرَبيّة 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 on kokoelma avoimen lähdekoodin yrityssovelluksia, jotka kattavat kaikki yrityksesi tarpeet: asiakkuudenhallinta eli CRM, verkkokauppa, kirjanpito, varastointi, kassajärjestelmä, projektinhallinta, jne.

Odoon uniikki arvolupaus on olla samanaikaisesti erittäin helppokäyttöinen ja täysin integroitu.

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