Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
9795 Tampilan

I am getting the following error. I can't backup and cant't restore any database. This will be a huge issue if the database crashes:

Database restore error: Postgres subprocess ('/usr/bin/pg_restore', u'--dbname=back', '--no-owner', '/tmp/tmpKY434e') error 1

Database backup error: Postgres subprocess ('/usr/bin/pg_dump', '--no-owner', '--file=/tmp/tmp40EUve/dump.sql', u'Live_GasandOil') error 1


Please help this is very critical

Avatar
Buang

Please check some other errors in the server logs and post it here.

For alternate way, you can backup of your database from postgres / pgadmin to be safe side until this issue gets resolved.

Hi Mian,


You get this because there is no owner set. Make sure you have a postgresql user and that this user is set as owner of this database. You'll then be able to backup. You can do it by switching to the postgresql console and executing the following query:

sudo su postgres
psql
ALTER DATABASE db_name OWNER TO new_owner;

Regards,

Yenthe

what do you mean by extra table plz ,is  it a customized table or what?

Penulis Jawaban Terbai

Well Thanks for the help. But the issue was that there was an extra table in the database which was not supposed to be there. on drooping that table i got that fixed. 

Avatar
Buang

Hmm interesting, I haven't heard that causing this issue before. I've converted your comment as an answer and accepted it so that it might help others in the future.

How can i find the extra table which was not supposed to be in DB?

well done,
how did your perform it, please ??

Penulis

Actually My server was on open IP with out any firewall, security and protection. Therefore my odoo server got hacked. The hacker acessed my database and created a new table to make his message visible. I change the ips, bring the server under firefall and after applying proper securities I deleted that table created by the hacker.
After deletion the backup schedular started creating correct backups.

Post Terkait Replies Tampilan Aktivitas
2
Jul 24
9621
1
Apr 25
388
1
Mar 15
3548
3
Jul 24
5763
1
Nov 23
1548