myspeed icon indicating copy to clipboard operation
myspeed copied to clipboard

[Bug] myspeed doesnt start in lxc

Open Ondjultomte opened this issue 6 months ago • 13 comments

General

  • [x] I have updated to the latest version of MySpeed.
  • [x] My bug has not been reported yet.

The Bug

just ran the dev install script

un 12 23:34:51 myspeed node[1346]: node:internal/modules/cjs/loader:1215 Jun 12 23:34:51 myspeed node[1346]: throw err; Jun 12 23:34:51 myspeed node[1346]: ^ Jun 12 23:34:51 myspeed node[1346]: Error: Cannot find module '/opt/myspeed/server' Jun 12 23:34:51 myspeed node[1346]: at Module._resolveFilename (node:internal/modules/cjs/loader:1212:15) Jun 12 23:34:51 myspeed node[1346]: at Module._load (node:internal/modules/cjs/loader:1043:27) Jun 12 23:34:51 myspeed node[1346]: at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:164:12) Jun 12 23:34:51 myspeed node[1346]: at node:internal/main/run_main_module:28:49 { Jun 12 23:34:51 myspeed node[1346]: code: 'MODULE_NOT_FOUND', Jun 12 23:34:51 myspeed node[1346]: requireStack: [] Jun 12 23:34:51 myspeed node[1346]: } Jun 12 23:34:51 myspeed node[1346]: Node.js v20.19.2 Jun 12 23:34:51 myspeed systemd[1]: myspeed.service: Main process exited, code=exited, status=1/FAILURE Jun 12 23:34:51 myspeed systemd[1]: myspeed.service: Failed with result 'exit-code'. Jun 12 23:34:51 myspeed systemd[1]: myspeed.service: Scheduled restart job, restart counter is at 3. Jun 12 23:34:51 myspeed systemd[1]: Stopped myspeed.service - MySpeed. Jun 12 23:34:51 myspeed systemd[1]: Started myspeed.service - MySpeed. Jun 12 23:34:51 myspeed node[1353]: node:internal/modules/cjs/loader:1215 Jun 12 23:34:51 myspeed node[1353]: throw err; Jun 12 23:34:51 myspeed node[1353]: ^ Jun 12 23:34:51 myspeed node[1353]: Error: Cannot find module '/opt/myspeed/server' Jun 12 23:34:51 myspeed node[1353]: at Module._resolveFilename (node:internal/modules/cjs/loader:1212:15) Jun 12 23:34:51 myspeed node[1353]: at Module._load (node:internal/modules/cjs/loader:1043:27) Jun 12 23:34:51 myspeed node[1353]: at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:164:12) Jun 12 23:34:51 myspeed node[1353]: at node:internal/main/run_main_module:28:49 { Jun 12 23:34:51 myspeed node[1353]: code: 'MODULE_NOT_FOUND', Jun 12 23:34:51 myspeed node[1353]: requireStack: [] Jun 12 23:34:51 myspeed node[1353]: } Jun 12 23:34:51 myspeed node[1353]: Node.js v20.19.2 Jun 12 23:34:51 myspeed systemd[1]: myspeed.service: Main process exited, code=exited, status=1/FAILURE Jun 12 23:34:51 myspeed systemd[1]: myspeed.service: Failed with result 'exit-code'. Jun 12 23:34:51 myspeed systemd[1]: myspeed.service: Scheduled restart job, restart counter is at 4. Jun 12 23:34:51 myspeed systemd[1]: Stopped myspeed.service - MySpeed. Jun 12 23:34:51 myspeed systemd[1]: Started myspeed.service - MySpeed. Jun 12 23:34:51 myspeed node[1360]: node:internal/modules/cjs/loader:1215 Jun 12 23:34:51 myspeed node[1360]: throw err; Jun 12 23:34:51 myspeed node[1360]: ^ Jun 12 23:34:51 myspeed node[1360]: Error: Cannot find module '/opt/myspeed/server' Jun 12 23:34:51 myspeed node[1360]: at Module._resolveFilename (node:internal/modules/cjs/loader:1212:15) Jun 12 23:34:51 myspeed node[1360]: at Module._load (node:internal/modules/cjs/loader:1043:27) Jun 12 23:34:51 myspeed node[1360]: at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:164:12) Jun 12 23:34:51 myspeed node[1360]: at node:internal/main/run_main_module:28:49 { Jun 12 23:34:51 myspeed node[1360]: code: 'MODULE_NOT_FOUND', Jun 12 23:34:51 myspeed node[1360]: requireStack: [] Jun 12 23:34:51 myspeed node[1360]: } Jun 12 23:34:51 myspeed node[1360]: Node.js v20.19.2 Jun 12 23:34:51 myspeed systemd[1]: myspeed.service: Main process exited, code=exited, status=1/FAILURE Jun 12 23:34:51 myspeed systemd[1]: myspeed.service: Failed with result 'exit-code'. Jun 12 23:34:52 myspeed systemd[1]: myspeed.service: Scheduled restart job, restart counter is at 5. Jun 12 23:34:52 myspeed systemd[1]: Stopped myspeed.service - MySpeed. Jun 12 23:34:52 myspeed systemd[1]: myspeed.service: Start request repeated too quickly. Jun 12 23:34:52 myspeed systemd[1]: myspeed.service: Failed with result 'exit-code'. Jun 12 23:34:52 myspeed systemd[1]: Failed to start myspeed.service - MySpeed.

What device are you using to access the page?

In the browser

