El Panel me indicó que 3.2.0.beta4 era una actualización urgente, pero esta no se pudo compilar.
Al ver el mensaje de error, se me indicó que revisara
bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/rbtrace-0.5.1/mkmf.log
Esto estaba compilando msgpack, con el siguiente error:
LD_LIBRARY_PATH=.:/usr/local/lib "./configure --disable-dependency-tracking --disable-shared --with-pic --prefix=/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rbtrace-0.5.1/ext/dst/ --libdir=/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rbtrace-0.5.1/ext/dst/lib"
ls: cannot access '.': Operation not permitted
configure: error: working directory cannot be determined
¡Ayuda, por favor! Preferiría no tener que reconstruir desde la copia de seguridad.
Editar:
He ejecutado git pull y ./launcher rebuild app.
¿Eres capaz/estás dispuesto a reconstruir en tests-passed? Sospecho que la última etiqueta beta se ve afectada por este error de dependencia “transitoria” que ya se ha resuelto en la última versión. ¿O esperar a la próxima beta y simplemente reiniciar tu contenedor y quedarte ahí?
For the past few weeks or so, we cannot rebuild our Discourse forum software.
Each time, we get this Bundler error:
occurred while installing rbtrace (0.5.1), and Bundler cannot continue.
FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle install --retry 3 --jobs 4' failed with return #<Process::Status: pid 541 exit 5>
Location of failure: /usr/local/lib/ruby/gems/3.2.0/gems/pups-1.2.1/lib/pups/exec_command.rb:132:in `spawn'
exec failed with the pa…
¿Cómo cambio a tests-passed?
Lamentablemente, no hay suerte:
I, [2024-01-11T11:06:29.588530 #1 ] INFO – : cd /var/www/discourse & su discourse -c ‘bundle install --retry 3 --jobs 4’
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory:
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rbtrace-0.5.1/ext
/usr/local/bin/ruby extconf.rb
– tar zxvfo msgpack-1.1.0.tar.gz
– env CFLAGS=nil LDFLAGS=nil CC=nil
– ./configure --disable-dependency-tracking --disable-shared --with-pic
–prefix=/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rbtrace-0.5.1/ext/dst/
–libdir=/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rbtrace-0.5.1/ext/dst/lib
*** extconf.rb failed ***
1 me gusta
Valió la pena intentarlo, esto requerirá más investigación. Esta gema, al haber estado involucrada en muchas compilaciones fallidas recientemente, es sospechosa.
Sí, esta es la versión actual:
~/discourse$ gem info rbtrace
*** GEMAS LOCALES ***
rbtrace (0.5.1, 0.5.0, 0.4.14)
OK, creo que rbtrace puede estar dependiendo de la modernidad del sistema operativo subyacente por alguna razón, mira este consejo:
Debian 9 has been superseded by Debian 10 (“buster”). Security updates have been discontinued as of July 6th, 2020.
You may want to take your backup and migrate to a new server running a current OS version.
Así que parece que el consejo es migrar a un nuevo servidor para agilizar la actualización del sistema operativo.
3 Me gusta
¿Entonces es esta la imagen o la base de Ubuntu la que necesita actualizarse?
Lo leí como Ubuntu base.
A modo de registro, ¿en qué versión estás? (podría ayudar a otros)
2 Me gusta
Bienvenido a Ubuntu 20.04.6 LTS (GNU/Linux 5.4.0-169-generic x86_64)
Haré una actualización de versión para ver si eso ayuda.
1 me gusta
Curiosamente, no he tenido problemas en Jammy (@JammyDodger ¡ajá!)
:/var/discourse/containers# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy
¡Arrgh!
Lo siento, este controlador de almacenamiento no es compatible con los kernels de versiones más recientes
No habrá más versiones de Ubuntu que proporcionen soporte de kernel para el controlador de almacenamiento aufs.
Asegúrate de que ninguno de tus contenedores esté utilizando el controlador de almacenamiento aufs, elimina el directorio /var/lib/docker/aufs y vuelve a intentarlo.
¿Cómo cambio el controlador de almacenamiento?
1 me gusta
Alguien escribió útilmente una guía:
Hello all,
I have been using Docker with the Devicemapper storage driver. After manually editing the launcher script, I finally took the time to convert to Overlay2. Here are the instructions I took to do this. I hope this helps others. I see others have asked the question , but I don’t see any answers. I used this excellent guide to help figure this out.
Step 1: Halt your Discourse application (and other docker apps)
./launcher stop app
Step 2: Commit and save your old Docker containers/image…
2 Me gusta
Seguí este consejo y ya estoy de vuelta en funcionamiento. Gracias @merefield por tu ayuda.
1 me gusta
system
(system)
Cerrado
10 Febrero, 2024 14:40
16
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.