pterodactyl / images

Generic docker images designed to work with Pterodactyl Panel and its daemon.
https://pterodactyl.io
MIT License
49 stars 182 forks source link

Rust image /node_modules/ws/lib/websocket.js:347SyntaxError: Unexpected token #48

Closed thijndehaas closed 5 years ago

thijndehaas commented 5 years ago

All my servers that start with the latest Rust image give a crash. This error was not in the panel yesterday. Is there a way to downgrade the image or somehow fix this?


/node_modules/ws/lib/websocket.js:347
...options
^^^
SyntaxError: Unexpected token ...
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:549:28)
at Object.Module._extensions..js (module.js:586:10)
at Module.load (module.js:494:32)
at tryModuleLoad (module.js:453:12)
at Function.Module._load (module.js:445:3)
at Module.require (module.js:504:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/node_modules/ws/index.js:3:19)
[Pterodactyl Daemon] Server marked as OFF```
parkervcp commented 5 years ago

What image are you using to run your server?

thijndehaas commented 5 years ago

quay.io/pterodactyl/core:rust

thijndehaas commented 5 years ago

I just tried to create a server with the Ark egg and this seems to work fine. When a new Rust server was created I found out the problem. I rebuild the container of an existing Rust server and it resulted in the same error.

parkervcp commented 5 years ago

There are no ... in the wrapper.js except for the waiting for rcon and updating umod messages.

DaneEveritt commented 5 years ago

The "random" ... is actually valid JS spread operator syntax but thats only in ES6.

thijndehaas commented 5 years ago

I figured out how to build the image myself and this fix seems to be working. Thanks Parker!

parkervcp commented 5 years ago

It's built now so this should be fixed.

Pedroxam commented 4 years ago

Not fixed. i have same problem

parkervcp commented 4 years ago

I feel like I need to call out this - https://github.com/pterodactyl/images/pull/55

Also feel like you guys need to look before you comment.

Pedroxam commented 4 years ago

@parkervcp, i reinstall nodejs and now everything is ok.