Discurso sobre un Raspberry Pi | Blog

¡Una solicitud de función de larga data de nuestra comunidad finalmente está aquí! A partir de hoy, puedes alojar una instancia completa de Discourse en una Raspberry Pi de $35. Puedes seguir nuestra guía de instalación oficial, y funcionará directamente en cualquier modelo reciente de Raspberry Pi.


Este es un tema de discusión complementario para la entrada original en https://blog.discourse.org/2021/12/2021-12-07-discourse-on-a-raspberry-pi/
54 Me gusta

¡Una vez más, Discourse tiene una gran influencia en la industria!

16 Me gusta

Esto es genial.

Creo que vale la pena mencionar que Oracle Cloud ofrece de forma «Gratuita para siempre» 4 núcleos Ampere A1 basados en ARM y 24 GB de RAM que se pueden usar en hasta 4 VM.

17 Me gusta

Esta es una gran excusa para que me compre otra Raspberry Pi :tada:

18 Me gusta

¡Increíble! :heart_eyes:

Siempre he querido montar una red local para mi vecindario con un espejo de nuestro foro, para usarla en comunicaciones de emergencia cuando se va la luz. ¡Sería divertido intentar poner esto en marcha ahora!

12 Me gusta

Esto es genial.
Se lo mencioné a Jeff Geerling.
Quizás obtengamos un video de YouTube sobre cómo crear un sitio de Discourse en un clúster de Raspberry Pi.

9 Me gusta

¿Crees que un Joe Blow cualquiera podría instalar Discourse siguiendo las instrucciones cuidadosamente, o se necesitaría ser un desarrollador para siquiera entender la jerga?

3 Me gusta

¡Esto es genial!

¿Qué hay de la diferencia de rendimiento entre usar RPi4 con tarjeta SD o SSD? ¿Es suficiente la tarjeta SD?

Encontré esto: Install Discourse on a residential internet with Cloudflare Tunnel

Última pregunta: ¿Estás usando un sistema operativo de 64 bits o de 32 bits con RPi4? ¿Ubuntu Server 20.04.3 LTS de 64 bits para Raspberry Pi 4?

4 Me gusta

Mientras la base de datos sea pequeña, no debería haber diferencia. Si tu base de datos es más grande que la RAM de la Pi, puede ser una pista para cambiar a algo un poco más robusto :sweat_smile:

Versión arm64 de Raspbian de Index of /raspios_lite_arm64/images/raspios_lite_arm64-2021-11-08

4 Me gusta

Lamentablemente, falló…

FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && [ ! -d 'node_modules' ] || su discourse -c 'yarn install --production && yarn cache clean' failed with return #<Process::Status: pid 3539 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:112:in `spawn'
exec failed with the params {"cd"=>"$home", "cmd"=>["[ ! -d 'node_modules' ] || su discourse -c 'yarn install --production && yarn cache clean'"]}
53e9103763b3963785452f314d9c0023f280ebe76d33a1271a6439d23e8c8ad9
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one.
./discourse-doctor may help diagnose the problem.
1 me gusta

¿Puedes

por favor, desplázate hacia arriba y busca mensajes de error anteriores, puede haber más de uno.
?

