Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
c26c2d00
Commit
c26c2d00
authored
Dec 17, 2020
by
Rehab Hassanein
Committed by
Tom Atkins
Dec 17, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add troubleshooting scenario for 500 error
parent
1bb4b4af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
doc/user/packages/npm_registry/index.md
doc/user/packages/npm_registry/index.md
+23
-0
No files found.
doc/user/packages/npm_registry/index.md
View file @
c26c2d00
...
...
@@ -465,3 +465,26 @@ If you get this error, your package name may not meet the
Ensure the name meets the convention exactly, including the case.
Then try to publish again.
### `npm publish` returns `npm ERR! 500 Internal Server Error - PUT`
This is a
[
known issue
](
https://gitlab.com/gitlab-org/gitlab/-/issues/238950
)
in GitLab
13.
3.x and later. The error in the logs will appear as:
```
plaintext
>NoMethodError - undefined method `preferred_language' for #<Rack::Response
```
This might be accompanied by another error:
```
plaintext
>Errno::EACCES","exception.message":"Permission denied
```
This is usually a permissions issue with either:
-
`'packages_storage_path'`
default
`/var/opt/gitlab/gitlab-rails/shared/packages/`
.
-
The remote bucket if
[
object storage
](
../../../administration/packages/#using-object-storage
)
is used.
In the latter case, ensure the bucket exists and the GitLab has write access to it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment