Un altro: aggiornamento fallito da 3.1.0 a 3.2.0 beta 4

Ho anche riscontrato alcuni strani problemi di compilazione, che si sono risolti quando ho eseguito prima un git pull per aggiornare il launcher :roll_eyes:

Durante la compilazione dell’app, yarn genera alcuni avvisi: qualche sviluppatore potrebbe commentare a riguardo?

I, [2024-01-01T14:41:28.030095 #1]  INFO -- : cd /var/www/discourse & su discourse -c 'yarn install --frozen-lockfile && yarn cache clean'
warning Resolution field "unset-value@2.0.1" is incompatible with requested version "unset-value@^1.0.0"
warning Pattern ["wrap-ansi@^7.0.0"] is trying to unpack in the same destination "/home/discourse/.cache/yarn/v6/npm-wrap-ansi-cjs-7.0.0-67e145cff510a6a6984bdf1152911d69d2eb9e43-integrity/node_modules/wrap-ansi-cjs" as pattern ["wrap-ansi-cjs@npm:wrap-ansi@^7.0.0"]. This could result in non-deterministic behavior, skipping.
warning " > discourse-markdown-it@1.0.0" has unmet peer dependency "xss@*".
warning "workspace-aggregator-36c917e1-4a06-4dbb-be15-7fedd9ba3d70 > discourse > @ember/legacy-built-in-components@0.5.0" has incorrect peer dependency "ember-source@>= 4.8".
warning "workspace-aggregator-36c917e1-4a06-4dbb-be15-7fedd9ba3d70 > discourse > @uppy/aws-s3@3.0.6" has incorrect peer dependency "@uppy/core@^3.1.2".
warning "workspace-aggregator-36c917e1-4a06-4dbb-be15-7fedd9ba3d70 > discourse > @uppy/aws-s3-multipart@3.1.3" has incorrect peer dependency "@uppy/core@^3.1.2".
warning "workspace-aggregator-36c917e1-4a06-4dbb-be15-7fedd9ba3d70 > discourse > @uppy/xhr-upload@3.1.1" has incorrect peer dependency "@uppy/core@^3.1.2".
warning "workspace-aggregator-36c917e1-4a06-4dbb-be15-7fedd9ba3d70 > discourse-plugins > ember-this-fallback@0.4.0" has unmet peer dependency "ember-source@^3.28.11 || ^4.0.0".
warning "workspace-aggregator-36c917e1-4a06-4dbb-be15-7fedd9ba3d70 > discourse > @uppy/aws-s3 > @uppy/xhr-upload@3.3.0" has incorrect peer dependency "@uppy/core@^3.2.1".
I, [2024-01-01T14:42:26.369845 #1]  INFO -- : yarn install v1.22.19
[1/5] Validating package.json...
[2/5] Resolving packages...
success Already up-to-date.
$ yarn --cwd app/assets/javascripts $(node -e 'const argv = JSON.parse(process.env.npm_config_argv).original; const passthrough = [`--frozen-lockfile`, `-s`].filter(arg => argv.includes(arg)); console.log(passthrough.join(` `));')
yarn install v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...

Alla fine, è stato il plugin git clone https://github.com/Toxuru/discourse-sidebar-categories.git a causare problemi, portando a una pagina master vuota, mentre l’accesso diretto ai singoli post era ancora possibile. L’ho scoperto per tentativi (cioè disabilitando tutti i plugin, ricompilando l’immagine e riabilitando i plugin uno per uno).

Ho trovato anche questo nei log: è il plugin git clone https://github.com/mozilla/discourse-email-all.git che ho anche disabilitato per sicurezza per ora.

==> unicorn.stderr.log <==
I, [2024-01-01T15:00:30.194986 #85]  INFO -- : Refreshing Gem list
Plugin name is 'email-all', but plugin directory is named 'discourse-email-all'

Spero che questo aiuti altri amministratori che incontrano problemi simili.

Spero che questo aiuti.

Dovrebbe andare bene, se non ricordo male, il plugin ufficiale topic-voting solleva lo stesso tipo di avviso.

Anche quelli sono normali, abbiamo lo stesso tipo di avvisi ad ogni ricostruzione e va bene.