Comments (4)
Hmm, so I think I have figured this one out.
I too get the error you are mentioning.
gyp WARN EACCES current user ("vilhelm") does not have permission to access the dev dir "/root/.cache/node-gyp/10.19.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/srv/daemon/node_modules/mmmagic/.node-gyp"
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/srv/daemon/node_modules/mmmagic/.node-gyp'
gyp ERR! System Linux 4.15.0-88-generic
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /srv/daemon/node_modules/mmmagic
gyp ERR! node -v v10.19.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
It has something to do with the fact that you logged in as root using sudo su
and not su root
, which somehow screws with the permissions (see this issue). This StackExchange article explains it in detail.
I have replaced npm install --only=production
with npm install --only=production --unsafe-perm
in pull request #31. Can you try this script and see if it works?
Use ...
bash <(curl -s https://raw.githubusercontent.com/VilhelmPrytz/pterodactyl-installer/VilhelmPrytz-fix-daemon-installations/install-daemon.sh)
... to run the script using the changes I made in the pull request.
Note: make sure to run the script on a clean installation!
from pterodactyl-installer.
I get this error too, but my deamon actually runs without problem. Have you tried connecting it to a panel? Also, could you try installing the daemon using the official installation guide to see if it's on pterodactyl's end or if it's my script?
from pterodactyl-installer.
I get this error on start-up:
> [email protected] start /srv/daemon
> node src/index.js | node_modules/bunyan/bin/bunyan -o short
18:41:56.559Z INFO wings: + ------------------------------------ +
18:41:56.560Z INFO wings: | Running Pterodactyl Daemon v0.6.12 |
18:41:56.560Z INFO wings: | https://pterodactyl.io |
18:41:56.560Z INFO wings: | Copyright 2015 - 2019 Dane Everitt |
18:41:56.560Z INFO wings: + ------------------------------------ +
18:41:56.560Z INFO wings: Loading modules, this could take a few seconds.
internal/modules/cjs/loader.js:983
throw err;
^
Error: Cannot find module 'mmmagic'
Require stack:
- /srv/daemon/src/controllers/fs.js
- /srv/daemon/src/controllers/server.js
- /srv/daemon/node_modules/rfr/lib/rfr.js
- /srv/daemon/node_modules/rfr/index.js
- /srv/daemon/src/index.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:980:15)
at Function.Module._load (internal/modules/cjs/loader.js:862:27)
at Module.require (internal/modules/cjs/loader.js:1040:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object.<anonymous> (/srv/daemon/src/controllers/fs.js:30:13)
at Module._compile (internal/modules/cjs/loader.js:1151:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1171:10)
at Module.load (internal/modules/cjs/loader.js:1000:32)
at Function.Module._load (internal/modules/cjs/loader.js:899:14)
at Module.require (internal/modules/cjs/loader.js:1040:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/srv/daemon/src/controllers/fs.js',
'/srv/daemon/src/controllers/server.js',
'/srv/daemon/node_modules/rfr/lib/rfr.js',
'/srv/daemon/node_modules/rfr/index.js',
'/srv/daemon/src/index.js'
]
}
from pterodactyl-installer.
As far as I can see, this is outside the scope of this script but it might not be. Can you try running npm rebuild
and then start?
from pterodactyl-installer.
Related Issues (20)
- Installer not working
- * Installing virt-what... E: The repository 'http://ppa.launchpad.net/certbot/certbot/ubuntu focal Release' does not have a Release file. HOT 1
- install fails on wings portion HOT 2
- Check utf-8 locales before script installation HOT 8
- My script failed in between HOT 2
- Access denied for user 'root'@'local host' HOT 6
- I am facing error while creating Database
- install script not working HOT 2
- Skipping Let's Encrypt installation HOT 1
- lib.sh HOT 3
- ERROR 1146 (42S02) at line 1: Table 'mysql.user' doesn't exist HOT 2
- Ubuntu 24.04 support HOT 1
- GPG error installation Debian 12 [the public key is not available] HOT 1
- Error when obtaining certificate for wings HOT 1
- After setting up the panel all of my ports closed HOT 3
- nodes/ wings red HOT 1
- Nodes Red/ Installer Bug Nodes Don't Want to Be Green HOT 2
- I got this error. Is it usually fixed? HOT 3
- idk HOT 1
- Missing release file on Debian 11 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pterodactyl-installer.