| 15 Dec 2023 |
avocadoom | In reply to @avocadoom:avocadoom.de
warning: The interpretation of store paths arguments ending in `.drv` recently changed. If this command is now failing try again with '/nix/store/0rb9qgdsbkafx4s59jsa5lxhkhr5fsvv-darmstadt.ccc.de.drv^*'
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/g5n23k8ahzdfgw7s8l40iqmvy21li8cr-kndykrdjyqs5jn478q753lcncfvv2l4z-source
source root is kndykrdjyqs5jn478q753lcncfvv2l4z-source
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
no configure script, doing nothing
@nix { "action": "setPhase", "phase": "buildPhase" }
building
added 195 packages, and audited 196 packages in 2s
12 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
npm notice
npm notice New major version of npm available! 9.5.1 -> 10.2.5
npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.2.5
npm notice Run npm install -g npm@10.2.5 to update!
npm notice
> build
> hugo
WARN config: languages.de.disabled: custom params on the language top level is deprecated and will be removed in a future release. Put the value below [languages.de.params]. See https://gohugo.io/content-management/multilingual/#changes-in-hugo-01120
Start building sites …
hugo v0.115.0+extended linux/amd64 BuildDate=unknown VendorInfo=nixpkgs
ERROR render of "page" failed: "/tmp/nix-build-darmstadt.ccc.de.drv-0/kndykrdjyqs5jn478q753lcncfvv2l4z-source/layouts/_default/baseof.html:14:28": execute of template failed: template: _default/single.html:14:28: executing "_default/single.html" at <partial "scripts.html" .>: error calling partial: "/tmp/nix-build-darmstadt.ccc.de.drv-0/kndykrdjyqs5jn478q753lcncfvv2l4z-source/layouts/partials/scripts.html:4:10": execute of template failed: template: partials/scripts.html:4:10: executing "partials/scripts.html" at <$main.Content>: error calling Content: BABEL: failed to transform "js/main.js" (text/javascript): npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path /var/empty/.npm
npm ERR! errno -1
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR! sudo chown -R 30001:30000 "/var/empty/.npm"
npm ERR! Log files were not written due to an error writing to the directory: /var/empty/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
: failed to execute binary "npx" with args [--no-install babel --config-file /tmp/nix-build-darmstadt.ccc.de.drv-0/kndykrdjyqs5jn478q753lcncfvv2l4z-source/babel.config.js --filename=js/main.js --out-file=/tmp/nix-build-darmstadt.ccc.de.drv-0/compileOut-2696888417.js]: npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path /var/empty/.npm
npm ERR! errno -1
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR! sudo chown -R 30001:30000 "/var/empty/.npm"
npm ERR! Log files were not written due to an error writing to the directory: /var/empty/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
ERROR BABEL: failed to transform "js/critical.js" (text/javascript): npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path /var/empty/.npm
npm ERR! errno -1
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR! sudo chown -R 30001:30000 "/var/empty/.npm"
npm ERR! Log files were not written due to an error writing to the directory: /var/empty/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
: failed to execute binary "npx" with args [--no-install babel --config-file /tmp/nix-build-darmstadt.ccc.de.drv-0/kndykrdjyqs5jn478q753lcncfvv2l4z-source/babel.config.js --filename=js/critical.js --out-file=/tmp/nix-build-darmstadt.ccc.de.drv-0/compileOut-9938092.js]: npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path /var/empty/.npm
npm ERR! errno -1
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR! sudo chown -R 30001:30000 "/var/empty/.npm"
npm ERR! Log files were not written due to an error writing to the directory: /var/empty/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
ERROR BABEL: failed to transform "js/calendar.js" (text/javascript): npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path /var/empty/.npm
npm ERR! errno -1
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR! sudo chown -R 30001:30000 "/var/empty/.npm"
npm ERR! Log files were not written due to an error writing to the directory: /var/empty/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
: failed to execute binary "npx" with args [--no-install babel --config-file /tmp/nix-build-darmstadt.ccc.de.drv-0/kndykrdjyqs5jn478q753lcncfvv2l4z-source/babel.config.js --filename=js/calendar.js --out-file=/tmp/nix-build-darmstadt.ccc.de.drv-0/compileOut-45920551.js]: npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path /var/empty/.npm
npm ERR! errno -1
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR! sudo chown -R 30001:30000 "/var/empty/.npm"
npm ERR! Log files were not written due to an error writing to the directory: /var/empty/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
ERROR BABEL: failed to transform "js/main.js" (text/javascript): npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path /var/empty/.npm
npm ERR! errno -1
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR! sudo chown -R 30001:30000 "/var/empty/.npm"
npm ERR! Log files were not written due to an error writing to the directory: /var/empty/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
: failed to execute binary "npx" with args [--no-install babel --config-file /tmp/nix-build-darmstadt.ccc.de.drv-0/kndykrdjyqs5jn478q753lcncfvv2l4z-source/babel.config.js --filename=js/main.js --out-file=/tmp/nix-build-darmstadt.ccc.de.drv-0/compileOut-2696888417.js]: npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path /var/empty/.npm
npm ERR! errno -1
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR! sudo chown -R 30001:30000 "/var/empty/.npm"
npm ERR! Log files were not written due to an error writing to the directory: /var/empty/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
Total in 1817 ms
Error: error building site: render: failed to render pages: render of "page" failed: "/tmp/nix-build-darmstadt.ccc.de.drv-0/kndykrdjyqs5jn478q753lcncfvv2l4z-source/layouts/_default/baseof.html:13:8": execute of template failed: template: posts/single.html:13:8: executing "posts/single.html" at <partial "header.html" .>: error calling partial: "/tmp/nix-build-darmstadt.ccc.de.drv-0/kndykrdjyqs5jn478q753lcncfvv2l4z-source/layouts/partials/header.html:43:20": execute of template failed: template: partials/header.html:43:20: executing "partials/header.html" at <$criticalScript.Content>: error calling Content: BABEL: failed to transform "js/critical.js" (text/javascript): npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path /var/empty/.npm
npm ERR! errno -1
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR! sudo chown -R 30001:30000 "/var/empty/.npm"
npm ERR! Log files were not written due to an error writing to the directory: /var/empty/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
: failed to execute binary "npx" with args [--no-install babel --config-file /tmp/nix-build-darmstadt.ccc.de.drv-0/kndykrdjyqs5jn478q753lcncfvv2l4z-source/babel.config.js --filename=js/critical.js --out-file=/tmp/nix-build-darmstadt.ccc.de.drv-0/compileOut-9938092.js]: npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path /var/empty/.npm
npm ERR! errno -1
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR! sudo chown -R 30001:30000 "/var/empty/.npm"
npm ERR! Log files were not written due to an error writing to the directory: /var/empty/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
Lily Foster: this is the whole build log | 01:41:16 |
Lily Foster | In reply to @avocadoom:avocadoom.de as stated, I already tried that, which resulted in the same behavior apologies, i saw you stated that and was commenting on that specifically | 01:41:33 |
avocadoom | In reply to @lily:lily.flowers apologies, i saw you stated that and was commenting on that specifically no problem :) | 01:42:09 |
avocadoom | From reading them, I guess hugo just cant find babel, which is weird, since it works in a nix shell following the exact same steps as in the build process | 01:45:15 |
avocadoom | * From reading the logs, I guess hugo just cant find babel, which is weird, since it works in a nix shell following the exact same steps as in the build process | 01:45:28 |
Lily Foster | In reply to @avocadoom:avocadoom.de From reading the logs, I guess hugo just cant find babel, which is weird, since it works in a nix shell following the exact same steps as in the build process i'm gonna make a wild guess that babel is trying to write to your home dir. what if you add a export HOME="$TMPDIR"? | 01:51:31 |
Lily Foster | oh actually. it's trying to run npx | 01:52:51 |
Lily Foster | but can't | 01:53:03 |
Lily Foster | maybe? | 01:53:06 |
avocadoom | In reply to @lily:lily.flowers i'm gonna make a wild guess that babel is trying to write to your home dir. what if you add a export HOME="$TMPDIR"? this doesn't seem to work | 01:53:26 |
avocadoom | In reply to @lily:lily.flowers maybe? maybe | 01:53:33 |
avocadoom | but this seems a bit counterintuitive regarding the docs stating to have the modules installed locally | 01:53:56 |
@joepie91:pixie.town | babel does indeed try to write into a cache in your homedir | 01:54:50 |
@joepie91:pixie.town | setting the homedir to an invalid path makes it not do that | 01:54:59 |