Closed peterwmwong closed 3 years ago
hi @peterwmwong the issue is because from the build history it looks like the app started off being detected as an SSR app, but then was switched back to SSG and the service role was removed
and since the service role was removed our build didn't have permission to change the framework back to SSG (causing the issue you see in the Deploy step). I manually update your framework to SSG, so please try another build and let us know if you continue to experience the issue. Thanks!
@Athena96 Thanks for taking a look. Unfortunately, I just tried (pushed a whitespace commit, no config changes) and got the same results. This latest build/deploy is Build 10
.
@Athena96 Is there a settings page/AWS CLI command/log that indicates what mode (SSG vs SSR) an Amplify App is detected as?
@Athena96 can you please re-open this issue #1847
This might be related. I'm afraid you're not receiving an alert since the issue is closed.
@peterwmwong you can see the framework we detected for your app in the General App Settings page for your app. @jericopulvera I will re-open the #1847
@Athena96
@peterwmwong - Have you resolved the issue yet? We're also have the exact same problem. This problem started a week ago for us.
@Athena96 - Could you update our app (diqowywkubjcd
) to SSG too? How can we do this on our own as deploys broke last week for us?
@ACPK - Doing some experiments on another account, I think a workaround is to just recreate the Amplify App with the documented package.json
incantations so Amplify detects it's SSG and not SSR for the first build/deploy.
Which depending on how your situation might be easy or hard. For us, we're using CloudFormation to create the Amplify App, so we...
next build && next export
, instead of next build
/next export
as separate npm scripts)@Athena96 - If I don't hear back tomorrow, I'll just go forward with the above workaround and hope it works in this account. Would still be interested in answers to be previous question. Thanks.
Encountering same issue. I removed next as a dependency in package.json
, as it's only used in a separate portion of the site, and build
script is set to node scripts/build.js
. Amplify still errors out at Starting SSR build...
Amplify and Beanstalk have been rather finnicky lately. I wouldn't expect to have to tweak builds and deployments that previously worked fine.
AppID: d14iornxvomy5k Region: us-east-1
Same Issue here and the solution might be just switching the App to SSG again, so how we can change that one manually? AppID: d3td4in2dnk19a Region: ap-southeast-2
I had the same issue and resolved it by adding administrator access to the service role.
Here are the steps for converting an existing SSR app to SSG: https://github.com/aws-amplify/amplify-console/blob/master/FAQ.md#convert-an-ssr-app-to-ssg
Closing this issue, please feel free to re-open if you are still facing the issue
@Athena96 what do you do if you are not even using Next.js and your Amplify deploys have started failing? I've never used SSR in this create-react-app project.
Auto-detecting whether the app is SSR feels wrong to me, surely it should be an explicit config option (or setting in console)?
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
d1ka0gxxs2xqs1
Region
us-west-2
Amplify Console feature
Not applicable
Describe the bug
After adjusting our
package.json
so the newly added Amplify Next.js SSR integration would detect our application as an SSG (not SSR). The "Deploy" stage fails... no logs indicating why.The "Build" phase appears to be completing successfully.
Oddly enough this same application/repository (git mirror) works fine on another AWS account...
Expected behavior
A successful deploy.
Reproduction steps
Build Settings
Additional information
No response