Which operating system is your MySpeed instance running on?

Linux

Ondjultomte avatar Jun 12 '25 21:06 Ondjultomte

Hi @Ondjultomte Are you referring to community-scripts lxc installer? I'm a maintainer there and just stumbled upon this, if it's from our install, please open an issue at our repo. Otherwise feel free to ignore this message :)

CrazyWolf13 avatar Jun 16 '25 04:06 CrazyWolf13

Im having the same issue. I installed using the LXC script, and at first it worked, but im unable to access the ip address.

cloudbr34k84 avatar Jun 20 '25 04:06 cloudbr34k84

@cloudbr34k84 please answer my question, are you using this https://community-scripts.github.io/ProxmoxVE/ ?

CrazyWolf13 avatar Jun 20 '25 05:06 CrazyWolf13

@cloudbr34k84 please answer my question, are you using this https://community-scripts.github.io/ProxmoxVE/ ?

Hey sorry, using this https://community-scripts.github.io/ProxmoxVE/scripts?id=myspeed Install Source https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/install/myspeed-install.sh

cloudbr34k84 avatar Jun 20 '25 06:06 cloudbr34k84

@cloudbr34k84 and potentially @Ondjultomte too alright, then I guess we should continue over there. please open an issue on our repo

https://github.com/community-scripts/ProxmoxVE/issues

CrazyWolf13 avatar Jun 20 '25 06:06 CrazyWolf13

@cloudbr34k84 and potentially @Ondjultomte too alright, then I guess we should continue over there. please open an issue on our repo

https://github.com/community-scripts/ProxmoxVE/issues

@CrazyWolf13 i just tried to create the issue and it was automatically closed saying i used an old script, even though thats the script i copied from https://community-scripts.github.io/ProxmoxVE/scripts?id=myspeed??

cloudbr34k84 avatar Jun 20 '25 10:06 cloudbr34k84

ah yeah that was the bpt because you mentioned the old repo. Should be reopnened

CrazyWolf13 avatar Jun 20 '25 10:06 CrazyWolf13

Hello everyone. When installing from the repository https://community-scripts.github.io/ProxmoxVE/scripts?id=myspeed it does not work, namely, the web interface does not start.

dumbodumbos avatar Aug 06 '25 07:08 dumbodumbos

@dumbodumbos then report at community-scripts. for me it' working.

CrazyWolf13 avatar Aug 06 '25 08:08 CrazyWolf13

@dumbodumbos then report at community-scripts. for me it' working.

I agree. The problem is clearly in the script that builds the container

dumbodumbos avatar Aug 06 '25 09:08 dumbodumbos

I agree with @dumbodumbos; mySpeed stopped listening for connections on its port. As a result, the web UI is not accessible.

root@myspeed:~# systemctl status myspeed
● myspeed.service - MySpeed
     Loaded: loaded (/etc/systemd/system/myspeed.service; enabled; preset: enabled)
     Active: active (running) since Sun 2025-09-21 21:26:46 IST; 9h ago
   Main PID: 338 (node)
      Tasks: 11 (limit: 18929)
     Memory: 35.7M
        CPU: 1.392s
     CGroup: /system.slice/myspeed.service
             └─338 /usr/bin/node server

As you can see, even though the main service is running when i run root@myspeed:~# ss -tlnp | grep 5216 it shows no output.

The web server component likely crashed or stopped listening for connections internally. And the only way to get the webui running is to restart the lxc, but after working for a few hours, the same issue appears of the webui not being accessible.

theamanstark avatar Sep 22 '25 01:09 theamanstark

I confirm the problem. MySpeed stops listening to the port

dumbodumbos avatar Sep 22 '25 08:09 dumbodumbos

The web server component likely crashed or stopped listening for connections internally. And the only way to get the webui running is to restart the lxc, but after working for a few hours, the same issue appears of the webui not being accessible.

Rebooting doesn't help me

root@myspeed:~# systemctl status myspeed
● myspeed.service - MySpeed
     Loaded: loaded (/etc/systemd/system/myspeed.service; enabled; preset: enabled)
     Active: active (running) since Wed 2025-10-01 14:31:06 MSK; 2min 52s ago
   Main PID: 145 (node)
      Tasks: 11 (limit: 38220)
     Memory: 102.1M
        CPU: 1.168s
     CGroup: /system.slice/myspeed.service
             └─145 /usr/bin/node server

Oct 01 14:31:06 myspeed systemd[1]: Started myspeed.service - MySpeed.
Oct 01 14:31:08 myspeed node[145]: Successfully connected to the database file
Oct 01 14:31:10 myspeed node[145]: Integration "discord" loaded successfully
Oct 01 14:31:10 myspeed node[145]: Integration "gotify" loaded successfully
Oct 01 14:31:10 myspeed node[145]: Integration "healthChecks" loaded successfully
Oct 01 14:31:10 myspeed node[145]: Integration "pushover" loaded successfully
Oct 01 14:31:10 myspeed node[145]: Integration "telegram" loaded successfully
Oct 01 14:31:10 myspeed node[145]: Integration "webhook" loaded successfully
Oct 01 14:31:10 myspeed node[145]: Looking for network interfaces...
Oct 01 14:31:10 myspeed node[145]: Found interface eth0 with IP 192.168.1.98
root@myspeed:~# 
root@myspeed:~# 
root@myspeed:~# 
root@myspeed:~# ss -tlnp | grep 5216
root@myspeed:~# 

dumbodumbos avatar Oct 01 '25 11:10 dumbodumbos