auto_backup icon indicating copy to clipboard operation
auto_backup copied to clipboard

0 size backup files when running in odoo-ce 13 docker

Open ghost opened this issue 4 years ago • 6 comments

Hi Yenthe

Installed the requirements for the module. Restarted the containers (odoo and psql 10 db) added the pg_path=/usr/lib/postgresql/12/bin/ to odoo.conf as I could see thats where the postsql binaries are located in the container (tried first without modifying the odoo.conf and that gave same result)

mapped a volume to the local disk and gave the correct owner and rights to the directory to save it locally on the docker host. It runs ok with no error messages in the container log, it creates the zip file, but they are empty.

I see that the db_name = False in the odoo.conf, does that matter ?

Any good suggestions ?

/W

ghost avatar Aug 20 '20 12:08 ghost

@walther-barnett if you have recently updated the backup module (to after https://github.com/Yenthe666/auto_backup/commit/c7d0512a0d0b2d42662831008e7a9316b264f23e) it should work fine without list_db enabled. This is the case, right? As for the db_name = False. I haven't seen people use this in production honestly. Have you tested without?

Could you also output the logs please?

Yenthe666 avatar Aug 20 '20 12:08 Yenthe666

Hi @Yenthe666 I Installed it on August 11th version 13.0.13.1.0.1 so its after c7d512 so thats should be ok.

What do you suggest regarding the db_name = False: Completely remove the line in conf or add the db-name for the main company gundogpro ?.

All I have in the container odoo logs are 2020-08-18 13:37:33,970 1 INFO gundogpro odoo.addons.base.models.ir_cron: Starting job Backup scheduler. 2020-08-18 13:37:34,004 1 INFO gundogpro odoo.addons.auto_backup.models.db_backup: DUMP DB: gundogpro format zip Theres nothing in the /var/log/odoo/

/W

ghost avatar Aug 20 '20 12:08 ghost

Sorry What a load of rubbish: Off course I need the db_name and db_filter. :-) As soon as I'm on the right network I'll rectify that

/W

ghost avatar Aug 20 '20 13:08 ghost

@Yenthe666. Since yesterday I'v been running with db_name = gundogpro (didn't need the db_filter as this is not at shared install). and the scheduler ran the job this morning but Backup file is still size 0

ghost avatar Aug 21 '20 06:08 ghost

@Yenthe666 - I'm facing the same problem. The backup files have all 0 KB. This is what I see at the log files:

2021-06-24 12:34:23,032 919 INFO fdplive odoo.addons.base.models.ir_http: Generating routing map for key 1 2021-06-24 12:34:23,138 919 INFO fdplive odoo.addons.auto_backup.models.db_backup: DUMP DB: fdplive format dump

Backup is started and creates a dump file with 0 KB : 2021_06_24_12_34_23_fdplive.dump

clxadmin avatar Jun 24 '21 12:06 clxadmin

my version: 13.0.13.1.0.1

clxadmin avatar Jun 24 '21 12:06 clxadmin