MartinSahlen / cloud-functions-python

Get some python in google cloud functions
203 stars 29 forks source link

Permissions issue on cloudfn folder #32

Open kamal8 opened 6 years ago

kamal8 commented 6 years ago

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.

MartinSahlen commented 6 years ago

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

kevin-thorpe commented 6 years ago

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

MartinSahlen commented 6 years ago

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

kevin-thorpe commented 6 years ago

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" notifications@github.com 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 .

MartinSahlen commented 6 years ago

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!