-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build fails with "Starting SSR Build... ERROR: AccessDenied: Access Denied" #2192
Comments
Hi, This is urgent for us. If possible, could you check this out and tell me where this might come from? Thanks in advance. BR, |
Hi, I fixed this myself following the instructions https://github.com/aws-amplify/amplify-console/blob/master/FAQ.md#convert-an-ssr-app-to-ssg. I did this before and again this problem came up. I don't understand this hassle associated with SSR/SSG recognizing. Our Next.js Amplify app is just static SSG and we are not using any SSR features at all. Our Amplify build pipeline fails from time to time because something always changes in this 'amplify-console' build pipeline related to SSR/SSG recognizing. |
This has been happening every time I try to deploy any NextJS app through the console, from GitHub. |
Hi @heikkikurkela, @Dovalization apologies for the delay with this ticket. Just for future reference, we currently identify that an app is SSR if the following criteria is meet:
Once an app is treated as SSR, the only way to switch it back to SSG is by following the steps described in this guide: https://github.com/aws-amplify/amplify-console/blob/master/FAQ.md#convert-an-ssr-app-to-ssg. We appreciate your patience while we fine tune the dev experience with SSR apps and thank you for reporting issues! |
I have this issue as well and we need to use SSR. How to fix? |
@annix-markcl , for SSR, you may need more permissions. Can you check the role permissions against https://github.com/aws-amplify/amplify-console/blob/master/FAQ.md#error-accessdenied-access-denied to see if that helps. Hope that this helps. |
I think this was the case for me. Using the standard I attached the |
Just an update on my previous comment - this fix doesn't seem to work consistently. I'm now facing this This basically means that deploying SSR Next.js apps on Amplify does not work for many people. |
Yes, sometimes it worked, sometimes it doesn't. Is totally frustrating. I have an app already have 10 PR merge, and 10++ deployments, suddenly it doesnt work today #1876 (comment) |
This might be a duplicated of #1876 |
We launched improved support for Next.js applications towards the end of last year: https://aws.amazon.com/blogs/mobile/amplify-next-js-13/ If you haven't already done so, please try migrating your applications to advantage of our new support: https://docs.aws.amazon.com/amplify/latest/userguide/update-app-nextjs-version.html |
|
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Before opening, please confirm:
App Id
d3srkgpabkig16
Region
eu-central-1
Amplify Console feature
Access control
Describe the bug
Expected behavior
Build should be successful since no change
Reproduction steps
Just re-run the pipeline
Build Settings
Additional information
This problem began to occur from date 8/20/2021, 11:30:39 AM
The text was updated successfully, but these errors were encountered: