Discourse ์ฑ—๋ด‡ ๐Ÿค–

@merefield

ํ›Œ๋ฅญํ•œ ํ”Œ๋Ÿฌ๊ทธ์ธ์„ ๋งŒ๋“ค์–ด ์ฃผ์…”์„œ ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค. ์ €๋Š” ์‚ฌ์ดํŠธ๋ฅผ ์…€ํ”„ํ˜ธ์ŠคํŒ…ํ•˜๋Š” ๋ฒ„์ „์„ ์ž‘์—… ์ค‘์ด๋ฉฐ, ์ด๋ฅผ ํ†ตํ•ด ์ž์œ ๋กญ๊ฒŒ ์‹คํ—˜ํ•ด ๋ณด๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ์—ฌ๊ธฐ์„œ ํ•˜์‹  ๊ฒƒ์ฒ˜๋Ÿผ Building a technical support chatbot ์˜ ๋‚ด์šฉ์„ ์žฌํ˜„ํ•˜๋Š” ๊ฒƒ์ด ๋ชฉํ‘œ์ž…๋‹ˆ๋‹ค.

์ง€์นจ์„ ๋”ฐ๋ผ app.yml ํŒŒ์ผ์— ๋‹ค์Œ์„ ์ถ”๊ฐ€ํ–ˆ์Šต๋‹ˆ๋‹ค.

- git clone https://github.com/merefield/discourse-chatbot.git 

๊ทธ๋Ÿฌ๋‚˜ ./launcher rebuild app์„ ์‹คํ–‰ํ•˜๋ฉด ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•ฉ๋‹ˆ๋‹ค.

Gem::LoadError: canโ€™t activate multipart-post-2.2.3, already activated multipart-post-2.4.0 (Gem::LoadError)

์ „์ฒด ์˜ค๋ฅ˜ ๋ฉ”์‹œ์ง€

I, [2024-10-04T14:03:14.844712 #1] INFO โ€“ : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf

I, [2024-10-04T14:03:14.846521 #1] INFO โ€“ : > sleep 10

2259:C 04 Oct 2024 14:03:14.854 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo

2259:C 04 Oct 2024 14:03:14.854 # Redis version=7.0.7, bits=64, commit=00000000, modified=0, pid=2259, just started

2259:C 04 Oct 2024 14:03:14.854 # Configuration loaded

2259:M 04 Oct 2024 14:03:14.855 * monotonic clock: POSIX clock_gettime

2259:M 04 Oct 2024 14:03:14.855 # Warning: Could not create server TCP listening socket *:6379: bind: Address already in use

2259:M 04 Oct 2024 14:03:14.855 # Failed listening on port 6379 (TCP), aborting.

I, [2024-10-04T14:03:24.849199 #1] INFO โ€“ :

I, [2024-10-04T14:03:24.849755 #1] INFO โ€“ : > cd /var/www/discourse && su discourse -c โ€˜bundle exec rake db:migrateโ€™

rake aborted!

Gem::LoadError: canโ€™t activate multipart-post-2.2.3, already activated multipart-post-2.4.0 (Gem::LoadError)

/var/www/discourse/lib/plugin_gem.rb:25:in `loadโ€™

/var/www/discourse/lib/plugin/instance.rb:824:in `gemโ€™

/var/www/discourse/plugins/discourse-zendesk-plugin/plugin.rb:13:in `activate!โ€™

/var/www/discourse/lib/plugin/instance.rb:767:in `instance_evalโ€™

/var/www/discourse/lib/plugin/instance.rb:767:in `activate!โ€™

/var/www/discourse/lib/discourse.rb:348:in `block in activate_plugins!โ€™

/var/www/discourse/lib/discourse.rb:345:in `eachโ€™

/var/www/discourse/lib/discourse.rb:345:in `activate_plugins!โ€™

/var/www/discourse/config/application.rb:232:in `block in class:Applicationโ€™

/var/www/discourse/lib/plugin.rb:6:in `initialization_guardโ€™

/var/www/discourse/config/application.rb:232:in `class:Applicationโ€™

/var/www/discourse/config/application.rb:75:in `module:Discourseโ€™

/var/www/discourse/config/application.rb:74:in `<top (required)>โ€™

/var/www/discourse/Rakefile:7:in `<top (required)>โ€™

/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/exe/rake:27:in `<top (required)>โ€™

/usr/local/bin/bundle:25:in `loadโ€™

/usr/local/bin/bundle:25:in `โ€™

(See full trace by running task with --trace)

I, [2024-10-04T14:03:33.989382 #1] INFO โ€“ :
โ€ฆ

I, [2024-10-04T14:03:33.989950 #1] INFO โ€“ : Terminating async processes

I, [2024-10-04T14:03:33.989982 #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: 36

I, [2024-10-04T14:03:33.990027 #1] INFO โ€“ : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 104

104:signal-handler (1728050613) Received SIGTERM scheduling shutdownโ€ฆ

2024-10-04 14:03:33.990 UTC [36] LOG: received fast shutdown request

2024-10-04 14:03:33.991 UTC [36] LOG: aborting any active transactions

2024-10-04 14:03:33.996 UTC [36] LOG: background worker โ€œlogical replication launcherโ€ (PID 51) exited with exit code 1

2024-10-04 14:03:33.997 UTC [46] LOG: shutting down

104:M 04 Oct 2024 14:03:34.007 # User requested shutdownโ€ฆ

104:M 04 Oct 2024 14:03:34.007 * Saving the final RDB snapshot before exiting.

2024-10-04 14:03:34.023 UTC [36] LOG: database system is shut down

104:M 04 Oct 2024 14:03:34.025 * DB saved on disk

104:M 04 Oct 2024 14:03:34.025 # Redis is now ready to exit, bye byeโ€ฆ

FAILED


Pups::ExecError: cd /var/www/discourse && su discourse -c โ€˜bundle exec rake db:migrateโ€™ failed with return #<Process::Status: pid 2262 exit 1>

Location of failure: /usr/local/lib/ruby/gems/3.3.0/gems/pups-1.2.1/lib/pups/exec_command.rb:132:in `spawnโ€™

exec failed with the params {โ€œcdโ€=>โ€œ$homeโ€, โ€œtagโ€=>โ€œmigrateโ€, โ€œhookโ€=>โ€œdb_migrateโ€, โ€œcmdโ€=>[โ€œsu discourse -c โ€˜bundle exec rake db:migrateโ€™โ€]}

bootstrap failed with exit code 1

** 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.

289408d3c0350809f88a235d9c3ae0b23074f4e1a727748bbc3ab3b205e18115

==================== END REBUILD LOG ====================

Failed to rebuild app.

์ด ๋ฌธ์ œ๊ฐ€ ํ”Œ๋Ÿฌ๊ทธ์ธ๊ณผ ๊ด€๋ จ์ด ์žˆ๋Š”์ง€ ์•„์ด๋””์–ด๊ฐ€ ์žˆ์„๊นŒ์š”?

1๊ฐœ์˜ ์ข‹์•„์š”