Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to install MineOS #6711

Closed
schmidt-software opened this issue Oct 27, 2023 · 7 comments
Closed

Failed to install MineOS #6711

schmidt-software opened this issue Oct 27, 2023 · 7 comments

Comments

@schmidt-software
Copy link

schmidt-software commented Oct 27, 2023

Required Information

  • DietPi version:
    G_DIETPI_VERSION_CORE=8
    G_DIETPI_VERSION_SUB=23
    G_DIETPI_VERSION_RC=3
    G_GITBRANCH='master'
    G_GITOWNER='MichaIng'
    G_LIVE_PATCH_STATUS[0]='applied'

  • Distro version: bullseye 1

  • Kernel version: Linux pihole.lan 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux

  • SBC model: RPi 4 Model B (aarch64)

  • Power supply used: 5V 1.5A

  • SD card used: USB Model?

Additional Information (if applicable)

  • Software title: MineOS
  • Was the software title installed freshly or updated/migrated?: freshly
  • Can this issue be replicated on a fresh installation of DietPi?: not tested
  • Bug report ID: 82f9d384-b717-433a-ab46-23f7762e6073

Steps to reproduce

start installation

Expected behaviour

install MineOS

Actual behaviour

install is cancelled wih errors

Extra details

none

@Joulinar
Copy link
Collaborator

Would it be possible to share the error message you are facing?

@schmidt-software
Copy link
Author

schmidt-software commented Oct 27, 2023

Step: Installing MineOS: Minecraft servers with web interface (Java/Node.js)

[  OK  ] DietPi-Software | Checking URL: https://github.com/hexparrot/mineos-node.git
[ INFO ] DietPi-Software | APT install rdiff-backup rsync screen make g++, please wait...
Reading package lists...
Building dependency tree...
Reading state information...
g++ is already the newest version (4:10.2.1-1+rpi1).
make is already the newest version (4.3-4.1).
rdiff-backup is already the newest version (2.0.5-2).
rsync is already the newest version (3.2.3-4+deb11u1).
screen is already the newest version (4.8.0-6).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[  OK  ] DietPi-Software | APT install rdiff-backup rsync screen make g++
[  OK  ] DietPi-Software | mkdir -p /mnt/dietpi_userdata/mineos
[  OK  ] DietPi-Software | cd /mnt/dietpi_userdata/mineos
[  OK  ] DietPi-Software | cd minecraft
[ INFO ] DietPi-Software | ./update_webui.sh, please wait...
Script execution started on: Fri Oct 27 20:45:29 CEST 2023
Updating mineos-node repository...OK
Pulling master branch...From https://github.com/hexparrot/mineos-node
 * branch            master     -> FETCH_HEAD
OK
Updating npm dependencies.../usr/local/lib/node_modules/npm/lib/es6/validate-engines.js:31
    throw err
    ^

TypeError: LRUCache is not a constructor
    at Object.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/cacache/lib/memoization.js:5:18)
    at Module._compile (node:internal/modules/cjs/loader:1376:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
    at Module.load (node:internal/modules/cjs/loader:1207:32)
    at Module._load (node:internal/modules/cjs/loader:1023:12)
    at Module.require (node:internal/modules/cjs/loader:1235:19)
    at require (node:internal/modules/helpers:176:18)
    at Object.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/cacache/lib/get.js:8:14)
    at Module._compile (node:internal/modules/cjs/loader:1376:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)

Node.js v21.1.0
FAILED
[FAILED] DietPi-Software | ./update_webui.sh

@Joulinar
Copy link
Collaborator

hmm for me this is working without issue

[ INFO ] DietPi-Software | ./update_webui.sh, please wait...
Script execution started on: Sat Oct 28 19:43:26 CEST 2023
Updating mineos-node repository...OK
Pulling master branch...From https://github.com/hexparrot/mineos-node
 * branch            master     -> FETCH_HEAD
OK
Updating npm dependencies...OK
Setting node javascript files to executable...OK
Script execution ended on: Sat Oct 28 19:43:45 CEST 2023

@schmidt-software
Copy link
Author

After reinstalling DietPi on the same USB stick and installing MineOS as the first software package, the installation went smoothly.

@MichaIng
Copy link
Owner

Hmm, ./update_webui.sh is only executed if MineOS was installed before, respectively it the repo was cloned and execute permissions applied to this script. Did it fail before and you retried once?

@schmidt-software
Copy link
Author

Yes, I tried several times.

@MichaIng
Copy link
Owner

Okay then it makes sense. Was this an older image with possibly other Node.js software installed? Node sometimes runs into incompatibilities between global (system-wise) and local modules/dependencies. At least we know this from Node-RED. Probably it was similar here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants