Bacula-users

Re: [Bacula-users] Jobs fail with "duplicate key value violates unique constraint" after upgrade to 7.0.5

2015-07-06 04:15:38
Subject: Re: [Bacula-users] Jobs fail with "duplicate key value violates unique constraint" after upgrade to 7.0.5
From: Christian Manal <moenoel AT informatik.uni-bremen DOT de>
To: Kern Sibbald <kern AT sibbald DOT com>, Bacula-users AT lists.sourceforge DOT net
Date: Mon, 06 Jul 2015 10:10:53 +0200
On 05.07.2015 22:15, Kern Sibbald wrote:
> On 05.07.2015 18:50, Christian Manal wrote:
>> ...
>> or 9.x you have to export them then reimport them.
>> I dumped it in Postgres' "custom" format on the old host, with "pg_dump
>> -Fc", and then loaded it with pg_restore on the new host. But I just
>> realized that I might'be messed up creating the new database. I used the
>> SQL_ASCII encoding, but didn't set LC_COLLATE and LC_CTYPE to C. Could
>> that be the problem?
> 
> I don't know, because I am not an expert on PostgreSQL.  In any case,
> now that it is created and you have used it, it might be hard to go
> back.  I am sorry, but at this point, I am out of ideas.

Thanks your input anyway, Kern. I appreciate it.


I just dumped my current db and restored it into a new database with the
correct settings. Now I can find duplicates. In fact, there are 12
million duplicate rows in the Filename table alone. Seems like I found
my problem... now the question is what I can do about it.

Probably just gonna purge all file records and "start fresh" on that.


Regards,
Christian Manal

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users