Problem with Rails...

nnm

Antonio

Posted on November 6, 2024

Problem with Rails...

Hello everyone! I encountered a problem installing Forem SelfHost on DigitalOcean, although I had previously installed it without problems.

It is useless to contact forem.dev, since this site has already been abandoned, so I ask for help here.

The installation is successful, but when I enter the command sudo systemctl restart forem-traefik.service, nothing happens.

There was a similar problem here: DigitalOcean: forem-traefik.service: Job forem-traefik.service/start failed with result 'dependency'. - Author @ben

If I run the command sudo systemctl start forem-rails.service, an error appears:

Job for forem-rails.service failed because the control process exited with error code.
See "systemctl status forem-rails.service" and "journalctl -xeu forem-rails.service" for details.

Enter fullscreen mode Exit fullscreen mode

journalctl -xeu forem-rails.service:

Nov 06 01:37:51 www.informland.com forem-rails-bootstrap[7552]: Disable partial writes in config/application.rb:
Nov 06 01:37:51 www.informland.com forem-rails-bootstrap[7552]:
Nov 06 01:37:51 www.informland.com forem-rails-bootstrap[7552]: config.active_record.partial_inserts = false
Nov 06 01:37:51 www.informland.com forem-rails-bootstrap[7552]:
Nov 06 01:37:51 www.informland.com forem-rails[7527]: rails aborted!
Nov 06 01:37:51 www.informland.com forem-rails[7527]: StandardError: An error has occurred, this and all later migrations canceled: (StandardError)
Nov 06 01:37:51 www.informland.com forem-rails[7527]: === Dangerous operation detected #strong_migrations ===
Nov 06 01:37:51 www.informland.com forem-rails[7527]: Partial writes are enabled, which can cause incorrect values
Nov 06 01:37:51 www.informland.com forem-rails[7527]: to be inserted when changing the default value of a column.
Nov 06 01:37:51 www.informland.com forem-rails[7527]: Disable partial writes in config/application.rb:
Nov 06 01:37:51 www.informland.com forem-rails[7527]: config.active_record.partial_inserts = false
Nov 06 01:37:51 www.informland.com forem-rails-bootstrap[7552]: /opt/apps/forem/db/migrate/20201019012200_change_email_preference_default_values.rb:3:in `change'
Nov 06 01:37:51 www.informland.com forem-rails-bootstrap[7552]: Tasks: TOP => db:prepare
Nov 06 01:37:51 www.informland.com forem-rails-bootstrap[7552]: (See full trace by running task with --trace)
Nov 06 01:37:51 www.informland.com forem-rails[7527]: /opt/apps/forem/db/migrate/20201019012200_change_email_preference_default_values.rb:3:in `change'
Nov 06 01:37:51 www.informland.com forem-rails[7527]: Tasks: TOP => db:prepare
Nov 06 01:37:51 www.informland.com forem-rails[7527]: (See full trace by running task with --trace)
Nov 06 01:37:51 www.informland.com forem-rails-bootstrap[7552]: I, [2024-11-06T01:37:50.024271 #23]  INFO -- ddtrace: [ddtrace] DATADOG CONFIGURATION - PROFILING - {"profiling_enabled">
Nov 06 01:37:51 www.informland.com forem-rails-bootstrap[7552]: I, [2024-11-06T01:37:50.031794 #23]  INFO -- ddtrace: [ddtrace] DATADOG CONFIGURATION - CORE - {"date":"2024-11-06T01:37>
Nov 06 01:37:51 www.informland.com forem-rails-bootstrap[7552]: I, [2024-11-06T01:37:50.788441 #23]  INFO -- honeybadger: ** [Honeybadger] Initializing Honeybadger Error Tracker for Ru>
Nov 06 01:37:51 www.informland.com forem-rails-bootstrap[7552]: I, [2024-11-06T01:37:51.795942 #23]  INFO -- : Migrating to ChangeEmailPreferenceDefaultValues (20201019012200)
Nov 06 01:37:51 www.informland.com forem-rails-bootstrap[7552]: == 20201019012200 ChangeEmailPreferenceDefaultValues: migrating ===============
Nov 06 01:37:51 www.informland.com forem-rails-bootstrap[7552]: E, [2024-11-06T01:37:51.813351 #23] ERROR -- honeybadger: ** [Honeybadger] Unable to send error report: API key is missi>
Nov 06 01:37:51 www.informland.com forem-rails[7527]: I, [2024-11-06T01:37:50.024271 #23]  INFO -- ddtrace: [ddtrace] DATADOG CONFIGURATION - PROFILING - {"profiling_enabled":false}
Nov 06 01:37:51 www.informland.com forem-rails[7527]: I, [2024-11-06T01:37:50.031794 #23]  INFO -- ddtrace: [ddtrace] DATADOG CONFIGURATION - CORE - {"date":"2024-11-06T01:37:50+00:00">
Nov 06 01:37:51 www.informland.com forem-rails[7527]: I, [2024-11-06T01:37:50.788441 #23]  INFO -- honeybadger: ** [Honeybadger] Initializing Honeybadger Error Tracker for Ruby. Ship i>
Nov 06 01:37:51 www.informland.com forem-rails[7527]: I, [2024-11-06T01:37:51.795942 #23]  INFO -- : Migrating to ChangeEmailPreferenceDefaultValues (20201019012200)
Nov 06 01:37:51 www.informland.com forem-rails[7527]: == 20201019012200 ChangeEmailPreferenceDefaultValues: migrating ===============
Nov 06 01:37:51 www.informland.com forem-rails[7527]: E, [2024-11-06T01:37:51.813351 #23] ERROR -- honeybadger: ** [Honeybadger] Unable to send error report: API key is missing. id=ed5>
Nov 06 01:37:51 www.informland.com conmon[7552]: conmon 707de065670f2dfb4e55 <nwarn>: Failed to open cgroups file: /sys/fs/cgroup/machine.slice/machine-libpod_pod_059e3778034af6e7ab375>
Nov 06 01:37:51 www.informland.com podman[7527]: 2024-11-06 01:37:51.897910895 +0000 UTC m=+15.670031717 container died 707de065670f2dfb4e553ddb1d080dd117372942c5abd1358a34a0e8f7a20648>
Nov 06 01:37:52 www.informland.com podman[7612]: 2024-11-06 01:37:52.111013065 +0000 UTC m=+0.197569767 container remove 707de065670f2dfb4e553ddb1d080dd117372942c5abd1358a34a0e8f7a2064>
Nov 06 01:37:52 www.informland.com podman[7612]: 2024-11-06 01:37:52.173605736 +0000 UTC m=+0.260162464 volume remove 9f13dadbb4943e27420eb3e47c3bbac716526ecaa896acd9606ef4a4ccde79fb
Nov 06 01:37:52 www.informland.com systemd[1]: forem-rails.service: Control process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ An ExecStartPre= process belonging to unit forem-rails.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 1.
Nov 06 01:37:52 www.informland.com systemd[1]: forem-rails.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ The unit forem-rails.service has entered the 'failed' state with result 'exit-code'.
Nov 06 01:37:52 www.informland.com systemd[1]: Failed to start forem-rails.service - Forem Rails Service.
░░ Subject: A start job for unit forem-rails.service has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A start job for unit forem-rails.service has finished with a failure.
░░
░░ The job identifier is 13892 and the job result is failed.
Nov 06 01:37:52 www.informland.com systemd[1]: forem-rails.service: Consumed 1.551s CPU time.
░░ Subject: Resources consumed by unit runtime
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ The unit forem-rails.service completed and consumed the indicated resources.

Enter fullscreen mode Exit fullscreen mode

systemctl list-units forem* --all:

  UNIT                     LOAD   ACTIVE     SUB       JOB   DESCRIPTION
  forem-container.service  loaded inactive   dead            Forem container service
  forem-imgproxy.service   loaded active     running         Forem Imgproxy Service
  forem-openresty.service  loaded inactive   dead      start Forem OpenResty Service
  forem-pod.service        loaded active     running         Forem pod service
  forem-postgresql.service loaded active     running         Forem Postgresql Service
  forem-rails.service      loaded activating start-pre start Forem Rails Service
  forem-redis.service      loaded active     running         Forem Redis Service
  forem-traefik.service    loaded inactive   dead      start Forem Traefik Service
  forem-worker.service     loaded inactive   dead      start Forem Worker Service
  forem.service            loaded active     exited          Forem Service

Enter fullscreen mode Exit fullscreen mode

foremctl status:

CONTAINER ID  IMAGE                                    COMMAND               CREATED         STATUS         PORTS                                     NAMES
0554224b6823  localhost/podman-pause:5.2.4-1728259200                        27 minutes ago  Up 27 minutes  0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp  059e3778034a-infra
063379be747a  docker.io/darthsim/imgproxy:v2           imgproxy              27 minutes ago  Up 27 minutes  0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp  forem-imgproxy
e646bc30cd18  docker.io/library/postgres:11            postgres              27 minutes ago  Up 27 minutes  0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp  forem-postgresql
e39e6e9f4bbb  docker.io/library/redis:6.0.1            redis-server --ap...  27 minutes ago  Up 27 minutes  0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp  forem-redis
Enter fullscreen mode Exit fullscreen mode

Can anyone help solve the problem? :)

💖 💪 🙅 🚩
nnm
Antonio

Posted on November 6, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

Problem with Rails...
help Problem with Rails...

November 6, 2024