1 me gusta
I, [2022-01-24T00:30:34.893970 #1]  INFO -- : cd /var/www/discourse && [ ! -d 'node_modules' ] || su discourse -c 'yarn install --production && yarn cache clean'
warning Resolution field "lodash@4.17.21" is incompatible with requested version "lodash@4.17.15"
2022-01-24 00:31:15.883 UTC [59] LOG:  using stale statistics instead of current ones because stats collector is not responding
2022-01-24 00:31:26.025 UTC [3596] LOG:  using stale statistics instead of current ones because stats collector is not responding
2022-01-24 00:31:55.876 UTC [59] LOG:  using stale statistics instead of current ones because stats collector is not responding
2022-01-24 00:32:06.068 UTC [3606] LOG:  using stale statistics instead of current ones because stats collector is not responding
2022-01-24 00:32:15.830 UTC [59] LOG:  using stale statistics instead of current ones because stats collector is not responding
2022-01-24 00:32:26.023 UTC [3617] LOG:  using stale statistics instead of current ones because stats collector is not responding
2022-01-24 00:32:40.294 UTC [3621] LOG:  using stale statistics instead of current ones because stats collector is not responding
2022-01-24 00:32:55.848 UTC [59] LOG:  using stale statistics instead of current ones because stats collector is not responding
2022-01-24 00:33:06.000 UTC [3627] LOG:  using stale statistics instead of current ones because stats collector is not responding
2022-01-24 00:33:20.766 UTC [3628] LOG:  using stale statistics instead of current ones because stats collector is not responding
2022-01-24 00:33:55.862 UTC [59] LOG:  using stale statistics instead of current ones because stats collector is not responding
2022-01-24 00:34:06.039 UTC [3634] LOG:  using stale statistics instead of current ones because stats collector is not responding
2022-01-24 00:34:22.558 UTC [3635] LOG:  using stale statistics instead of current ones because stats collector is not responding
2022-01-24 00:34:35.852 UTC [59] LOG:  using stale statistics instead of current ones because stats collector is not responding
2022-01-24 00:34:46.031 UTC [3637] LOG:  using stale statistics instead of current ones because stats collector is not responding
2022-01-24 00:34:55.859 UTC [59] LOG:  using stale statistics instead of current ones because stats collector is not responding
2022-01-24 00:35:06.036 UTC [3638] LOG:  using stale statistics instead of current ones because stats collector is not responding
error An unexpected error occurred: "https://registry.yarnpkg.com/rxjs/-/rxjs-6.6.3.tgz: ESOCKETTIMEDOUT".
I, [2022-01-24T00:35:14.127245 #1]  INFO -- : yarn install v1.22.17
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info If you think this is a bug, please open a bug report with the information provided in "/var/www/discourse/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

I, [2022-01-24T00:35:14.128342 #1]  INFO -- : Terminating async processes
I, [2022-01-24T00:35:14.128463 #1]  INFO -- : Sending INT to HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/13/bin/postmaster -D /etc/postgresql/13/main pid: 52
I, [2022-01-24T00:35:14.128549 #1]  INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 113
2022-01-24 00:35:14.128 UTC [52] LOG:  received fast shutdown request
113:signal-handler (1642984514) Received SIGTERM scheduling shutdown...
113:M 24 Jan 2022 00:35:14.221 # User requested shutdown...
113:M 24 Jan 2022 00:35:14.221 * Saving the final RDB snapshot before exiting.
I, [2022-01-24T00:35:24.131678 #1]  INFO -- : HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/13/bin/postmaster -D /etc/postgresql/13/main pid:52 did not terminate cleanly, forcing termination!
I, [2022-01-24T00:35:24.132139 #1]  INFO -- : exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid:113 did not terminate cleanly, forcing termination!
1 me gusta

Y ahí está:

Tu conexión es demasiado inestable para compilar Discourse. Acabo de recompilar en mi Pi4 con cable sin problemas, así que quizás quieras revisar tu red.

4 Me gusta

Tu sitio web está fuera de línea.


Además, si es exacto, feliz cumpleaños :tada:

5 Me gusta

Oh, gracias por el recordatorio. Se perdió cuando me mudé de casa hace unos meses. Lo encendí de nuevo ahora mismo y lo actualicé a la última versión.

¡Gracias!

6 Me gusta

Hola @Falco, gracias por compartir información tan maravillosa.
¡¡¡Ya tengo mi primer foro funcionando!!! ¡¡¡Gracias a ti!!!
¿Es posible acceder al foro con la dirección IP local de la máquina? Cuando mi nombre de host de Discourse ya está configurado en un dominio (lo obtuve de Freenom).
Cuando intenté acceder al foro con la dirección IP de la máquina, la página siempre se quedó cargando y nunca logró cargar.
Tengo un caso de uso en el que la máquina de mi cliente está conectada a una VPN y no tiene acceso a Internet. La única forma de acceder al foro es a través de la dirección IP de la red local.

2 Me gusta

Puede que encuentre útil esta discusión. Está solicitando soporte para una instalación muy no estándar:

2 Me gusta

Gracias @merefield.
Encuentro que al usar curl en la dirección IP local del servidor, devuelve la página pero no con un navegador.
¿Tiene que ver con la configuración del navegador?

Necesitas acceder a la aplicación a través del nombre de dominio por varias razones. El acceso por IP no está soportado, hasta donde sé.

1 me gusta

¡Entendido! Gracias por la confirmación.

1 me gusta