Giter Club home page Giter Club logo

Comments (4)

vilhelmprytz avatar vilhelmprytz commented on June 2, 2024 1

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.

vilhelmprytz avatar vilhelmprytz commented on June 2, 2024

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.

Hoerli1337 avatar Hoerli1337 commented on June 2, 2024

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.

vilhelmprytz avatar vilhelmprytz commented on June 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.