AWS Lambda Python很多“无法创建'/var/task/__ pycache __/FILENAMEpyc'"讯息 [英] AWS Lambda Python lots of "could not create '/var/task/__pycache__/FILENAMEpyc'" messages
问题描述
在Pyhon 3.6 AWS Lambda函数的配置中,我将环境变量"PYTHONVERBOSE"设置为1
In the configuration for my Pyhon 3.6 AWS Lambda function I set the environment variable "PYTHONVERBOSE" with a setting of 1
然后在Cloudwatch日志中显示我的功能,它显示许多类似于以下内容的消息:
Then in the Cloudwatch logs for my function it shows lots of messages similar to:
无法创建'/var/task/pycache/auth.cpython-36.pyc':OSError(30,'只读文件系统')
could not create '/var/task/pycache/auth.cpython-36.pyc': OSError(30, 'Read-only file system')
这很重要吗?我需要修复它吗?
Is this important? Do I need to fix it?
推荐答案
我认为您不能在/var/task/文件夹中编写.如果要在lambda运行时内部将某些内容写入磁盘,请尝试/tmp文件夹.
I don't think you can write in the /var/task/ folder. If you want to write something to disk inside of the lambda runtime try the /tmp folder.
这篇关于AWS Lambda Python很多“无法创建'/var/task/__ pycache __/FILENAMEpyc'"讯息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!