simojenki / bonob

sonos SMAPI implementation allowing integrating different music sources with sonos.
GNU General Public License v3.0
208 stars 15 forks source link

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

Open mcvince79 opened 1 year ago

mcvince79 commented 1 year ago

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:

Please help me

simojenki commented 1 year ago

So it works, but you see that error?

How often does the error happen?

mcvince79 commented 1 year ago

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

simojenki commented 1 year ago

Which docker image/version are you using?

mcvince79 commented 1 year ago

app docker asustor

simojenki commented 1 year ago

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

mcvince79 commented 1 year ago

Arm v7 or v8

mcvince79 commented 1 year ago

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

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

mcvince79 commented 1 year ago

i use portainer in asustor nas arm7 or 8

mcvince79 commented 1 year ago

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 commented 1 year ago

Nobody ?

simojenki commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

Hello,

Please help

simojenki commented 1 year ago

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

mcvince79 commented 1 year ago

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 commented 1 year ago

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

mcvince79 commented 1 year ago

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

simojenki commented 1 year ago

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.