Hey all, i am actually trying to setup discourse on my local system (MacOs)!
Iāve installed all the necessary packages that are needed & listed here.
Now as I try executing the command bundle exec rails server
& try to open http://localhost:3000/ , where the app should work, its not showing any result!
Not able to proceed from here on. Tried a lot of things
These are the logs i get after running the above command:
WARNING: Using `bundle exec` to start the server is unnecessary, and will make startup slower. Use `bin/rails s` or `bin/unicorn`.
I, [2022-03-16T19:08:29.394164 #95655] INFO -- : Refreshing Gem list
Starting CSS change watcher
I, [2022-03-16T19:08:45.218876 #95655] INFO -- : listening on addr=127.0.0.1:3000 fd=16
(49.6ms) SELECT "translation_overrides"."translation_key", "translation_overrides"."value" FROM "translation_overrides" WHERE "translation_overrides"."locale" = 'en'
Group Load (55.1ms) SELECT "groups"."id", "groups"."name", "groups"."flair_icon", "groups"."flair_upload_id", "groups"."flair_bg_color", "groups"."flair_color" FROM "groups" WHERE (groups.visibility_level = 0) ORDER BY name ASC, "groups"."name" ASC
(58.4ms) SELECT "categories"."id" FROM "categories" WHERE "categories"."read_restricted" = FALSE
(50.5ms) SELECT COUNT(*) FROM (SELECT 1 AS one FROM "topics" WHERE "topics"."deleted_at" IS NULL LIMIT 16) subquery_for_count
(53.5ms) SELECT "users"."id" FROM "users" INNER JOIN "user_auth_tokens" ON "user_auth_tokens"."user_id" = "users"."id" WHERE "users"."admin" = TRUE AND (users.id > 0) ORDER BY user_auth_tokens.created_at LIMIT 1
(0.6ms) SELECT "categories"."id" FROM "categories" WHERE "categories"."topic_featured_link_allowed" = TRUE
(5.2ms) SELECT "themes"."id", "themes"."name", "themes"."color_scheme_id" FROM "themes" WHERE (id = 1 OR user_selectable) ORDER BY lower(name)
ColorScheme Load (59.7ms) SELECT "color_schemes".* FROM "color_schemes" WHERE (user_selectable) ORDER BY "color_schemes"."name" ASC
ColorSchemeColor Load (43.9ms) SELECT "color_scheme_colors".* FROM "color_scheme_colors" WHERE "color_scheme_colors"."color_scheme_id" IN (1, 3, 2) ORDER BY id ASC
ColorScheme Load (3.9ms) SELECT "color_schemes".* FROM "color_schemes" WHERE "color_schemes"."id" = 1 LIMIT 1
Category Load (25.2ms) SELECT categories.*, t.slug topic_slug FROM "categories" LEFT JOIN topics t on t.id = categories.topic_id ORDER BY "categories"."position" ASC
CategoryTag Load (45.2ms) SELECT "category_tags".* FROM "category_tags" WHERE "category_tags"."category_id" IN (1, 2, 3, 4)
CategoryTagGroup Load (36.2ms) SELECT "category_tag_groups".* FROM "category_tag_groups" WHERE "category_tag_groups"."category_id" IN (1, 2, 3, 4)
UserField Load (43.7ms) SELECT "user_fields".* FROM "user_fields" ORDER BY "user_fields"."position" ASC
Upload Load (51.5ms) SELECT "uploads"."id", "uploads"."user_id", "uploads"."original_filename", "uploads"."filesize", "uploads"."width", "uploads"."height", "uploads"."url", "uploads"."created_at", "uploads"."updated_at", "uploads"."sha1", "uploads"."origin", "uploads"."retain_hours", "uploads"."extension", "uploads"."thumbnail_width", "uploads"."thumbnail_height", "uploads"."etag", "uploads"."secure", "uploads"."access_control_post_id", "uploads"."original_sha1", "uploads"."animated", "uploads"."verification_status", "uploads"."security_last_changed_at", "uploads"."security_last_changed_reason" FROM "uploads" WHERE "uploads"."id" = -5 LIMIT 1
Upload Load (1.6ms) SELECT "uploads"."id", "uploads"."user_id", "uploads"."original_filename", "uploads"."filesize", "uploads"."width", "uploads"."height", "uploads"."url", "uploads"."created_at", "uploads"."updated_at", "uploads"."sha1", "uploads"."origin", "uploads"."retain_hours", "uploads"."extension", "uploads"."thumbnail_width", "uploads"."thumbnail_height", "uploads"."etag", "uploads"."secure", "uploads"."access_control_post_id", "uploads"."original_sha1", "uploads"."animated", "uploads"."verification_status", "uploads"."security_last_changed_at", "uploads"."security_last_changed_reason" FROM "uploads" WHERE "uploads"."id" = -6 LIMIT 1
(2.1ms) SELECT "groups"."flair_icon" FROM "groups"
(45.0ms) SELECT "badges"."icon" FROM "badges"
OptimizedImage Load (47.4ms) SELECT "optimized_images".* FROM "optimized_images" WHERE "optimized_images"."upload_id" = -6 AND "optimized_images"."height" = 32 AND "optimized_images"."width" = 32 LIMIT 1
#<Thread:0x00000001132a3ed8 lib/discourse.rb:988 run> terminated with exception (report_on_exception is true):
/Users/kunalverma/discourse/lib/letter_avatar.rb:105:in ``': No such file or directory - convert (Errno::ENOENT)
from /Users/kunalverma/discourse/lib/letter_avatar.rb:105:in `image_magick_version'
from lib/discourse.rb:989:in `block in preload_rails!'
Permalink Exists? (252.0ms) SELECT 1 AS one FROM "permalinks" WHERE "permalinks"."url" = 'abc' LIMIT 1
Permalink Exists? (50.3ms) SELECT 1 AS one FROM "permalinks" WHERE "permalinks"."url" = 'abc' LIMIT 1
E, [2022-03-16T19:08:48.828448 #95655] ERROR -- : No such file or directory - convert (Errno::ENOENT)
/Users/kunalverma/discourse/lib/letter_avatar.rb:105:in ``'
/Users/kunalverma/discourse/lib/letter_avatar.rb:105:in `image_magick_version'
lib/discourse.rb:989:in `block in preload_rails!'