Join the conversation

Sign in to join this conversation, and others like it, in the communities you care about.

Wekan

Wekan is an open-source kanban board (Trello like) which allows a card-based task and to-do management.

Wekan / General

Raspberry Pi 4 Supervisor

Raspberry Pi 4 Supervisor

Wekan / General · November 28, 2019 at 4:04pm

Hey I'm trying to setup wekan on my Raspi4 running Ubuntu 19.10 64bit. Everything worked fine. I can run it using the start-wekan.sh script without problems. When I try to run the shell script via supervisor i get the following error.

## There is an issue with `node-fibers` ##
`/home/ubuntu/native/intranet/wekan/bundle/programs/server/node_modules/fibers/bin/linux-arm64-64-glibc/fibers.node` is missing.
Try running this to fix the issue: /usr/bin/node /home/ubuntu/native/intranet/wekan/bundle/programs/server/node_modules/fibers/build
Error: Cannot find module '/home/ubuntu/native/intranet/wekan/bundle/programs/server/node_modules/fibers/bin/linux-arm64-64-glibc/fibers'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object.<anonymous> (/home/ubuntu/native/intranet/wekan/bundle/programs/server/node_modules/fibers/fibers.js:14:39)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
/home/ubuntu/native/intranet/wekan/bundle/programs/server/node_modules/fibers/fibers.js:23
throw new Error('Missing binary. See message above.');
^
Error: Missing binary. See message above.
at Object.<anonymous> (/home/ubuntu/native/intranet/wekan/bundle/programs/server/node_modules/fibers/fibers.js:23:9)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object.<anonymous> (/home/ubuntu/native/intranet/wekan/bundle/programs/server/boot.js:1:75)
at Module._compile (internal/modules/cjs/loader.js:689:30)

I already reinstalled fibers it creates the fibers node within the following folder /opt/wekan/bundle/programs/server/node_modules/fibers/bin/linux-arm64-57-glibc/fibers.node

I'm not familiar with node what can I do to run wekan with supervisor?


November 29, 2019 at 6:16am

Please add your current supervisor Wekan settings script

    • reply
    • like

    So instead of start-wekan.sh, start node directly, and settings in environment

      • reply
      • like

      I knew I forgot something. Thats my Supervisor script.

      [program:wekan]
      directory = /opt/wekan
      user = wekan
      command = ./start-wekan.sh
      stdout_logfile = /var/log/supervisord/wekan_access.log
      stderr_logfile = /var/log/supervisord/wekan_error.log
        Edited
        • reply
        • like

        Does it work now?

          • reply
          • like

          I do not have RasPi4 yet. I make bundle on RasPi3b+

            • reply
            • like

            Does that user wekan exist? Did you do: sudo chown -R wekan:wekan /opt/wekan

              • reply
              • like

              I used supervisor some years ago, currently I just use systemd or starting script that has bash loop at /etc/rc.local

                • reply
                • like

                There is systemd example

                  • reply
                  • like

                  nope same when I start the node direct with the supervisor script. wekan user exists and is the owner of the wekan directory and files. The strange thing is that it works when I start the script in my shell. I'll try systemd.

                    Edited
                    • reply
                    • like

                    Same Error when I start the Node with systemd. I dont know why it works when I run the shell script but when I automate the start it searches for the "linux-arm64-64-glibc" folder not for the existing "linux-arm64-57-glibc"

                      • reply
                      • like

                      November 29, 2019 at 12:15pm

                      Maybe your newer Ubuntu 19.10 uses newer libc? You could try creating new bundle by downloading maintainer-make-bundle.sh from https://releases.wekan.team/raspi3/ and running that script like this: ./maintainer-make-bundle.sh 3.56

                        • reply
                        • like

                        Anyway, I today bough new microSD card so I will try installing Ubuntu 19.10 to my RasPi3

                          • reply
                          • like

                          it was some cheap black friday offer at local shop

                            • reply
                            • like

                            November 29, 2019 at 2:10pm

                            Thank you for your effort. I'll try that on Monday

                              • reply
                              • like

                              December 3, 2019 at 6:53am

                              Hey I tried your script but it didnt work. the error above persists

                                • reply
                                • like

                                December 16, 2019 at 7:59am

                                @xet7 did you get wekan to run?

                                  • reply
                                  • like

                                  still no luck on my side

                                    • reply
                                    • like

                                    I did install Wekan to RasPi4 but I did not try supervisor or systemd yet

                                      • reply
                                      • like