I am performing a postgres server migration on azure but I keep getting a failure. Every time I migrate it fails on extensions with the following error:
Data migration could not be started for one or more of the DBSets. Error details: PGv2RestoreError: PG Restore failed for database 'DATABASE_NAME' with exit code '1' and error message 'error: could not execute query: ERROR: must be owner of extension hypopg'.
Any ideas? The data appears to be in the tables, but the migration in the Azure portal just says failed. This is happening on two servers.
Related
Attempting to migrate from AWS Aurora PostgreSQL 13.4 to Google Cloud SQL PostgreSQL 13.
Migration job gives this error:
finished setup replication with errors: failed to drop database "postgres": generic::unknown: retry budget exhausted (10 attempts): pq: database "postgres" is being accessed by other users
The user the DMS is using only has SELECT permissions on the source database(Aurora)
I'm very confused as to why it is trying to drop the "postgres" database at all. Not sure if it is trying to drop the database in the source or destination. Not sure what I'm missing.
I've installed necessary extensions in the destination DB(pg_cron). No difference.
User in source database has SELECT on all tables/schemas outlined in the docs(including pglogical schema)
I've tried various PostgreSQL versions in the destination cluster( 13.x, 14.x). No difference.
The "Test connection" tool when creating the migration job, shows no errors. (There is a warning about a few tables not having Primary keys, but that's it.)
When I try to do a migration of my database in heroku using vapor I get the following error when I run heroku run Run -- migrate --env production
FluentKit/Databases.swift:160: Fatal error: No default database configured.
I execute heroku config and created a database before migration.
Local migration works for me without problem. From a database management software if I can access the database without problem.
Thanks
I'm trying to restore a mongodb database from a dump, I keep getting timeout errors from Azure when restoring and only partial collections are restored.
error: Request timed out.
I have Successfully cataloged remote iseries OS/400 DB2 on db2 9.1 ESE.
I am able to connect to database successfully as well but when i run below query or any other query i get following error:-
Query:
select 1 from sysibm.tables
Error:
Encountering SQL30000N Execution failed because of a Distributed Protocol Error that will
not affect the successful execution of subsequent commands or SQL statements:
Reason Code "0x1254"("0200"). SQLSTATE=58008
Pls let me know where i am making mistake..?
I am trying to restore a database backup on a newly installed named instance on SQL Server 2008 R2. I have several other named instances on the same server and have no problems restoring database backups but when I try the restore on the new instance I get as far as the "Specify Backup" dialog and click the "Add" button and instead of getting the "Locate Backup File" dialog I get the following error ...
Failed to retrieve data for this request. (Microsoft.SqlServer.Management.Sdk.Sfc)
An exception occurred while executing a Transact-SQL statement or batch.
(Microsoft.SqlServer.ConnectionInfo)
Column name or number of supplied values does not match table definition. (.Net SqlClient Data Provider)
Server Name: localhost\DEVSERVER1
Error Number: 213
Severity: 16
State: 7
Procedure: xp_fixeddrives
Line Number: 1
I installed SP2 for the instance and rebooted the server but I still get the above issue. A named instance that restores fine and the new named instance with errors are showing the same version in SQL Server Mgmt Studio 10.50.4000.
I am starting SQL Server Mgmt Studio as Administrator. Still no joy.
Any ideas?