huo-ju / photoprism-freebsd-port

The photoprism port for FreeBSD
BSD 2-Clause "Simplified" License
69 stars 15 forks source link

NPM errror building in poudriere #60

Open chmeeedalf opened 1 year ago

chmeeedalf commented 1 year ago

Trying to build www/photoprism on arm64 13.2-RELEASE and seeing the following error at the start of build:

npm WARN idealTree Removing dependencies.webpack-cli in favor of devDependencies.webpack-cli npm ERR! code EACCES npm ERR! syscall mkdir npm ERR! path /nonexistent npm ERR! errno -13 npm ERR! Error: EACCES: permission denied, mkdir '/nonexistent' npm ERR! [Error: EACCES: permission denied, mkdir '/nonexistent'] { npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'mkdir', npm ERR! path: '/nonexistent' npm ERR! } npm ERR! npm ERR! The operation was rejected by your operating system. npm ERR! It is likely you do not have the permissions to access this file as the current user npm ERR! npm ERR! If you believe this might be a permissions issue, please double-check the npm ERR! permissions of the file and its containing directories, or try running npm ERR! the command again as root/Administrator.

npm ERR! Log files were not written due to an error writing to the directory: /nonexistent/.npm/_logs npm ERR! You can rerun the command with --loglevel=verbose to see the logs in your terminal *** Error code 243

I have poudriere.conf configured as described in the README.

lapo-luchini commented 1 year ago

I'm not sure is this, but poudriere does not allow internet access during build and the current version of this port still does that. It has to be download in pre-fetch so that build can be done offline.

Edit: Oh, sorry, I didn't notice you already changed poudriere.conf to allow that.

chmeeedalf commented 1 year ago

The problem appears that it's trying to make changes to $HOME, and $HOME for user nobody is /nonexistent.