EACCES: permission denied / code -504002
发布于 5 年前 作者 yangfang 8544 次浏览 来自 问答

你好大家,

I cannot find a solution to the error below. Can anybody help with that?

VM1437:1 [云函数] [login] 调用失败 Error: errCode: -404011 cloud function execution error | errMsg: cloud.callFunction:fail cloud function service error code -504002, error message EACCES: permission denied, open '/var/user/index.js'; at cloud.callFunction api;
    at new t (WAService.js:22)
    at o (WAService.js:22)
    at Object.i [as returnAsFinalCloudSDKError] (WAService.js:22)
    at Function.success (WAService.js:21)
    at Object.success (WAService.js:4)
    at L.<anonymous> (WAService.js:7)
    at L.emit (WAService.js:8)
    at Function.<anonymous> (WAService.js:12)
    at WAService.js:6
    at e (appservice?t=1557377240982:1375)

Best

George 乔治

2 回复

@光 thank you for your help!

I found the solution and post it here in case anyone faces the same error message. My cloud folder didn’t contain the “config.json” files which include permissions.

After i created those files and redeployed them to the cloud the error was gone.

Maby it’s because you didn’t open the permission of cloud development ? I saw “permission denied” in your error message.

回到顶部