NuSkooler / enigma-bbs

ENiGMA½ BBS Software
https://nuskooler.github.io/enigma-bbs/
BSD 2-Clause "Simplified" License
529 stars 104 forks source link

Can't start BBS #512

Closed Sutehktd closed 9 months ago

Sutehktd commented 9 months ago

The install seemed to go OK and I did new config of BBS.

however when I try to start it with main.js I get a bunch of errors

'/home/pi4e/enigma-bbs/core/file_area_web.js',
'/home/pi4e/enigma-bbs/core/file_base_web_download_manager.js',
'/home/pi4e/enigma-bbs/core/module_util.js',
'/home/pi4e/enigma-bbs/core/msg_network.js',
'/home/pi4e/enigma-bbs/core/message_area.js',
'/home/pi4e/enigma-bbs/core/predefined_mci.js',
'/home/pi4e/enigma-bbs/core/color_codes.js',
'/home/pi4e/enigma-bbs/core/view.js',
'/home/pi4e/enigma-bbs/core/text_view.js',
'/home/pi4e/enigma-bbs/core/mci_view_factory.js',
'/home/pi4e/enigma-bbs/core/view_controller.js',
'/home/pi4e/enigma-bbs/core/theme.js',
'/home/pi4e/enigma-bbs/core/bbs.js',
'/home/pi4e/enigma-bbs/main.js'

] } innerError Error: Cannot find module '../build/Debug/pty.node' Require stack:

Error: Callback was already called. at /home/pi4e/enigma-bbs/node_modules/async/dist/async.js:324:36 at /home/pi4e/enigma-bbs/core/listening_server.js:59:32 at /home/pi4e/enigma-bbs/core/module_util.js:120:28 at loaded (/home/pi4e/enigma-bbs/core/module_util.js:93:20) at loadModuleEx (/home/pi4e/enigma-bbs/core/module_util.js:76:12) at loadModule (/home/pi4e/enigma-bbs/core/module_util.js:90:5) at /home/pi4e/enigma-bbs/core/module_util.js:111:17 at /home/pi4e/enigma-bbs/node_modules/async/dist/async.js:2588:44 at eachOfArrayLike (/home/pi4e/enigma-bbs/node_modules/async/dist/async.js:506:13) at eachOf (/home/pi4e/enigma-bbs/node_modules/async/dist/async.js:626:16)

Node.js v20.6.1 pi4e@raspberrypi:~/enigma-bbs $

cognitivegears commented 9 months ago

Hi @Sutehktd thanks for the issue. From the info, I believe this is a known issue, reported in #490 . We need to update our version of node-pty to work with Node versions greater than (I believe) v20.5. I have a PR in for that, but unfortunately there is a little more work to do to finish. I'll try to prioritize it, but in the meantime can you try it with another version of Node.js - v18 is what I use personally. If you don't want to replace your node altogether, a couple of options for using Enigma with a different version of node:

1) Use nvm to manage multiple node versions, see: https://www.digitalocean.com/community/tutorials/nodejs-node-version-manager 2) Run Enigma using the Docker method, see: https://nuskooler.github.io/enigma-bbs/installation/docker.html

Thanks again and we'll try to get that resolved as soon as possible!

Sutehktd commented 9 months ago

Thank you for responding so quickly.

I deleted my whole enigma-bbs folder and started with manual installation.

NVM wanted an update along the way I said yes and the new install works.

I have a base enigma board running on a pi4 64-bit pios.

I run an Image BBS board on a vice emulation. This is a bit different.

Currently trying to ssh in so I can use the waiting for call function. Cant seem to get ssh working but its probably my lack of linux knowledge.

Thanks again.

cognitivegears commented 9 months ago

Thank you for responding so quickly.

I deleted my whole enigma-bbs folder and started with manual installation.

NVM wanted an update along the way I said yes and the new install works.

I have a base enigma board running on a pi4 64-bit pios.

I run an Image BBS board on a vice emulation. This is a bit different.

Currently trying to ssh in so I can use the waiting for call function. Cant seem to get ssh working but its probably my lack of linux knowledge.

Thanks again.

Hi @Sutehktd. It sounds like you might not need this anymore, but I've made a new branch, "bugfix/node_v20" that should hopefully fix the original pty issue. I'm still testing it but you're welcome to give it a shot as well if you still have the other environment (though you don't have to either of course if your happy with how it's setup now.)

As far as the ssh issues you are running into, if those aren't resolved yet please feel free to put in an issue on those as well, I'd be happy to take a look.

NuSkooler commented 9 months ago

I think we may need to beef up the install.sh and/or directions for RPi's specifically. Get's 'em every time!

Sutehktd commented 9 months ago

That would help. I am muddling my way through but still don't have ssh hooked up to the BBS.

cognitivegears commented 9 months ago

That would help. I am muddling my way through but still don't have ssh hooked up to the BBS.

Sounds good, as soon as I can I'll try it out on the RPi and come up with some specific documentation.

You may also check out, I just made some significant updates to the ssh instructions which may help out:

(https://nuskooler.github.io/enigma-bbs/servers/loginservers/ssh.html)

and I also added a ssh troubleshooting page:

(https://nuskooler.github.io/enigma-bbs/troubleshooting/ssh-troubleshooting.html)

Those may help you out, otherwise please let us know as well.

cognitivegears commented 9 months ago

For now I'm going to go ahead and close this one, because I believe the initial issue was addressed. Please feel free to reopen or open a new issue if you have any more troubles though!