Jâai rencontrĂ© le mĂȘme problĂšme.
Jâai essayĂ© la mĂ©thode indiquĂ©e ici
Hi,
Iâm attempting to install Discourse, but am failing so far. It appears that bootstrapping doesnât want to⊠bootstrap?
Anyhow, I read a couple of other threads about it and tried â./launcher rebuild appâ, which gave the following output:
WARNING: No memory limit support
WARNING: No swap limit support
Updating discourse docker
Already up-to-date.
Calculated ENV: -e LANG=en_US.UTF-8 -e RAILS_ENV=production -e UNICORN_WORKERS=3 -e UNICORN_SIDEKIQS=1 -e RUBY_GC_MALLOC_LIMIT=40000000 -e RUBY_HEâŠ
Mais ça ne fonctionne pas.
SystÚme Ubuntu, le redémarrage ne fonctionne pas,
./launcher restart app, ./launcher start app ne fonctionnent pas.
Message dâerreur lors de lâexĂ©cution de ./launcher rebuild app
......
111:M 12 déc. 2023 12:11:02.199 * DB sauvegardé sur disque
111:M 12 dĂ©c. 2023 12:11:02.200 # Redis est maintenant prĂȘt Ă quitter, au revoir...
FAILED
--------------------
Pups::ExecError: cd /var/www/discourse & su discourse -c 'bundle exec rake db:migrate' a échoué avec le retour #<Process::Status: pid 3553 exit 1>
Emplacement de l'échec : /usr/local/lib/ruby/gems/3.2.0/gems/pups-1.2.1/lib/pups/exec_command.rb:132:in `spawn'
exec a échoué avec les paramÚtres {"cd"=>"$home", "hook"=>"db_migrate", "cmd"=>["su discourse -c 'bundle exec rake db:migrate'"]}
bootstrap a échoué avec le code de sortie 1
** ĂCHEC DU BOOTSTRAP ** veuillez faire dĂ©filer vers le haut et rechercher les messages d'erreur prĂ©cĂ©dents, il peut y en avoir plus d'un.
Merci Ă @itsbhanusharma
Il est indiqué que cela est causé par une erreur précédente, je les liste ici
I, [2023-12-13T00:50:13.222274 #1] INFO -- : > cd /var/www/discourse & su discourse -c 'bundl e exec rake db:migrate'
2023-12-13 00:50:18.347 UTC [3597] discourse@discourse ERREUR : syntaxe d'entrée invalide pour le type double precision : ""
2023-12-13 00:50:18.347 UTC [3597] discourse@discourse STATEMENT : INSERT INTO locations_topic (topic_id, latitude, longitude, name, street, district, city, state, postalcode, country, count rycode, international_code, locationtype, boundingbox, updated_at, created_at) (
SELECT
tc.topic_id,
(tc.value::json->'geo_location'->>'lat')::FLOAT,
(tc.value::json->'geo_location'->>'lon')::FLOAT,
tc.value::json->'geo_location'->>'name',
tc.value::json->'geo_location'->>'street',
tc.value::json->'geo_location'->>'district',
tc.value::json->'geo_location'->>'city',
tc.value::json->'geo_location'->>'state',
tc.value::json->'geo_location'->>'postalcode',
tc.value::json->'geo_location'->>'country',
tc.value::json->'geo_location'->>'countrycode',
tc.value::json->'geo_location'->>'international_code',
tc.value::json->'geo_location'->>'type',
ARRAY[
(tc.value::json->'geo_location'->'boundingbox'->>0)::FLOAT,
(tc.value::json->'geo_location'->'boundingbox'->>1)::FLOAT,
(tc.value::json->'geo_location'->'boundingbox'->>2)::FLOAT,
(tc.value::json->'geo_location'->'boundingbox'->>3)::FLOAT
],
tc.updated_at,
tc.created_at
FROM topic_custom_fields tc
WHERE tc.name = 'location'
AND tc.value NOT IN ('"{}"', '{}', '')
AND tc.value::json->'geo_location'->>'lat' IS NOT NULL
AND tc.value::json->'geo_location'->>'lon' IS NOT NULL
)
ON CONFLICT DO NOTHING
rake aborted!
StandardError: Une erreur s'est produite, cette migration et toutes les suivantes ont été annulées : (StandardError)
ERREUR : syntaxe d'entrée invalide pour le type double precision : ""
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rack-mini-profiler-3.3.0/lib/patches/db/pg.rb: 110:in `exec'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rack-mini-profiler-3.3.0/lib/patches/db/pg.rb: 110:in `async_exec'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/mini_sql-1.5.0/lib/mini_sql/postgres/connection.rb:202:in `run'
#--------------
Causé par :
PG::InvalidTextRepresentation : ERREUR : syntaxe d'entrée invalide pour le type double precision : "" (PG:: InvalidTextRepresentation)
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rack-mini-profiler-3.3.0/lib/patches/db/pg.rb: 110:in `exec'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rack-mini-profiler-3.3.0/lib/patches/db/pg.rb: 110:in `async_exec'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/mini_sql-1.5.0/lib/mini_sql/postgres/connection.rb:202:in `run'
et le message de docker ps
/var/discourse# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d3c8e85149a8 local_discourse/app \"/sbin/boot\" Il y a environ une heure En cours d'exécution (6 minutes) 0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:443->443/tcp, :::443->443/tcp app