Dashboard no Workie


William WY7WL
 

On Mon, Dec 28, 2020 at 06:41 AM, Steve N4IRS wrote:
/usr/bin/node proxy.js 88 2222

bash: /usr/bin/node: No such file or directory


Steve N4IRS
 

SO, you removed nodejs somehow. Assuming you are running Buster:
apt-get install nodejs node-ws

On 12/28/20 9:42 AM, William KC3CPO wrote:
On Mon, Dec 28, 2020 at 06:41 AM, Steve N4IRS wrote:
/usr/bin/node proxy.js 88 2222

bash: /usr/bin/node: No such file or directory



William WY7WL
 

Well... Looks like I have it installed... In Web_Proxy I have proxy.js but nothing to include the port 88

root@ASLDVSwitch:/opt/Web_Proxy# apt-get install nodejs node-ws

Reading package lists... Done

Building dependency tree       

Reading state information... Done

node-ws is already the newest version (1.1.0+ds1.e6ddaae4-3+deb9u1).

node-ws set to manually installed.

nodejs is already the newest version (4.8.2~dfsg-1).

You might want to run 'apt --fix-broken install' to correct these.

The following packages have unmet dependencies:

 dvswitch-server : Depends: dvswitch-menu but it is not going to be installed

E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

root@ASLDVSwitch:/opt/Web_Proxy# ls

proxy.js

 


Steve N4IRS
 

try:
/usr/bin/nodejs proxy.js 88 2222

On 12/28/20 9:52 AM, William KC3CPO wrote:
Well... Looks like I have it installed... In Web_Proxy I have proxy.js but nothing to include the port 88

root@ASLDVSwitch:/opt/Web_Proxy# apt-get install nodejs node-ws

Reading package lists... Done

Building dependency tree       

Reading state information... Done

node-ws is already the newest version (1.1.0+ds1.e6ddaae4-3+deb9u1).

node-ws set to manually installed.

nodejs is already the newest version (4.8.2~dfsg-1).

You might want to run 'apt --fix-broken install' to correct these.

The following packages have unmet dependencies:

 dvswitch-server : Depends: dvswitch-menu but it is not going to be installed

E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

root@ASLDVSwitch:/opt/Web_Proxy# ls

proxy.js

 



William WY7WL
 

root@ASLDVSwitch:/opt/Web_Proxy# /usr/bin/nodejs proxy.js 88 2222

/opt/Web_Proxy/proxy.js:12

const { exit } = require('process');

      ^

 

SyntaxError: Unexpected token {

    at exports.runInThisContext (vm.js:53:16)

    at Module._compile (module.js:373:25)

    at Object.Module._extensions..js (module.js:416:10)

    at Module.load (module.js:343:32)

    at Function.Module._load (module.js:300:12)

    at Function.Module.runMain (module.js:441:10)

    at startup (node.js:140:18)

    at node.js:1043:3


Steve N4IRS
 

What version of Debian?

On 12/28/20 9:59 AM, William KC3CPO wrote:

root@ASLDVSwitch:/opt/Web_Proxy# /usr/bin/nodejs proxy.js 88 2222

/opt/Web_Proxy/proxy.js:12

const { exit } = require('process');

      ^

 

SyntaxError: Unexpected token {

    at exports.runInThisContext (vm.js:53:16)

    at Module._compile (module.js:373:25)

    at Object.Module._extensions..js (module.js:416:10)

    at Module.load (module.js:343:32)

    at Function.Module._load (module.js:300:12)

    at Function.Module.runMain (module.js:441:10)

    at startup (node.js:140:18)

    at node.js:1043:3



William WY7WL
 

debian 9 stretch


Steve N4IRS
 

On 12/28/20 10:01 AM, William KC3CPO wrote:
debian 9 stretch


William WY7WL
 

hummm... well that install is fighting me... (I'm a pretty basic cmd line user) 

root@ASLDVSwitch:/etc# apt install nodejs

Reading package lists... Done

Building dependency tree       

Reading state information... Done

You might want to run 'apt --fix-broken install' to correct these.

The following packages have unmet dependencies:

 dvswitch-server : Depends: dvswitch-menu but it is not going to be installed

 node-ws : Depends: nodejs-abi-46

 nodejs : Conflicts: nodejs-dev

 nodejs-dev : Depends: nodejs (= 4.8.2~dfsg-1) but 10.23.0-1nodesource1 is to be installed

E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution)


Steve N4IRS
 

apt --fix-broken install

On 12/28/20 10:22 AM, William KC3CPO wrote:
hummm... well that install is fighting me... (I'm a pretty basic cmd line user) 

root@ASLDVSwitch:/etc# apt install nodejs

Reading package lists... Done

Building dependency tree       

Reading state information... Done

You might want to run 'apt --fix-broken install' to correct these.

The following packages have unmet dependencies:

 dvswitch-server : Depends: dvswitch-menu but it is not going to be installed

 node-ws : Depends: nodejs-abi-46

 nodejs : Conflicts: nodejs-dev

 nodejs-dev : Depends: nodejs (= 4.8.2~dfsg-1) but 10.23.0-1nodesource1 is to be installed

E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution)



William WY7WL
 

Do you want to continue? [Y/n] y

(Reading database ... 87525 files and directories currently installed.)

Preparing to unpack .../dvswitch-menu_1.6.1-20201220-113_all.deb ...

Unpacking dvswitch-menu (1.6.1-20201220-113) ...

dpkg: error processing archive /var/cache/apt/archives/dvswitch-menu_1.6.1-20201220-113_all.deb (--unpack):

 trying to overwrite '/usr/local/dvs/init_config.sh', which is also in package dvswitch-base 1.5-20200427-21

Errors were encountered while processing:

 /var/cache/apt/archives/dvswitch-menu_1.6.1-20201220-113_all.deb

E: Sub-process /usr/bin/dpkg returned an error code (1)


Steve N4IRS
 

show me apt-get update

On 12/28/20 10:27 AM, William KC3CPO wrote:

Do you want to continue? [Y/n] y

(Reading database ... 87525 files and directories currently installed.)

Preparing to unpack .../dvswitch-menu_1.6.1-20201220-113_all.deb ...

Unpacking dvswitch-menu (1.6.1-20201220-113) ...

dpkg: error processing archive /var/cache/apt/archives/dvswitch-menu_1.6.1-20201220-113_all.deb (--unpack):

 trying to overwrite '/usr/local/dvs/init_config.sh', which is also in package dvswitch-base 1.5-20200427-21

Errors were encountered while processing:

 /var/cache/apt/archives/dvswitch-menu_1.6.1-20201220-113_all.deb

E: Sub-process /usr/bin/dpkg returned an error code (1)



William WY7WL
 

I found some hands on help.... This was above my skillz... 

Apparently when I updated dvswitch server some of the old dvswitch dependencies where still hanging around. So, we removed dvswitch server and dvswitch base then installed server back again. 

The dashboard was a conflict with my AllStar node... lighttpd needed disabled so Apache would pick up the dashboard. 

All working now. 

Whew.