On Wed, 2022-01-05 at 08:58 +0100, Pavel Raiskup wrote:
Hi Sérgio,
On Tuesday, January 4, 2022 11:58:32 PM CET Sérgio Basto wrote:
> now I have the all database of copr production but I want a clean
> Database and configure my builders ( which is only one x86_64 )
>
> I can't get rid of SQL: INSERT INTO dist_git_instance (name,
> clone_url,
> clone_package_uri, priority, default_namespace) VALUES (%(name)s,
> %(clone_url)s, %(clone_package_uri)s, %(priority)s,
> %(default_namespace)s) RETURNING dist_git_instance.id]
> [parameters: {'name': 'fedora', 'clone_url':
> 'https://src.fedoraproject.or
>
> where this is defined this insert ? or I make it to ignore it ?
> where
> is defined the schema of database ?
it appears we are hitting some SQLAlchemy change, after migrating to
Fedora 35. The new version uncovers a Copr bug. Proposed fix is:
https://pagure.io/fork/praiskup/copr/copr/c/df240a62ad6e7743c608d6b0b7328...
yes it fixed here
I cleaned all volumes , pull the commit mention in this messsage,
cp /opt/copr/frontend/coprs_frontend/commands/create_db.py
/usr/share/copr/coprs_frontend/commands/create_db.py
cp /opt/copr/frontend/coprs_frontend/coprs/models.py
/usr/share/copr/coprs_frontend/coprs/models.py
and init-database.sh worked
Pavel
--
Sérgio M. B.