También veo esto, en las mismas circunstancias. Tanto a través de la interfaz de usuario como de la terminal.
Salida completa a continuación. Esto se está ejecutando desde WSL2 en Windows.
¿Alguna idea?
$ d/discourse restore ragdoll-forums-2022-03-27-000005-v20220215015538.tar.gz
Starting restore: ragdoll-forums-2022-03-27-000005-v20220215015538.tar.gz
[STARTED]
'system' ha iniciado la restauración!
Marcando la restauración como en curso...
Asegurándose de que existe /src/tmp/restores/default/2022-03-28-104731...
Copiando el archivo a la carpeta temporal...
Descomprimiendo el archivo, esto puede tardar un poco...
Extrayendo el archivo de volcado...
Validando metadatos...
Versión actual: 20220325064954
Versión restaurada: 20220215015538
Habilitando el modo de solo lectura...
Pausando sidekiq...
Esperando hasta 60 segundos para que Sidekiq termine de ejecutar trabajos...
Creando funciones faltantes en el esquema discourse_functions...
Restaurando el archivo de volcado... (esto puede tardar un poco)
psql: error: connection to server on socket \"/var/run/postgresql/.s.PGSQL.5432\" failed: FATAL: Peer authentication failed for user \"postgres\"
EXCEPTION: psql failed: psql: error: connection to server on socket \"/var/run/postgresql/.s.PGSQL.5432\" failed: FATAL: Peer authentication failed for user \"postgres\"
/src/lib/backup_restore/database_restorer.rb:92:in `restore_dump'
/src/lib/backup_restore/database_restorer.rb:26:in `restore'
/src/lib/backup_restore/restorer.rb:51:in `run'
script/discourse:149:in `restore'
/usr/local/lib/ruby/gems/2.7.0/gems/thor-1.2.1/lib/thor/command.rb:27:in `run'
/usr/local/lib/ruby/gems/2.7.0/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'
/usr/local/lib/ruby/gems/2.7.0/gems/thor-1.2.1/lib/thor.rb:392:in `dispatch'
/usr/local/lib/ruby/gems/2.7.0/gems/thor-1.2.1/lib/thor/base.rb:485:in `start'
script/discourse:290:in `<main>'
Intentando revertir...
No fue necesario revertir
Limpiando cosas...
Eliminando funciones del esquema discourse_functions...
Eliminando el directorio temporal '/src/tmp/restores/default/2022-03-28-104731'...
Reanudando sidekiq...
Marcando la restauración como finalizada...
Notificando a 'system' el fin de la restauración...
¡Terminado!
[FAILED]
Restauración completada.
Error al informar: no se puede asignar hilo 0 PostSearchData Upsert (1.1ms) INSERT INTO \"post_search_data\" (\"raw_data\",\"post_id\",\"locale\",\"version\",\"search_data\",\"private_message\") VALUES ('La restauración ha fallado. Aquí está el registro: [2022-03-28 10:47:31] [STARTED] [2022-03-28 10:47:31] ''system'' ha iniciado la restauración! [2022-03-28 10:47:31] Marcando la restauración como en curso... [2022-03-28 10:47:31] Asegurándose de que existe /src/tmp/restores/default/2022-03-28-104731... [2022-03-28 10:47:31] Copiando el archivo a la carpeta temporal... [2022-03-28 10:47:31] Descomprimiendo el archivo, esto puede tardar un poco... [2022-03-28 10:47:31] Extrayendo el archivo de volcado... [2022-03-28 10:47:32] Validando metadatos... [2022-03-28 10:47:32] Versión actual: 20220325064954 [2022-03-28 10:47:32] Versión restaurada: 20220215015538 [2022-03-28 10:47:32] Habilitando el modo de solo lectura... [2022-03-28 10:47:32] Pausando sidekiq... [2022-03-28 10:47:32] Esperando hasta 60 segundos para que Sidekiq termine de ejecutar trabajos... [2022-03-28 10:47:38] Creando funciones faltantes en el esquema discourse_functions... [2022-03-28 10:47:38] Restaurando el archivo de volcado... (esto puede tardar un poco) [2022-03-28 10:47:38] psql: error: connection to server on socket \"/var/run/postgresql/.s.PGSQL.5432\" failed: FATAL : Peer authentication failed for user \"postgres\" [2022-03-28 10:47:38] EXCEPTION: psql failed: psql: error: connection to server on socket \"/var/run/postgresql/.s.PGSQL.5432\" failed: FATAL: Peer authentication failed for user \"postgres\" [2022-03-28 10:47:38] /src/lib/backup_restore/database_restorer.rb:92:in `restore_dump'' /src/lib/backup_restore/database_restorer.rb:26:in `restore'' /src/lib/backup_restore/restorer.rb:51:in `run'' script/discourse:149:in `restore'' /usr/local/lib/ruby/gems/2.7.0/gems/thor-1.2.1/lib/thor/command.rb:27:in `run'' /usr/local/lib/ruby/gems/2.7.0/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'' /usr/local/lib/ruby/gems/2.7.0/gems/thor-1.2.1/lib/thor.rb:392:in `dispatch'' /usr/local/lib/ruby/gems/2.7.0/gems/thor-1.2.1/lib/thor/base.rb:485:in `start'' script/discourse:290:in ` \u003c main \u003e '' [2022-03-28 10:47:38] Intentando revertir... [2022-03-28 10:47:38] No fue necesario revertir [2022-03-28 10:47:38] Limpiando cosas... [2022-03-28 10:47:38] Eliminando funciones del esquema discourse_functions... [2022-03-28 10:47:38] Eliminando el directorio temporal '/src/tmp/restores/default/2022-03-28-104731'... [2022-03-28 10:47:38] Reanudando sidekiq... [2022-03-28 10:47:38] Marcando la restauración como finalizada... [2022-03-28 10:47:38] Notificando a ''system'' el fin de la restauración...', 17, 'es', 4, '''-03'':12,19,30,40,50,61,74,83,91,100,109,118,126,143,157,171,193,218,262,271,283,292,305,315,323,333 ''-28'':13,20,31,41,51,62,75,84,92,101,110,119,127,144,158,172,194,219,263,272,284,293,306,316,324,334 ''/src/lib/backup_restore/database_restorer.rb'':223,228 ''/src/lib/backup_restore/restorer.rb'':232 ''/src/tmp/restores/default/2022-03-28-104731'':47,312 ''/usr/local/lib/ruby/gems/2.7.0/gems/thor-1.2.1/lib/thor.rb'':249 ''/usr/local/lib/ruby/gems/2.7.0/gems/thor-1.2.1/lib/thor/base.rb'':253 ''/usr/local/lib/ruby/gems/2.7.0/gems/thor-1.2.1/lib/thor/command.rb'':240 ''/usr/local/lib/ruby/gems/2.7.0/gems/thor-1.2.1/lib/thor/invocation.rb'':244 ''/var/run/postgresql/.s.pgsql.5432'':183,208 ''10'':14,21,32,42,52,63,76,85,93,102,111,120,128,145,159,173,195,220,264,273,285,294,307,317,325,335 ''127'':245 ''149'':237 ''2022'':11,18,29,39,49,60,73,82,90,99,108,117,125,142,156,170,192,217,261,270,282,291,304,314,322,332 ''20220215015538'':107 ''20220325064954'':98 ''26'':229 ''27'':241 ''290'':258 ''31'':16,23,34,44,54,65,78 ''32'':87,95,104,113,122,130 ''38'':147,161,175,197,222,266,275,287,296,309,319,327,337 ''392'':250 ''47'':15,22,33,43,53,64,77,86,94,103,112,121,129,146,160,174,196,221,265,274,286,295,308,318,326,336 ''485'':254 ''51'':233 ''60'':134 ''92'':224 ''archiv'':56,67 ''authent'':187,212 ''clean'':288 ''command'':248 ''connect'':178,203 ''copi'':55 ''creat'':148 ''current'':96 ''directori'':59,313 ''discours'':153,301 ''dispatch'':252 ''drop'':297 ''dump'':80,163,227 ''enabl'':114 ''end'':342 ''error'':177,202 ''except'':198 ''exist'':48 ''extract'':79 ''fail'':2A,6,184,188,200,209,213 ''fatal'':185,210 ''file'':81,164 ''finish'':139,331 ''function'':150,154,298,302 ''invok'':247 ''job'':141 ''main'':260 ''make'':45 ''mark'':35,328 ''may'':69,166 ''metadata'':89 ''miss'':149 ''mode'':116 ''need'':279 ''notifi'':338 ''paus'':123 ''peer'':186,211 ''postgr'':191,216 ''psql'':176,199,201 ''readon'':115 ''remov'':310 ''restor'':1A,4,28,36,105,162,226,231,239,329,345 ''rollback'':269,281 ''run'':38,140,235,243 ''schema'':155,303 ''script/discourse'':236,257 ''second'':135 ''server'':180,205 ''sidekiq'':124,137,321 ''socket'':182,207 ''start'':17,26,256 ''stuff'':289 ''sure'':46 ''system'':24,339 ''take'':70,167 ''tmp'':58,311 ''tri'':267 ''unpaus'':320 ''unzip'':66 ''user'':190,215 ''valid'':88 ''version'':97,106 ''wait'':131 ', TRUE) ON CONFLICT (\"post_id\") DO UPDATE SET \"raw_data\"=excluded.\"raw_data\",\"locale\"=excluded.\"locale\",\"version\"=excluded.\"version\",\"search_data\"=excluded.\"search_data\",\"private_message\"=excluded.\"private_message\" RETURNING \"post_id\"