Hi there,
I'm having trouble uploading some files to Cloud Functions host. The files I'm trying to upload are .zip, .db, and .sqlite files. I'm not using a .gitignore or .gcloudignore file, and the files are listed when I run the `gcloud meta list-files-for-upload` command.
I was able to deploy functions with these files without issue a few months ago, but now I'm unable to upload them using either the `gcloud functions deploy` command or by manually deploying the function from a local zip file.
As you can see in the attached image, the files that are not plain text are ignored. Even plain text files that are zipped are ignored.
Local files ignored for upload
Can you please help me figure out why I'm not able to upload these files? I tried with v1 and v2 functions.
Thank you for your time.
I hope this is helpful! Let me know if you have any other questions.
Greetings @fmussari,
Welcome to the Google Cloud Community!
To troubleshoot this, we must find out why it's failing when uploading the files. Try to View logs. Google Cloud function logs the deployment process, along with the errors and warnings during the deployment step. View the runtime logs in the Google Cloud Console.
Let me know if it helped, thanks!
Hi @Marramirez,
I appreciate your answer. I've found that the files are uploaded, but they are not listed in the UI. I deployed the files file.7z, file.txt, file.zip, and main.py, but only main.py and file.txt are listed:
However, I used the code in the function to list the local files and showed that all of the files were uploaded:
[PosixPath('.googlebuild'), PosixPath('__pycache__'), PosixPath('file.7z'), PosixPath('file.txt'), PosixPath('file.zip'), PosixPath('main.py')]