简体   繁体   English

ec2 AWS 服务器实例上的 S3 图像上传问题

[英]S3 Image Upload Issue On ec2 AWS server instance

I am using yii2, php 5.5.24我正在使用yii2,php 5.5.24

I am trying to upload images in s3 bucket from different ec2 instances with same credentials我正在尝试使用相同的凭据从不同的 ec2 实例上传 s3 存储桶中的图像

2 instances and localhost working fine but 1 instance is not uploading images see the image below to see error which I am getting 2 个实例和 localhost 工作正常,但1 个实例未上传图像,请参阅下图以查看我收到的错误

s3 错误

I spend more than 3 days to solve this problem but get no success.我花了超过 3 天的时间来解决这个问题,但没有成功。

I found the same/similar issue here not solved , here not solved and here not solve我发现相同/类似的问题在这里没有解决在这里没有解决在这里没有解决

EDIT编辑

One more thing is, it was working before 1 week after that I am getting this error only on one instance and i have not update any version or library functions还有一件事是,它在 1 周之前就开始工作了,我只在一个实例上收到此错误,而且我没有更新任何版本或库函数

Please Help Me Guys , I don't have any idea what to do now.请帮帮我,我现在不知道该怎么办。 its really a very major issue for me这对我来说真的是一个非常重要的问题

THANKS IN ADVANCE提前致谢

We have fixed this issue.我们已经修复了这个问题。 I am posting my answer because it waste my whole week.我发布我的答案是因为它浪费了我整个星期。

The issue was the network time protocol, we weren't allowing the traffic of UDP Port 123 for NTP to sync the time.问题是网络时间协议,我们不允许 UDP 端口 123 的流量用于 NTP 同步时间。

We fixed that by editing the security group of EC2 and everything works perfectly :).我们通过编辑 EC2 的安全组解决了这个问题,一切正常:)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM