sad-indigoS
Apify & Crawlee2y ago
2 replies
sad-indigo

Failing Dockerfile after updating routes.ts

I updated the routes file due to a change on the website, then did a build and start on the Apify platform. The same dockerfile the worked prior now fails error codes below. I have tried adding the chown suggestion however it changes permissions of cach and fails. Looking for suggestion how to resolve, I am green when it comes docker deployment error. So any help is welcome.

2024-04-05T02:24:42.146Z npm 2024-04-05T02:24:42.148Z ERR! code EPERM 2024-04-05T02:24:42.149Z 2024-04-05T02:24:42.151Z npm ERR! 2024-04-05T02:24:42.152Z syscall 2024-04-05T02:24:42.153Z chmod 2024-04-05T02:24:42.154Z 2024-04-05T02:24:42.155Z npm ERR! 2024-04-05T02:24:42.155Z path 2024-04-05T02:24:42.156Z /home/myuser/.npmrc 2024-04-05T02:24:42.157Z 2024-04-05T02:24:42.158Z npm 2024-04-05T02:24:42.159Z ERR! errno 2024-04-05T02:24:42.159Z -1 2024-04-05T02:24:42.160Z 2024-04-05T02:24:42.161Z npm ERR! 2024-04-05T02:24:42.162Z npm 2024-04-05T02:24:42.162Z ERR! Your cache folder contains root-owned files, due to a bug in 2024-04-05T02:24:42.163Z npm ERR! previous versions of npm which has since been addressed. 2024-04-05T02:24:42.164Z npm 2024-04-05T02:24:42.164Z ERR! 2024-04-05T02:24:42.165Z npm 2024-04-05T02:24:42.166Z ERR! To permanently fix this problem, please run: 2024-04-05T02:24:42.167Z npm 2024-04-05T02:24:42.167Z ERR! 2024-04-05T02:24:42.168Z sudo chown -R 997:997 "/home/myuser/.npm" 2024-04-05T02:24:42.169Z 2024-04-05T02:24:42.170Z 2024-04-05T02:24:42.171Z
Was this page helpful?