I have a lemmy-ui instance working correctly, fresh ansible install. I haven’t configured it yet, but it’s up and running and test posts work fine.

I’m mostly interested in lemmyBB, so I installed that according to “Alongside existing Lemmy instance (native)” install instructions.

Everything seems to work fine during install, systemctl status lemmy_bb.service shows:

Jan 17 06:51:57 vps-f7b29755 lemmy_bb[484]: [2023-01-17T06:51:57Z INFO  rocket::launch_] (FileServer: assets) GET /assets/<path..> [10]
Jan 17 06:51:57 vps-f7b29755 lemmy_bb[484]: [2023-01-17T06:51:57Z INFO  rocket::launch] 📡 Fairings:
Jan 17 06:51:57 vps-f7b29755 lemmy_bb[484]: [2023-01-17T06:51:57Z INFO  rocket::launch_] Templating (ignite, liftoff)
Jan 17 06:51:57 vps-f7b29755 lemmy_bb[484]: [2023-01-17T06:51:57Z INFO  rocket::launch_] Shield (liftoff, response, singleton)
Jan 17 06:51:57 vps-f7b29755 lemmy_bb[484]: [2023-01-17T06:51:57Z INFO  rocket::launch_] Site data fetcher (request)
Jan 17 06:51:57 vps-f7b29755 lemmy_bb[484]: [2023-01-17T06:51:57Z INFO  rocket::shield::shield] 🛡️ Shield:
Jan 17 06:51:57 vps-f7b29755 lemmy_bb[484]: [2023-01-17T06:51:57Z INFO  rocket_dyn_templates::fairing] 📐 Templating:
Jan 17 06:51:57 vps-f7b29755 lemmy_bb[484]: [2023-01-17T06:51:57Z INFO  rocket::launch] 🚀 Rocket has launched from http://127.0.0.1:8703

When checking in with a browser, I get 502 Bad Gateway.

error.log

2023/01/17 07:05:13 [error] 528#528: *33 connect() failed (111: Connection refused) while connecting to upstream, client: 205.178.101.86, server: forums.domain.com, request: "GET / HTTP/2.0"$2023/01/17 07:05:13 [error] 528#528: *33 connect() failed (111: Connection refused) while connecting to upstream, client: 205.178.101.86, server: forums.domain.com, request: "GET /favicon.ic$2023/01/17 07:05:32 [error] 528#528: *50 connect() failed (111: Connection refused) while connecting to upstream, client: 205.178.101.86, server: forums.domain.com, request: "GET / HTTP/2.0"$2023/01/17 07:05:32 [error] 528#528: *50 connect() failed (111: Connection refused) while connecting to upstream, client: 205.178.101.86, server: forums.domain.com, request: "GET /favicon.ic$
  • loathsome dongeater@lemmygrad.ml
    link
    fedilink
    arrow-up
    2
    ·
    2 years ago

    Are you using docker at all? If yes, can you share the output of docker ps?

    Also, can you share your /etc/systemd/system/lemmy_bb.service file?

    • sub_ubiOP
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      2 years ago

      Thank you for sticking with me!

      docker ps

      CONTAINER ID   IMAGE                        COMMAND                  CREATED        STATUS          PORTS                                NAMES
      88a017ba5903   dessalines/lemmy-ui:0.16.7   "docker-entrypoint.s…"   35 hours ago   Up 22 minutes   127.0.0.1:8601->1234/tcp             itsdomaincom_lemmy-ui_1
      1299fcaeb678   dessalines/lemmy:0.16.7      "/app/lemmy"             35 hours ago   Up 22 minutes   127.0.0.1:30850->8536/tcp            itsdomaincom_lemmy_1
      145c7d2f16f2   mwader/postfix-relay         "/root/run"              35 hours ago   Up 22 minutes   25/tcp                               itsdomaincom_postfix_1
      737381a2939c   asonix/pictrs:0.3.1          "/sbin/tini -- /usr/…"   35 hours ago   Up 22 minutes   6669/tcp, 127.0.0.1:2112->8080/tcp   itsdomaincom_pictrs_1
      0f907e51bb9d   postgres:12-alpine           "docker-entrypoint.s…"   35 hours ago   Up 22 minutes   5432/tcp                             itsdomaincom_postgres_1
      

      lemmy_bb.service

      [Unit]
      Description=lemmy_bb
      After=network.target
      
      [Service]
      Type=simple
      WorkingDirectory=/opt/lemmyBB/
      Environment="LEMMYBB_BACKEND=http://127.0.0.1:8536"
      Environment="LEMMYBB_LISTEN_ADDRESS=127.0.0.1:8703"
      Environment="LEMMYBB_INCREASED_RATE_LIMIT=1"
      Environment="LD_PRELOAD=libjemalloc.so"
      ExecStart=/opt/lemmyBB/target/release/lemmy_bb
      Restart=always
      
      [Install]
      WantedBy=multi-user.target
      
        • sub_ubiOP
          link
          fedilink
          arrow-up
          1
          ·
          2 years ago

          New error, getting closer I think

          500: Internal Server Error
          
          The server encountered an internal error while processing this request.
          Rocket 
          
            • sub_ubiOP
              link
              fedilink
              arrow-up
              1
              ·
              edit-2
              2 years ago

              from journalctl -u lemmy_bb.service

              Jan 19 06:55:42 vps-f7b29755 systemd[1]: Started lemmy_bb.
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: ERROR: ld.so: object 'libjemalloc.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch] 🔧 Configured for release.
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch_] address: 127.0.0.1
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch_] port: 8703
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch_] workers: 1
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch_] ident: Rocket
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch_] limits: bytes = 8KiB, data-form = 2MiB, file = 1MiB, form = 32KiB, json = 1MiB, msgpack = 1MiB, string >
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch_] temp dir: /tmp
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch_] http/2: false
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch_] keep-alive: 5s
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch_] tls: disabled
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch_] shutdown: ctrlc = true, force = true, signals = [SIGTERM], grace = 2s, mercy = 3s
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch_] log level: critical
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch_] cli colors: true
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch] 📬 Routes:
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch_] (index) GET /
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch_] (do_post) POST /post?<f>&<edit>
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch_] (login) GET /login
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch_] (do_login) POST /login
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch_] (setup) GET /setup
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch_] (do_setup) POST /setup
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch_] (legal) GET /legal
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch_] (logout) GET /logout
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch_] (search) GET /search?<keywords>
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch_] (report) GET /report?<thread>&<reply>
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch_] (do_report) POST /report?<thread>&<reply>
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch_] (do_comment) POST /comment?<t>&<edit>&<reply>
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch_] (register) GET /register
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch_] (do_register) POST /register
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch_] (inboxes) POST /<path..>
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch_] (view_forum) GET /view_forum?<f>&<page>&<action>
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch_] (view_topic) GET /view_topic?<t>&<page>
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch_] (post_editor) GET /post_editor?<f>&<edit>
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch_] (view_profile) GET /view_profile?<u>
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch_] (edit_profile) GET /edit_profile
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch_] (do_edit_profile) POST /edit_profile
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch_] (comment_editor) GET /comment_editor?<t>&<edit>&<reply>
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch_] (community_list) GET /community_list?<mode>&<page>
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch_] (private_messages_list) GET /private_messages
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch_] (do_send_private_message) POST /send_private_message?<u>
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch_] (private_messages_thread) GET /private_messages_thread?<u>
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch_] (private_message_editor) GET /private_messages_editor?<u>
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch_] (mark_all_notifications_read) POST /mark_all_notifications_read
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch_] (apub_community) GET /c/<name>
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch_] (apub_user) GET /u/<name>
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch_] (apub_post) GET /post/<id>
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch_] (apub_comment) GET /comment/<t>
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch_] (feeds) GET /feeds/<path..>?<query..>
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch_] (node_info) GET /nodeinfo/<path..>
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch_] (well_known) GET /.well-known/<path..>?<query..>
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch_] (api_site) GET /api/v3/site
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch_] (image) GET /pictrs/image/<file>?<params..>
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch_] (FileServer: assets) GET /assets/<path..> [10]
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch] 📡 Fairings:
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch_] Shield (liftoff, response, singleton)
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch_] Site data fetcher (request)
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch_] Templating (ignite, liftoff)
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::shield::shield] 🛡️ Shield:
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket_dyn_templates::fairing] 📐 Templating:
              Jan 19 06:55:42 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:55:42Z INFO  rocket::launch] 🚀 Rocket has launched from http://127.0.0.1:8703
              

              edit: ok, this popped up now, looks interesting:

              Jan 19 06:58:49 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:58:49Z WARN  lemmy_bb::site_fairing] missing field `instance_id` at line 1 column 1354
              Jan 19 06:58:49 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:58:49Z INFO  rocket::server] GET / text/html:
              Jan 19 06:58:49 vps-f7b29755 lemmy_bb[594]: thread 'rocket-worker-thread' panicked at 'called `Option::unwrap()` on a `None` value', src/site_fairing.rs:62:53
              Jan 19 06:58:49 vps-f7b29755 lemmy_bb[594]: note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
              Jan 19 06:58:49 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:58:49Z ERROR _] Handler index panicked.
              Jan 19 06:58:49 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:58:49Z WARN  _] A panic is treated as an internal server error.
              Jan 19 06:58:49 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:58:49Z WARN  _] No 500 catcher registered. Using Rocket default.
              Jan 19 06:58:49 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:58:49Z WARN  lemmy_bb::site_fairing] missing field `instance_id` at line 1 column 1354
              Jan 19 06:58:49 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:58:49Z INFO  rocket::server] GET /favicon.ico image/avif:
              Jan 19 06:58:49 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:58:49Z ERROR _] No matching routes for GET /favicon.ico image/avif.
              Jan 19 06:58:49 vps-f7b29755 lemmy_bb[594]: [2023-01-19T06:58:49Z WARN  _] No 404 catcher registered. Using Rocket default.
              
              • loathsome dongeater@lemmygrad.ml
                link
                fedilink
                arrow-up
                3
                ·
                2 years ago

                I am not really sure what is causing this. Sorry about this. It could be because of incompatible versions of lemmybb and lemmy being used. Maybe @nutomic@lemmy.ml can help with this because it goes beyond my knowledge of docker. You can check lemmy logs to see if it is receiving request from lemmybb. Apart from it I am not sure what to do.

                • sub_ubiOP
                  link
                  fedilink
                  arrow-up
                  1
                  ·
                  2 years ago

                  Thank you for trying. If you or anyone have a VPS for sale with lemmybb pre-installed, I’m in the market!

              • nutomicA
                link
                fedilink
                arrow-up
                1
                ·
                2 years ago

                Looks like you are running the dev branch of lemmybb which requires Lemmy 0.17 (not released yet). For now you need to run lemmybb release 0.1.2.

                • sub_ubiOP
                  link
                  fedilink
                  arrow-up
                  2
                  ·
                  2 years ago

                  I did a git reset to the release tag, recompiled, and success!! Thank you @nutomic and @moist-leninist

                  After I play with the color scheme a bit, I’ll be introducing some folks to the fediverse.