You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@guacamole.apache.org by Vieri <re...@yahoo.com.INVALID> on 2025/09/10 11:19:29 UTC

building 1.6.0 client: npm error (directory permission)

Hi,

I've always built Guacamole Client before, but now with 1.6.0 I'm getting an error with npm.
I'm running as root. The system is a bit old. I have nodejs-14.17.6. 

[INFO] --- frontend-maven-plugin:1.12.1:npx (generate-docs) @ guacamole-common-js ---
[INFO] Running 'npx jsdoc -c jsdoc-conf.json' in /tmp/guacamole-client/guacamole-common-js
[INFO] /root/.npm/_npx/715862f77c6787c7/node_modules/mkdirp/lib/mkdirp-native.js:35
[INFO]       throw er
[INFO]       ^
[INFO]
[INFO] Error: EACCES: permission denied, mkdir '/tmp/guacamole-client/guacamole-common-js/target/apidocs'
[INFO]     at Object.mkdirSync (node:fs:1382:3)
[INFO]     at mkdirpNativeSync (/root/.npm/_npx/715862f77c6787c7/node_modules/mkdirp/lib/mkdirp-native.js:29:10)
[INFO]     at Function.mkdirpSync [as sync] (/root/.npm/_npx/715862f77c6787c7/node_modules/mkdirp/index.js:21:7)
[INFO]     at Object.exports.mkPath (/root/.npm/_npx/715862f77c6787c7/node_modules/jsdoc/lib/jsdoc/fs.js:91:12)
[INFO]     at Object.exports.publish (/root/.npm/_npx/715862f77c6787c7/node_modules/jsdoc/templates/default/publish.js:496:8)
[INFO]     at Object.module.exports.cli.generateDocs (/root/.npm/_npx/715862f77c6787c7/node_modules/jsdoc/cli.js:441:39)
[INFO]     at Object.module.exports.cli.processParseResults (/root/.npm/_npx/715862f77c6787c7/node_modules/jsdoc/cli.js:392:24)
[INFO]     at module.exports.cli.main (/root/.npm/_npx/715862f77c6787c7/node_modules/jsdoc/cli.js:235:18)
[INFO]     at Object.module.exports.cli.runCommand (/root/.npm/_npx/715862f77c6787c7/node_modules/jsdoc/cli.js:186:9)
[INFO]     at /root/.npm/_npx/715862f77c6787c7/node_modules/jsdoc/jsdoc.js:93:9
[INFO]     at Object.<anonymous> (/root/.npm/_npx/715862f77c6787c7/node_modules/jsdoc/jsdoc.js:94:3)
[INFO]     at Module._compile (node:internal/modules/cjs/loader:1191:14)
[INFO]     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1245:10)
[INFO]     at Module.load (node:internal/modules/cjs/loader:1069:32)
[INFO]     at Function.Module._load (node:internal/modules/cjs/loader:904:12)
[INFO]     at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) {
[INFO]   errno: -13,
[INFO]   syscall: 'mkdir',
[INFO]   code: 'EACCES',
[INFO]   path: '/tmp/guacamole-client/guacamole-common-js/target/apidocs'
[INFO] }

# ls -ld /tmp/guacamole-client/guacamole-common-js/target
drwxr-xr-x 7 root root 180 Sep 10 12:47 /tmp/guacamole-client/guacamole-common-js/target

Does npm drop privs, hence cannot create the dir?

Any suggestions?

Regards

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@guacamole.apache.org
For additional commands, e-mail: user-help@guacamole.apache.org


Re: building 1.6.0 client: npm error (directory permission)

Posted by Nick Couchman <vn...@apache.org>.
On Fri, Sep 12, 2025 at 8:25 PM Vieri <re...@yahoo.com.invalid> wrote:

> On Wednesday, September 10, 2025 at 05:08:51 PM GMT+2, Nick Couchman <
> vnick@apache.org> wrote:
>
> > just chown everything to root:root.
>
>
> Hi Nick,
>
> Thanks. Built successfully.
>
>
Hello, Vieri,
Thank you for confirming.


> BTW I think you can close this as the feature seems to have been included
> in 1.6.0:
>
> https://issues.apache.org/jira/browse/GUACAMOLE-1565
>
>
Thank you for pointing that out - I've closed it as a duplicate of
GUACAMOLE-1372, as I believe those changes were implemented under that Jira
issue.

-Nick

Re: building 1.6.0 client: npm error (directory permission)

Posted by Vieri <re...@yahoo.com.INVALID>.
On Wednesday, September 10, 2025 at 05:08:51 PM GMT+2, Nick Couchman <vn...@apache.org> wrote:

> just chown everything to root:root. 


Hi Nick,

Thanks. Built successfully.

BTW I think you can close this as the feature seems to have been included in 1.6.0:

https://issues.apache.org/jira/browse/GUACAMOLE-1565

Regards,

Vieri

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@guacamole.apache.org
For additional commands, e-mail: user-help@guacamole.apache.org


Re: building 1.6.0 client: npm error (directory permission)

Posted by Nick Couchman <vn...@apache.org>.
On Wed, Sep 10, 2025 at 7:19 AM Vieri <re...@yahoo.com.invalid> wrote:

> Hi,
>
> I've always built Guacamole Client before, but now with 1.6.0 I'm getting
> an error with npm.
> I'm running as root. The system is a bit old. I have nodejs-14.17.6.
>
> [INFO] --- frontend-maven-plugin:1.12.1:npx (generate-docs) @
> guacamole-common-js ---
> [INFO] Running 'npx jsdoc -c jsdoc-conf.json' in
> /tmp/guacamole-client/guacamole-common-js
> [INFO]
> /root/.npm/_npx/715862f77c6787c7/node_modules/mkdirp/lib/mkdirp-native.js:35
> [INFO]       throw er
> [INFO]       ^
> [INFO]
> [INFO] Error: EACCES: permission denied, mkdir
> '/tmp/guacamole-client/guacamole-common-js/target/apidocs'
> [INFO]     at Object.mkdirSync (node:fs:1382:3)
> [INFO]     at mkdirpNativeSync
> (/root/.npm/_npx/715862f77c6787c7/node_modules/mkdirp/lib/mkdirp-native.js:29:10)
> [INFO]     at Function.mkdirpSync [as sync]
> (/root/.npm/_npx/715862f77c6787c7/node_modules/mkdirp/index.js:21:7)
> [INFO]     at Object.exports.mkPath
> (/root/.npm/_npx/715862f77c6787c7/node_modules/jsdoc/lib/jsdoc/fs.js:91:12)
> [INFO]     at Object.exports.publish
> (/root/.npm/_npx/715862f77c6787c7/node_modules/jsdoc/templates/default/publish.js:496:8)
> [INFO]     at Object.module.exports.cli.generateDocs
> (/root/.npm/_npx/715862f77c6787c7/node_modules/jsdoc/cli.js:441:39)
> [INFO]     at Object.module.exports.cli.processParseResults
> (/root/.npm/_npx/715862f77c6787c7/node_modules/jsdoc/cli.js:392:24)
> [INFO]     at module.exports.cli.main
> (/root/.npm/_npx/715862f77c6787c7/node_modules/jsdoc/cli.js:235:18)
> [INFO]     at Object.module.exports.cli.runCommand
> (/root/.npm/_npx/715862f77c6787c7/node_modules/jsdoc/cli.js:186:9)
> [INFO]     at
> /root/.npm/_npx/715862f77c6787c7/node_modules/jsdoc/jsdoc.js:93:9
> [INFO]     at Object.<anonymous>
> (/root/.npm/_npx/715862f77c6787c7/node_modules/jsdoc/jsdoc.js:94:3)
> [INFO]     at Module._compile (node:internal/modules/cjs/loader:1191:14)
> [INFO]     at Object.Module._extensions..js
> (node:internal/modules/cjs/loader:1245:10)
> [INFO]     at Module.load (node:internal/modules/cjs/loader:1069:32)
> [INFO]     at Function.Module._load
> (node:internal/modules/cjs/loader:904:12)
> [INFO]     at Function.executeUserEntryPoint [as runMain]
> (node:internal/modules/run_main:81:12) {
> [INFO]   errno: -13,
> [INFO]   syscall: 'mkdir',
> [INFO]   code: 'EACCES',
> [INFO]   path: '/tmp/guacamole-client/guacamole-common-js/target/apidocs'
> [INFO] }
>
> # ls -ld /tmp/guacamole-client/guacamole-common-js/target
> drwxr-xr-x 7 root root 180 Sep 10 12:47
> /tmp/guacamole-client/guacamole-common-js/target
>
>
Yeah, this has been reported on the mailing list a couple of times, and I
believe there is a Jira issue out there for it. It seems to be solved by
just doing a full chown of the directory structure to the user that you are
using to build the client - so, if you're running under root, just chown
everything to root:root. It actually really only impacts you if you unpack
the archive as "root", because that's the only way that ownership will be
maintained and will be anything other than the user who is unpacking the
file - any other user would end up with ownership being the user who is
doing the unpacking.

It is a bit odd that, as root, you end up with a permission issue, but
maybe you're correct, perhaps it drops privileges and then cannot create
the folders required. Not really sure.

-Nick