Replies: 9 comments 3 replies
-
Try Reference |
Beta Was this translation helpful? Give feedback.
-
Seeing this exact issue as well with NextJs |
Beta Was this translation helpful? Give feedback.
-
adding on to this, in my project also deployed in docker fully using app router, I'm getting similar errors
and i do have this in my dockerfile
|
Beta Was this translation helpful? Give feedback.
-
Did you happen to find any futher updates on this? Experiencing currently with |
Beta Was this translation helpful? Give feedback.
-
this error still exists, Does anyone already know the solution? |
Beta Was this translation helpful? Give feedback.
-
So a potential solution could be that your docker/kubernetes setup is not configured to run as a NonRoot user along with the correct nonroot user id for it to use. |
Beta Was this translation helpful? Give feedback.
-
Adding the following lines before copying from builder and chown fixed the issue for me RUN mkdir .next |
Beta Was this translation helpful? Give feedback.
-
Ok, this is silly, but none of this worked for me, since i was dumb enough to not check my k8s settings file where it said |
Beta Was this translation helpful? Give feedback.
-
I have this now in the latest version 15.3.4 :| |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Hi! I have a problem in the logs. I am implementing ISR with
getStaticProps
.For the exact pages the have ISR, I found this error:
I use Docker, with a similar multi-stage deployment like in this example
I tried several approaches, like:
Upgrading nextJs to the latest version.
Copying the whole next directory in the last build stage, runner (instead of the static directory only)
COPY --from=builder --chown=nextjs:nodejs /app/.next ./.next
I created the pages directory and gave permissions write (during the runner stage with the root user)
RUN mkdir -p /app/.next/server/pages
RUN chmod 777 /app/.next/server/pages
I even created the html page and gave it users permissions to write and execute, till my last build stage (runner) looked like this:

Do you have any idea what is the cause of the error or how it can be resolved ?
Thanks!
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions