Install Discourse on Ubuntu or Debian for Development

❯ sudo -i -u postgres
[sudo] password for scossar:
[postgres@rocknosh ~]$

Enter the following into the postgres prompt:

initdb --locale en_US.UTF-8 -D /var/lib/postgres/data
exit

Then from the command line:

# enable and start the postgresql service
sudo systemctl enable postgresql
sudo systemctl start postgresql

# add your user to the postgres group
# -a appends the current user ($USER) to the postgres group (-G postgres)
sudo usermod -aG postgres "$USER"

# create a postgresql superuser with your username
sudo -u postgres createuser -s "$USER"
1 Like

Thanks, worked. Am I not meant to be running the db create task in rails as root? If I do, I get FATAL: role "root" does not exist (PG::ConnectionBad) but if I don’t I get a permissions error LoadError: cannot load such file -- /usr/lib/ruby/gems/3.3.0/gems/colored2-4.0.0/lib/colored2.rb (LoadError).

No, it should be run as your regular user:

❯ bin/rails db:create
❯ bin/rails db:migrate

The error with the colored2 gem suggests that the gem is missing.

Make sure you have run bundle install prior to running rake db:create

1 Like

If you encounter such a screen, execute the following command:
bin/rails db:migrate will rectify the issue.

Upon installing this plugin, I encountered this error and had been pondering over a solution for two days. It suddenly dawned on me to perform a migration…

So I am just copying and pasting in the different things to install from the install file.
There’s this portion:

log_info "Installing image utilities ..."
  sudo -E apt-get -y install advancecomp gifsicle jpegoptim libjpeg-progs optipng pngcrush pngquant
  sudo -E apt-get -y install jhead

  # Install oxipng
  cd /tmp && \
    wget https://github.com/shssoichiro/oxipng/releases/download/v8.0.0/oxipng-8.0.0-x86_64-unknown-linux-musl.tar.gz && \
    tar -xzvf oxipng-8.0.0-x86_64-unknown-linux-musl.tar.gz && \
    sudo cp oxipng-8.0.0-x86_64-unknown-linux-musl/oxipng /usr/local/bin
  cd /tmp && \
    rm oxipng-8.0.0-x86_64-unknown-linux-musl.tar.gz && \
    rm -Rf oxipng-8.0.0-x86_64-unknown-linux-musl

After running this, I am still in the /tmp directory. Should I exit it or continue installing the rest in there? I installed in /tmp, was this the right thing to do? I assumed that if the file was run as a whole, it would still install in there.

EDIT: Ruby has been installed.

For the section right before that line, install imagemagick with pacman. I’m fairly sure you can ignore the command to install libtool:

❯ sudo pacman -S imagemagick

Then install most of the packages in the image utilities section with:

❯ sudo pacman -S gifsicle jpegoptim libjpeg-turbo optipng pngcrush pngquant jhead

advancecomp isn’t in the main Arch repo. It can be installed with this package from the AUR:

https://aur.archlinux.org/advancecomp-git.git

oxipng is in the main Arch repo, so ignore the cd /tmp command from the script and just run:

❯ sudo pacman -S oxipng

A little further down in the script, mailhog is available through the AUR:

https://aur.archlinux.org/mailhog-bin.git

If I setup Discourse on my other computer, I’ll test this out again and write a full guide. It’s actually a bit easier than installing Discourse on Ubuntu, because all the packages are either in the main repo, or available from the AUR. For now, let me know if you get stuck anywhere.

Possibly these posts could get moved to another topic?

1 Like

I installed Ruby in /tmp. Was that okay?

I’m not sure how Arch handles the /tmp directory. I suspect that it periodically gets cleaned up by a systemd job. The /tmp directory is intended for temporary files.

I’m guessing you could just move Ruby to your ~/ directory.

Installing Ruby on Arch was somewhat more complex that installing it on other systems. I installed it via Rbenv: rbenv - ArchWiki. To install ruby versions with rbenv also requires installing https://aur.archlinux.org/packages/ruby-build.

I suspect you could skip that and just install the Ruby package with pacman: Ruby - ArchWiki. It looks like that would give you Ruby 3.3.5. That should be fine for Discourse.

I should have been clearer: I’m doing this on a Pi.

That’s great! I don’t think it will change anything. Avoid putting things that you want to be permanently installed on your computer in the /tmp directory. Ruby should run fine from your home directory (~/)

1 Like

I tried installing it with sudo apt install pacman. Then to check if pacman was running, I entered pacman --help, which said:

X Error of failed request:  BadName (named color or font does not exist)
  Major opcode of failed request:  45 (X_OpenFont)
  Serial number of failed request:  27
  Current serial number in output stream:  31

I’m really not familiar with Linux and the command-line.

Sorry, I was very confused. I thought I was replying to darkpixlz, from a few posts up. Just ignore my reply. It’s only relevant to Arch linux.

1 Like

I’m trying again, I think it may work.

Did that install to /usr/games by chance? (Noting the “X Error”, there’s no reason for a CLI tool to be trying to get a font…)

I don’t think so. In any case, this is irrelevant (see the new new topic I posted).

Just checked on my pi, pacman seems to be a game, the package manager seems to be pacman-package-manager:

firepup650@firepi:~ $ apt search pacman 2>/dev/null|grep -e '^pacman' -1

pacman/stable,now 10-19+b1 arm64 [installed]
  Chase Monsters in a Labyrinth

pacman-package-manager/stable,now 6.0.2-3 arm64 [installed]
  Simple library-based package manager

pacman4console/stable,now 1.3-1+b4 arm64 [installed]
  ncurses-based pacman game
firepup650@firepi:~ $
1 Like

What is this supposed to look like?
All I’m seeing is a lot of [ember-cli] ...[@embroider/webpack]. I assume it will end?

EDIT:
I’m also seeing this error:

[ember-cli] ...[@embroider/webpack]                                                                                     D, [2024-10-27T18:11:10.974072 #18143] DEBUG -- : waiting 31.0s after suspend/hibernation                               Pipelining commands on a Redis instance is deprecated and will be removed in Redis 5.0.0.                                                                                                                                                       redis.multi do                                                                                                            redis.get("key")                                                                                                      end                                                                                                                                                                                                                                             should be replaced by                                                                                                                                                                                                                           redis.multi do |pipeline|                                                                                                 pipeline.get("key")                                                                                                   end                                                                                                                                                                                                                                             (called from /home/natedhaliwal/discourse-f/lib/discourse_redis.rb:148:in `public_send'}                                D, [2024-10-27T18:12:50.733620 #18143] DEBUG -- : waiting 31.0s after suspend/hibernation                               [ember-cli] ...[@embroider/webpack]                                                                                     [ember-cli] ...[@embroider/webpack]                                                                                     D, [2024-10-27T18:15:31.729849 #18143] DEBUG -- : waiting 31.0s after suspend/hibernation                               #<Thread:0x0000007f70443758 /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/logster-2.20.0/lib/logster/scheduler.rb:34 run> terminated with exception (report_on_exception is true):                                          /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/connection/ruby.rb:58:in `block in _read_from_socket': Connection timed out (Redis::TimeoutError)                                                               from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/connection/ruby.rb:54:in `loop'                                                                                                                    from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/connection/ruby.rb:54:in `_read_from_socket'                                                                                                       from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/connection/ruby.rb:47:in `gets'                                                                                                                    from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/connection/ruby.rb:382:in `read'                                                                                                                   from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/client.rb:311:in `block in read'                                                                                                                   from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/client.rb:299:in `io'                                                                                                                              from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/client.rb:310:in `read'                                                                                                                            from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/client.rb:161:in `block in call'                                                                                                                   from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/client.rb:279:in `block (2 levels) in process'                                                                                                     from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/client.rb:411:in `ensure_connected'                                                                                                                from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/client.rb:269:in `block in process'                                                                                                                from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/client.rb:356:in `logging'                                                                                                                         from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/client.rb:268:in `process'                                                                                                                         from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/client.rb:161:in `call'                                                                                                                            from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/rack-mini-profiler-3.3.1/lib/mini_profiler/profiling_methods.rb:89:in `block in profile_method'                                                                          from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis.rb:270:in `block in send_command'                                                                                                                  from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis.rb:269:in `synchronize'                                                                                                                            from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis.rb:269:in `send_command'                                                                                                                           from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/commands/hashes.rb:75:in `hget'                                                                                                                    from /home/natedhaliwal/discourse-f/lib/discourse_redis.rb:148:in `public_send'                                         from /home/natedhaliwal/discourse-f/lib/discourse_redis.rb:148:in `block (3 levels) in <class:DiscourseRedis>'          from /home/natedhaliwal/discourse-f/lib/discourse_redis.rb:29:in `ignore_readonly'                                      from /home/natedhaliwal/discourse-f/lib/discourse_redis.rb:148:in `block (2 levels) in <class:DiscourseRedis>'          from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/logster-2.20.0/lib/logster/redis_store.rb:26:in `block in save'                                                                                                          from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/logster-2.20.0/lib/logster/redis_store.rb:26:in `each'                                                                                                                   from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/logster-2.20.0/lib/logster/redis_store.rb:26:in `save'                                                                                                                   from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/logster-2.20.0/lib/logster/base_store.rb:223:in `report'                                                                                                                 from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/logster-2.20.0/lib/logster/logger.rb:167:in `report_to_store'                                                                                                            from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/logster-2.20.0/lib/logster/defer_logger.rb:11:in `block in report_to_store'                                                                                              from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/logster-2.20.0/lib/logster/scheduler.rb:43:in `do_work'                                                                                                                  from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/logster-2.20.0/lib/logster/scheduler.rb:34:in `block (2 levels) in start_thread'                                                                                 /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/connection/ruby.rb:58:in `block in _read_from_socket': Redis::TimeoutError (Redis::TimeoutError)                                                                from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/connection/ruby.rb:54:in `loop'                                                                                                                    from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/connection/ruby.rb:54:in `_read_from_socket'                                                                                                       from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/connection/ruby.rb:47:in `gets'                                                                                                                    from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/connection/ruby.rb:382:in `read'                                                                                                                   from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/client.rb:311:in `block in read'                                                                                                                   from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/client.rb:299:in `io'                                                                                                                              from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/client.rb:310:in `read'                                                                                                                            from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/client.rb:161:in `block in call'                                                                                                                   from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/client.rb:279:in `block (2 levels) in process'                                                                                                     from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/client.rb:411:in `ensure_connected'                                                                                                                from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/client.rb:269:in `block in process'                                                                                                                from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/client.rb:356:in `logging'                                                                                                                         from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/client.rb:268:in `process'                                                                                                                         from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/client.rb:161:in `call'                                                                                                                            from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/rack-mini-profiler-3.3.1/lib/mini_profiler/profiling_methods.rb:89:in `block in profile_method'                                                                          from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis.rb:270:in `block in send_command'                                                                                                                  from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis.rb:269:in `synchronize'                                                                                                                            from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis.rb:269:in `send_command'                                                                                                                           from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/commands/hashes.rb:75:in `hget'                                                                                                                    from /home/natedhaliwal/discourse-f/lib/discourse_redis.rb:148:in `public_send'                                         from /home/natedhaliwal/discourse-f/lib/discourse_redis.rb:148:in `block (3 levels) in <class:DiscourseRedis>'          from /home/natedhaliwal/discourse-f/lib/discourse_redis.rb:29:in `ignore_readonly'                                      from /home/natedhaliwal/discourse-f/lib/discourse_redis.rb:148:in `block (2 levels) in <class:DiscourseRedis>'          from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/logster-2.20.0/lib/logster/redis_store.rb:26:in `block in save'                                                                                                          from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/logster-2.20.0/lib/logster/redis_store.rb:26:in `each'                                                                                                                   from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/logster-2.20.0/lib/logster/redis_store.rb:26:in `save'                                                                                                                   from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/logster-2.20.0/lib/logster/base_store.rb:223:in `report'                                                                                                                 from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/logster-2.20.0/lib/logster/logger.rb:167:in `report_to_store'                                                                                                            from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/logster-2.20.0/lib/logster/defer_logger.rb:11:in `block in report_to_store'                                                                                              from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/logster-2.20.0/lib/logster/scheduler.rb:43:in `do_work'                                                                                                                  from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/logster-2.20.0/lib/logster/scheduler.rb:34:in `block (2 levels) in start_thread' 

EDIT:
And then, I see this:

[ember-cli] ...[@embroider/webpack]                                                                                     D, [2024-10-27T18:21:32.809073 #18143] DEBUG -- : waiting 31.0s after suspend/hibernation                               [ember-cli] ...[@embroider/webpack]                                                                                     D, [2024-10-27T18:24:07.713356 #18143] DEBUG -- : waiting 31.0s after suspend/hibernation                               E, [2024-10-27T18:27:11.704108 #18143] ERROR -- : master loop error: Connection timed out (Redis::TimeoutError)         E, [2024-10-27T18:27:11.768847 #18143] ERROR -- : /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/connection/ruby.rb:58:in `block in _read_from_socket'                                                 E, [2024-10-27T18:27:11.768930 #18143] ERROR -- : /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/connection/ruby.rb:54:in `loop'                                                                       E, [2024-10-27T18:27:11.768979 #18143] ERROR -- : /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/connection/ruby.rb:54:in `_read_from_socket'                                                          E, [2024-10-27T18:27:11.769025 #18143] ERROR -- : /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/connection/ruby.rb:47:in `gets'                                                                       E, [2024-10-27T18:27:11.769069 #18143] ERROR -- : /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/connection/ruby.rb:382:in `read'                                                                      E, [2024-10-27T18:27:11.769145 #18143] ERROR -- : /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/client.rb:311:in `block in read'                                                                      E, [2024-10-27T18:27:11.769186 #18143] ERROR -- : /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/client.rb:299:in `io'                                                                                 E, [2024-10-27T18:27:11.769222 #18143] ERROR -- : /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/client.rb:310:in `read'                                                                               E, [2024-10-27T18:27:11.769265 #18143] ERROR -- : /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/client.rb:161:in `block in call'                                                                      E, [2024-10-27T18:27:11.769297 #18143] ERROR -- : /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/client.rb:279:in `block (2 levels) in process'                                                        E, [2024-10-27T18:27:11.769336 #18143] ERROR -- : /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/client.rb:411:in `ensure_connected'                                                                   E, [2024-10-27T18:27:11.769377 #18143] ERROR -- : /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/client.rb:269:in `block in process'                                                                   E, [2024-10-27T18:27:11.769423 #18143] ERROR -- : /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/client.rb:356:in `logging'                                                                            E, [2024-10-27T18:27:11.769503 #18143] ERROR -- : /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/client.rb:268:in `process'                                                                            E, [2024-10-27T18:27:11.769580 #18143] ERROR -- : /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/client.rb:161:in `call'                                                                               E, [2024-10-27T18:27:11.769623 #18143] ERROR -- : /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/rack-mini-profiler-3.3.1/lib/mini_profiler/profiling_methods.rb:89:in `block in profile_method'                             E, [2024-10-27T18:27:11.769667 #18143] ERROR -- : /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis.rb:270:in `block in send_command'                                                                     E, [2024-10-27T18:27:11.769712 #18143] ERROR -- : /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis.rb:269:in `synchronize'                                                                               E, [2024-10-27T18:27:11.769748 #18143] ERROR -- : /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis.rb:269:in `send_command'                                                                              E, [2024-10-27T18:27:11.769792 #18143] ERROR -- : /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/commands/strings.rb:191:in `get'                                                                      E, [2024-10-27T18:27:11.769831 #18143] ERROR -- : /home/natedhaliwal/discourse-f/lib/discourse_redis.rb:148:in `public_send'                                                                                                                    E, [2024-10-27T18:27:11.769895 #18143] ERROR -- : /home/natedhaliwal/discourse-f/lib/discourse_redis.rb:148:in `block (3 levels) in <class:DiscourseRedis>'                                                                                     E, [2024-10-27T18:27:11.769940 #18143] ERROR -- : /home/natedhaliwal/discourse-f/lib/discourse_redis.rb:29:in `ignore_readonly'                                                                                                                 E, [2024-10-27T18:27:11.769975 #18143] ERROR -- : /home/natedhaliwal/discourse-f/lib/discourse_redis.rb:148:in `block (2 levels) in <class:DiscourseRedis>'                                                                                     E, [2024-10-27T18:27:11.770020 #18143] ERROR -- : /home/natedhaliwal/discourse-f/app/jobs/regular/run_heartbeat.rb:16:in `last_heartbeat'                                                                                                       E, [2024-10-27T18:27:11.770061 #18143] ERROR -- : /home/natedhaliwal/discourse-f/config/unicorn.conf.rb:191:in `check_sidekiq_heartbeat'                                                                                                        E, [2024-10-27T18:27:11.770098 #18143] ERROR -- : /home/natedhaliwal/discourse-f/config/unicorn.conf.rb:278:in `master_sleep'                                                                                                                   E, [2024-10-27T18:27:11.770130 #18143] ERROR -- : /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/unicorn-6.1.0/lib/unicorn/http_server.rb:295:in `join'                                                                      E, [2024-10-27T18:27:11.770179 #18143] ERROR -- : /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/unicorn-6.1.0/bin/unicorn:128:in `<top (required)>'                                                                         E, [2024-10-27T18:27:11.770217 #18143] ERROR -- : /home/natedhaliwal/discourse-f/bin/unicorn:93:in `load'               E, [2024-10-27T18:27:11.770250 #18143] ERROR -- : /home/natedhaliwal/discourse-f/bin/unicorn:93:in `block in <main>'    E, [2024-10-27T18:27:11.770292 #18143] ERROR -- : /home/natedhaliwal/discourse-f/bin/unicorn:92:in `fork'               E, [2024-10-27T18:27:11.770326 #18143] ERROR -- : /home/natedhaliwal/discourse-f/bin/unicorn:92:in `<main>'             D, [2024-10-27T18:27:11.770480 #18143] DEBUG -- : waiting 31.0s after suspend/hibernation                               I, [2024-10-27T18:27:58.302988 #18143]  INFO -- : Process would not terminate cleanly, force quitting. pid: 18423 Demon::Sidekiq                                                                                                                #<Thread:0x0000007f738abbf8 /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/logster-2.20.0/lib/logster/scheduler.rb:34 run> terminated with exception (report_on_exception is true):                                          /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/connection/ruby.rb:58:in `block in _read_from_socket': Connection timed out (Redis::TimeoutError)                                                               from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/connection/ruby.rb:54:in `loop'                                                                                                                    from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/connection/ruby.rb:54:in `_read_from_socket'                                                                                                       from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/connection/ruby.rb:47:in `gets'                                                                                                                    from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/connection/ruby.rb:382:in `read'                                                                                                                   from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/client.rb:311:in `block in read'                                                                                                                   from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/client.rb:299:in `io'                                                                                                                              from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/client.rb:310:in `read'                                                                                                                            from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/client.rb:161:in `block in call'                                                                                                                   from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/client.rb:279:in `block (2 levels) in process'                                                                                                     from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/client.rb:411:in `ensure_connected'                                                                                                                from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/client.rb:269:in `block in process'                                                                                                                from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/client.rb:356:in `logging'                                                                                                                         from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/client.rb:268:in `process'                                                                                                                         from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/client.rb:161:in `call'                                                                                                                            from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/rack-mini-profiler-3.3.1/lib/mini_profiler/profiling_methods.rb:89:in `block in profile_method'                                                                          from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis.rb:270:in `block in send_command'                                                                                                                  from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis.rb:269:in `synchronize'                                                                                                                            from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis.rb:269:in `send_command'                                                                                                                           from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/commands/sets.rb:131:in `smembers'                                                                                                                 from /home/natedhaliwal/discourse-f/lib/discourse_redis.rb:148:in `public_send'                                         from /home/natedhaliwal/discourse-f/lib/discourse_redis.rb:148:in `block (3 levels) in <class:DiscourseRedis>'          from /home/natedhaliwal/discourse-f/lib/discourse_redis.rb:29:in `ignore_readonly'                                      from /home/natedhaliwal/discourse-f/lib/discourse_redis.rb:148:in `block (2 levels) in <class:DiscourseRedis>'          from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/logster-2.20.0/lib/logster/redis_store.rb:329:in `get_patterns'                                                                                                          from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/logster-2.20.0/lib/logster/pattern.rb:37:in `find_all'                                                                                                                   from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/logster-2.20.0/lib/logster/base_store.rb:188:in `block in report'                                                                                                        from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/logster-2.20.0/lib/logster/cache.rb:13:in `fetch'                                                                                                                        from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/logster-2.20.0/lib/logster/base_store.rb:187:in `report'                                                                                                                 from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/logster-2.20.0/lib/logster/logger.rb:167:in `report_to_store'                                                                                                            from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/logster-2.20.0/lib/logster/defer_logger.rb:11:in `block in report_to_store'                                                                                              from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/logster-2.20.0/lib/logster/scheduler.rb:43:in `do_work'                                                                                                                  from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/logster-2.20.0/lib/logster/scheduler.rb:34:in `block (2 levels) in start_thread'                                                                                 /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/connection/ruby.rb:58:in `block in _read_from_socket': Redis::TimeoutError (Redis::TimeoutError)                                                                from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/connection/ruby.rb:54:in `loop'                                                                                                                    from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/connection/ruby.rb:54:in `_read_from_socket'                                                                                                       from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/connection/ruby.rb:47:in `gets'                                                                                                                    from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/connection/ruby.rb:382:in `read'                                                                                                                   from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/client.rb:311:in `block in read'                                                                                                                   from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/client.rb:299:in `io'                                                                                                                              from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/client.rb:310:in `read'                                                                                                                            from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/client.rb:161:in `block in call'                                                                                                                   from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/client.rb:279:in `block (2 levels) in process'                                                                                                     from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/client.rb:411:in `ensure_connected'                                                                                                                from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/client.rb:269:in `block in process'                                                                                                                from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/client.rb:356:in `logging'                                                                                                                         from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/client.rb:268:in `process'                                                                                                                         from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/client.rb:161:in `call'                                                                                                                            from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/rack-mini-profiler-3.3.1/lib/mini_profiler/profiling_methods.rb:89:in `block in profile_method'                                                                          from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis.rb:270:in `block in send_command'                                                                                                                  from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis.rb:269:in `synchronize'                                                                                                                            from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis.rb:269:in `send_command'                                                                                                                           from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/redis-4.8.1/lib/redis/commands/sets.rb:131:in `smembers'                                                                                                                 from /home/natedhaliwal/discourse-f/lib/discourse_redis.rb:148:in `public_send'                                         from /home/natedhaliwal/discourse-f/lib/discourse_redis.rb:148:in `block (3 levels) in <class:DiscourseRedis>'          from /home/natedhaliwal/discourse-f/lib/discourse_redis.rb:29:in `ignore_readonly'                                      from /home/natedhaliwal/discourse-f/lib/discourse_redis.rb:148:in `block (2 levels) in <class:DiscourseRedis>'          from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/logster-2.20.0/lib/logster/redis_store.rb:329:in `get_patterns'                                                                                                          from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/logster-2.20.0/lib/logster/pattern.rb:37:in `find_all'                                                                                                                   from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/logster-2.20.0/lib/logster/base_store.rb:188:in `block in report'                                                                                                        from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/logster-2.20.0/lib/logster/cache.rb:13:in `fetch'                                                                                                                        from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/logster-2.20.0/lib/logster/base_store.rb:187:in `report'                                                                                                                 from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/logster-2.20.0/lib/logster/logger.rb:167:in `report_to_store'                                                                                                            from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/logster-2.20.0/lib/logster/defer_logger.rb:11:in `block in report_to_store'                                                                                              from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/logster-2.20.0/lib/logster/scheduler.rb:43:in `do_work'                                                                                                                  from /home/natedhaliwal/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/logster-2.20.0/lib/logster/scheduler.rb:34:in `block (2 levels) in start_thread'                                                                                 [ember-cli] ...[@embroider/webpack]                                                                                     I, [2024-10-27T18:28:06.724985 #19748]  INFO -- : Loading Sidekiq in process id 19748                                   [ember-cli] ...[@embroider/webpack]

Those are not errors.

They are console logs of the JavaScript build process which includes some Ember being converted to native JavaScript.

That’s healthy progress.

At this point theres usually a lot of memory and CPU being used so can take some time.

2 Likes

@merefield What about

Or

very helpful!