cloud-functions-python icon indicating copy to clipboard operation
cloud-functions-python copied to clipboard

Permissions issue on cloudfn folder

Open kamal8 opened this issue 6 years ago • 5 comments

Hello, I have just started using the cloud-functions-python for the first time. I tried reading the documentation if I was configuring it wrong. whenever I run the build command I get the permissions errors like: IOError: [Errno 13] Permission denied: 'cloudfn/index.js'

but if i run it as root, it works fine. or if I recursively grant all permissions to all files in cloudfn folder.

I would really love, if a non root user could also build and deploy without permissions problem.

kamal8 avatar Mar 01 '18 15:03 kamal8

I haven't gotten this issue myself, what system / OS are you running this on?

MartinSahlen avatar Mar 06 '18 10:03 MartinSahlen

Yep, I have this issue as well. CentOS 7. Heven't yet looked into the reason but the cloudfn folder is created as root.root 0755

kevin-thorpe avatar Mar 08 '18 12:03 kevin-thorpe

I’m not sure what might be causing this, feel free to look into it and suggest a fix, I will merge at will.

MartinSahlen avatar Mar 16 '18 20:03 MartinSahlen

I'm more than happy to try and fix it but what you're doing is quite complex. I didn't realise you were compiling python into an executable. Any clues in the process you're using? I'm a sysadmin/systems programmer so a few small clues should go a long way

On 16 Mar 2018 8:21 pm, "Martin Abelson Sahlen" [email protected] wrote:

I’m not sure what might be causing this, feel free to look into it and suggest a fix, I will merge at will.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/MartinSahlen/cloud-functions-python/issues/32#issuecomment-373833798, or mute the thread https://github.com/notifications/unsubscribe-auth/ANEA-GdcejpNg-M4fuqUK-rokc91_lDhks5tfB60gaJpZM4SYfGK .

kevin-thorpe avatar Mar 16 '18 23:03 kevin-thorpe

I'm sorry to be so slow - but I dont get notifications for some reason @kevin-thorpe . I'm using https://www.pyinstaller.org/ to compile it!

MartinSahlen avatar Mar 22 '18 13:03 MartinSahlen