Discorso su un Raspberry Pi | Blog

Una richiesta di funzionalità di lunga data dalla nostra community è finalmente arrivata! Da oggi, puoi ospitare un'istanza Discourse completa su un Raspberry Pi da 35$. Puoi seguire la nostra guida ufficiale all'installazione e funzionerà subito su qualsiasi modello recente di Raspberry Pi.


Questo è un argomento di discussione di accompagnamento per l'articolo originale su https://blog.discourse.org/2021/12/2021-12-07-discourse-on-a-raspberry-pi/
54 Mi Piace

Ancora una volta, Discourse ha una grande influenza sul settore!

16 Mi Piace

Questo è fantastico.

Penso che valga la pena menzionare che Oracle Cloud offre gratuitamente "Always Free" 4 core Ampere A1 basati su ARM e 24 GB di RAM che possono essere utilizzati in un massimo di 4 VM.

17 Mi Piace

Questa è una grande scusa per prendere un altro Raspberry Pi :tada:

18 Mi Piace

Fantastico! :heart_eyes:

Ho sempre desiderato creare una rete locale per il mio quartiere con uno specchio del nostro forum, da utilizzare per le comunicazioni di emergenza quando salta la corrente. Sarebbe divertente provare a farlo funzionare ora!

12 Mi Piace

Questo è fantastico.
L’ho menzionato a Jeff Geerling.
Forse otterremo un video di YouTube sulla creazione di un sito Discourse su un cluster Raspberry Pi.

9 Mi Piace

Pensi che un utente medio potrebbe installare Discourse seguendo attentamente le istruzioni, o sarebbe necessario essere uno sviluppatore per capire anche il gergo?

3 Mi Piace

Fantastico!

Che dire della differenza di prestazioni tra l’uso di RPi4 con scheda SD o SSD? La scheda SD è sufficiente?

Ho trovato questo: Install Discourse on a residential internet with Cloudflare Tunnel

Ultima domanda: stai usando un sistema operativo a 64 bit o a 32 bit con RPi4? Ubuntu Server 20.04.3 LTS a 64 bit per Raspberry Pi 4?

4 Mi Piace

Finché il DB è piccolo non ci dovrebbero essere differenze. Se il tuo database è più grande della RAM del Pi, potrebbe essere un indizio per passare a qualcosa di un po’ più robusto :sweat_smile:

Versione arm64 di Raspbian da Index of /raspios_lite_arm64/images/raspios_lite_arm64-2021-11-08

4 Mi Piace

Purtroppo, fallito…

FALLITO
--------------------
Pups::ExecError: cd /var/www/discourse && [ ! -d 'node_modules' ] || su discourse -c 'yarn install --production && yarn cache clean' fallito con ritorno #<Process::Status: pid 3539 exit 1>
Posizione del fallimento: /pups/lib/pups/exec_command.rb:112:in `spawn'
exec fallito con i parametri {"cd"=>"$home", "cmd"=>["[ ! -d 'node_modules' ] || su discourse -c 'yarn install --production && yarn cache clean'"]}
53e9103763b3963785452f314d9c0023f280ebe76d33a1271a6439d23e8c8ad9
** FALLITO IL BOOTSTRAP ** si prega di scorrere verso l'alto e cercare messaggi di errore precedenti, potrebbero essercene più di uno.
./discourse-doctor potrebbe aiutare a diagnosticare il problema.
1 Mi Piace

Puoi

per favore scorri verso l'alto e cerca messaggi di errore precedenti, ce ne possono essere più di uno.

?

1 Mi Piace
I, [2022-01-24T00:30:34.893970 #1]  INFO -- : \u003e cd /var/www/discourse \u0026\u0026 [ ! -d 'node_modules' ] || su discourse -c 'yarn install --production \u0026\u0026 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 Mi Piace

Ed eccolo qui:

La tua connessione è troppo instabile per compilare Discourse. Ho appena ricompilato sulla mia Pi4 cablata senza problemi, quindi potresti voler controllare la tua rete.

4 Mi Piace

Il tuo sito web è offline.


Inoltre, se è accurato, buon compleanno :tada:

5 Mi Piace

Oh, grazie per il promemoria. Si era perso quando mi sono trasferito qualche mese fa. L’ho riacceso ora e l’ho aggiornato all’ultima versione.

Grazie!

6 Mi Piace

Ciao @Falco, grazie per aver condiviso un’informazione così meravigliosa.
Ho avviato il mio primo forum!!! Grazie a te!!!
È possibile per me accedere al forum con l’indirizzo IP locale della macchina? Quando il mio hostname di discourse è già impostato su un dominio (l’ho ottenuto da freenom).
Quando ho provato ad accedere al forum tramite l’indirizzo IP della macchina, la pagina si è sempre bloccata in caricamento e non è mai riuscita a caricarsi.
Ho un caso d’uso in cui la mia macchina client è connessa a una VPN e non ha accesso a Internet. L’unico modo per me per accedere al forum è tramite l’indirizzo IP della rete locale.

2 Mi Piace

Potresti trovare utile questa discussione. Stai chiedendo supporto per un’installazione molto non standard:

2 Mi Piace

Grazie @merefield.
Scopro che quando uso curl sull’indirizzo IP locale del server, restituisce la pagina ma non con un browser.
Ha a che fare con le impostazioni del browser?

È necessario accedere all’app tramite nome di dominio per diversi motivi. L’accesso tramite IP non è supportato per quanto ne so.

1 Mi Piace

Ricevuto! Grazie per la conferma.

1 Mi Piace