Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

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

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

Odoo11 backup module creates 0 sized backup ZIP files

Subscribe

Get notified when there's activity on this post

This question has been flagged
backup
2950 Views
Avatar
Marcio Valenzuela

Im getting a bunch of backups made when its only supposed to be a daily backup, plus the backups are empty zip files.

Im using the automated database backup module on v11.


And when I try to do a manual backup from /web/database/manager i get a HTTP 500 Error.


Settings:

localhost

ZIP backup type

Backup Scheduler

Number of Calls -1

Execute Every 1Days

Priority 5


If i click Run Manually I get the 0 sized ZIP files in my backup folder.  But it used to work. 

Here is the relevant log error:

Traceback (most recent call last):
  File "/opt/odoo/odoo/addons/bus/models/bus.py", line 181, in run
    self.loop()
  File "/opt/odoo/odoo/addons/bus/models/bus.py", line 176, in loop
    event.set()
  File "/opt/odoo/odoo/odoo/sql_db.py", line 404, in __exit__
    self.close()
  File "/opt/odoo/odoo/odoo/sql_db.py", line 155, in wrapper
    return f(self, *args, **kwargs)
  File "/opt/odoo/odoo/odoo/sql_db.py", line 288, in close
    return self._close(False)
  File "/opt/odoo/odoo/odoo/sql_db.py", line 318, in _close
    self._cnx.rollback()
psycopg2.InterfaceError: connection already closed
2021-02-02 13:50:38,170 29144 INFO Company_production_2020-12-01_15-17-58 werkzeug: 205.211.254.213 - - [02/Feb/2021 13:50:38] "POST /web/dataset/call_button HTTP/1.1" 500 -
2021-02-02 13:50:38,177 29144 ERROR Company_production_2020-12-01_15-17-58 werkzeug: Error on request:
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/werkzeug/serving.py", line 205, in run_wsgi
    execute(self.server.app)
  File "/usr/local/lib/python3.6/dist-packages/werkzeug/serving.py", line 193, in execute
    application_iter = app(environ, start_response)
  File "/opt/odoo/odoo/odoo/service/server.py", line 348, in app
    return self.app(e, s)
  File "/opt/odoo/odoo/odoo/service/wsgi_server.py", line 180, in application
    return application_unproxied(environ, start_response)
  File "/opt/odoo/odoo/odoo/service/wsgi_server.py", line 154, in application_unproxied
    result = handler(environ, start_response)
  File "/opt/odoo/odoo/odoo/http.py", line 1321, in __call__
    return self.dispatch(environ, start_response)
  File "/opt/odoo/odoo/odoo/http.py", line 1295, in __call__
    return self.app(environ, start_wrapped)
  File "/usr/local/lib/python3.6/dist-packages/werkzeug/wsgi.py", line 599, in __call__
    return self.app(environ, start_response)
  File "/opt/odoo/odoo/odoo/http.py", line 1497, in dispatch
    response = self.get_response(httprequest, result, explicit_session)
  File "/opt/odoo/odoo/odoo/http.py", line 289, in __exit__
    self._cr.close()
  File "/opt/odoo/odoo/odoo/sql_db.py", line 155, in wrapper
    return f(self, *args, **kwargs)
  File "/opt/odoo/odoo/odoo/sql_db.py", line 288, in close
    return self._close(False)
  File "/opt/odoo/odoo/odoo/sql_db.py", line 318, in _close
    self._cnx.rollback()
psycopg2.InterfaceError: connection already closed
2021-02-02 13:50:38,343 29144 INFO Company_production_2020-12-01_15-17-58 odoo.sql_db: Connection to the database failed
2021-02-02 13:50:38,343 29144 INFO Company_production_2020-12-01_15-17-58 odoo.http: Generating nondb routing
2021-02-02 13:50:38,376 29144 INFO Company_production_2020-12-01_15-17-58 werkzeug: 205.211.254.213 - - [02/Feb/2021 13:50:38] "POST /web/dataset/call_kw/ir.cron/read HTTP/1.1" 404 -
2021-02-02 13:50:40,376 29144 INFO Company_production_2020-12-01_15-17-58 werkzeug: 205.211.254.213 - - [02/Feb/2021 13:50:40] "POST /web/webclient/version_info HTTP/1.1" 200 -
2021-02-02 13:50:51,700 29144 INFO Company_production_2020-12-01_15-17-58 werkzeug: 200.52.144.226 - - [02/Feb/2021 13:50:51] "POST /longpolling/poll HTTP/1.1" 200 -
0
Avatar
Discard
Ermin Trevisan

Please check your log files for information about the cause.

Marcio Valenzuela
Author

The only thing related to that i found is a file not found error. I posted it, please check

Roger

Have you checked the module documentation? I’m thinking that if it used to work for you it may be due to some changes you’ve made.

The module doesn’t work if list_db is set to False (or is not configured).

You can find the readme here:

https://github.com/Yenthe666/auto_backup/tree/11.0

Marcio Valenzuela
Author

list_db is set to True and it still doesnt work

Ermin Trevisan

Please check yourself, the error message is clear and easily understandable. We have no access to your server's file system.

Marcio Valenzuela
Author

Im simply asking because I don't know how to fix it. I don't understand why File Not Found error is the cause since a backup means it will create a backup file instead of reading a file.

Marcio Valenzuela
Author

I ran the manual scheduled action and took the server log's most recent entry lines. It mentions something about -cnx.rollback()

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
Database backup error: Postgres subprocess ('/usr/bin/pg_dump', '--no-owner', '--file=/tmp/tmpAa0O5Q/dump.sql', u'ahlain_db01') error 1 Solved
backup
Avatar
Avatar
Avatar
Avatar
Avatar
9
Jul 25
67805
how to backup ? Solved
backup
Avatar
Avatar
Avatar
Avatar
Avatar
9
Jul 24
104555
Backup Odoo 12 database using Ubuntu command line
backup
Avatar
Avatar
1
Jul 22
5949
how to backup a saas database and restore on a local server Solved
backup
Avatar
Avatar
Avatar
Avatar
Avatar
12
Jun 24
23314
i can't delete
backup
Avatar
0
Apr 22
50
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة 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 is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

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