question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

.next folder has different permissions

See original GitHub issue

Bug report

Describe the bug

I recently tried to deploy my app and I got the following error:

Job (5e587331-2109-4f29-9dce-fd9c04dc7ad4) failed: The resource file mode is invalid: File mode '444' with path 'src/app/.next/cache/next-minifier/content-v2/sha512/03/99/058bf0c2f83e61887f99071b683c9dbf8893869857e5744d63f04e9a2b8ae60d9e4f3db9e8797107fbe65d0e091081c1e0ade397ab550674e126c7cb7be1' is invalid. Minimum file mode is '060'

I believe the file permissions for the .next folder have recently changed, not allowing me to deploy my app.

To Reproduce

  1. Create and build a next app
  2. Look at the permissions for the .next folder.
  3. The file permissions should be different from next version 9.3.5

Expected behavior

I would expect the file permissions to allow me to deploy my app.

System information

  • OS: macOS Catalina 10.15.4
  • Version of Next.js: 9.3.6
  • Version of Node.js: 12.16.1

Additional context

I recently updated next to 9.4.4, and this is how I found this bug. I downgraded next until I found a version that I could deploy with, which was 9.3.5.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
alexd99commented, Jun 8, 2020

I just tested it out and not uploading .next/cache to cloud foundry fixed the issue. Thank you for your help!

0reactions
balazsorban44commented, Jan 30, 2022

This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Change the permissions on a subfolder - Microsoft Support
Next to the subfolder name, click the Ellipsis… On the file popup window, click Share. On the Share dialog box, click Shared with,...
Read more >
SharePoint Folder Permissions with Power Automate - YouTube
In this demo I show you how to set custom permissions on folders in SharePoint using Power Automate. You might want to do...
Read more >
How to create unique permissions for a folder in SharePoint
For example, you want to hide (prevent other Site Users from seeing or accessing) the folder. More tricks on unique security and permissions...
Read more >
Fix “You Don't Currently Have Permission to Access This ...
Fix “You Don't Currently Have Permission to Access This Folder ” ... that were previously shared on the network with different rights.
Read more >
How to Manage Permissions on Shared OneDrive Folders
Once these folders have been created you can give permission to the right users for each folder. This ensures each person has access...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found