Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Cannot find module './server' #162

Open
mcvince79 opened this issue May 11, 2023 · 18 comments
Open

Error: Cannot find module './server' #162

mcvince79 opened this issue May 11, 2023 · 18 comments

Comments

@mcvince79
Copy link

Hello,
I just installed navidrome on a nas asustor via portainer. It works fine. Bonob is also installed on portainer. It works but in the logs I always have the following error :

node:internal/modules/cjs/loader:1029

throw err;
^
Error: Cannot find module './server'
Require stack:

  • /bonob/src/app.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1026:15)
    at Function.Module._load (node:internal/modules/cjs/loader:871:27)
    at Module.require (node:internal/modules/cjs/loader:1098:19)
    at require (node:internal/modules/cjs/helpers:108:18)
    at Object. (/bonob/src/app.js:32:34)
    at Module._compile (node:internal/modules/cjs/loader:1196:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1250:10)
    at Module.load (node:internal/modules/cjs/loader:1074:32)
    at Function.Module._load (node:internal/modules/cjs/loader:909:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [ '/bonob/src/app.js' ]

Please help me

@simojenki
Copy link
Owner

So it works, but you see that error?

How often does the error happen?

@mcvince79
Copy link
Author

No it doesn't work at all! It's just installed.

@simojenki
Copy link
Owner

Which docker image/version are you using?

@mcvince79
Copy link
Author

app docker asustor

@simojenki
Copy link
Owner

I don't know what an asustor is, nor what instruction set it uses. Amd64? Arm??

@mcvince79
Copy link
Author

Arm v7 or v8

@mcvince79
Copy link
Author

Please help me. Navidrome is ok. Bonob log same error :

Error: Cannot find module './server'
Require stack:

  • /bonob/src/app.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1026:15)
    at Function.Module._load (node:internal/modules/cjs/loader:871:27)
    at Module.require (node:internal/modules/cjs/loader:1098:19)
    at require (node:internal/modules/cjs/helpers:108:18)
    at Object. (/bonob/src/app.js:32:34)
    at Module._compile (node:internal/modules/cjs/loader:1196:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1250:10)
    at Module.load (node:internal/modules/cjs/loader:1074:32)
    at Function.Module._load (node:internal/modules/cjs/loader:909:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [ '/bonob/src/app.js' ]
    }

@mcvince79
Copy link
Author

i use portainer in asustor nas arm7 or 8

@mcvince79
Copy link
Author

bonob is running. I can't connect to address 4534. Still the same error.

Error: Cannot find module './server'
Require stack:

/bonob/src/app.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1026:15)
at Function.Module._load (node:internal/modules/cjs/loader:871:27)
at Module.require (node:internal/modules/cjs/loader:1098:19)
at require (node:internal/modules/cjs/helpers:108:18)
at Object. (/bonob/src/app.js:32:34)
at Module._compile (node:internal/modules/cjs/loader:1196:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1250:10)
at Module.load (node:internal/modules/cjs/loader:1074:32)
at Function.Module._load (node:internal/modules/cjs/loader:909:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/bonob/src/app.js' ]

Please help me

@mcvince79
Copy link
Author

Nobody ?

@simojenki
Copy link
Owner

Have you tried running this on a different machine? Plenty of people use this project without reporting this issue, so perhaps there is something in your setup that is causing it?

@mcvince79
Copy link
Author

Hello,

I'm getting to the point. Another mistake. The bonob service is well recognized in the sonos app. But I can't connect. Always the same message:

check your network connection. A problem occurred during startup. Please check your network connection, then try again.

@mcvince79
Copy link
Author

Hello,

Please help

@simojenki
Copy link
Owner

This may because you have not set BNB_URL correctly. It must be an address that is accessible by the Sonos devices

@mcvince79
Copy link
Author

I've got it! Last question: what environment variable should I create so that the service never stops? I'm using docker desktop in windows 11. Thanks again for everything.

@mcvince79
Copy link
Author

Because when I turn off my computer, I have to recreate the container every time.

@mcvince79
Copy link
Author

In docker desktop, you can only create a container and nothing else.

@simojenki
Copy link
Owner

That's a windows/docker desktop thing, you need to work out how to get windows to start docker on boot. I'm sure it will be possible, however I don't use windows so how exactly I'm not sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants