Skip to content
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

500 Internal Server Error When Uploading .deb Packages #1321

Open
rinkesh314e opened this issue Oct 25, 2023 · 3 comments
Open

500 Internal Server Error When Uploading .deb Packages #1321

rinkesh314e opened this issue Oct 25, 2023 · 3 comments
Labels

Comments

@rinkesh314e
Copy link

I am trying to host a apt repo with Artipie debian support. I have setup an Artipie server and added a deb repo in it. When i try to upload a .deb package I get 500 INTERNAL_SERVER_ERROR response.

  • I have checked the deb packages and they are working fine when i try to install it directly.
  • I have reviewed the configs and they seem to be correct.
  • I have searched for similar issues in the Artipie repository, but I couldn't find a solution

I appreciate any assistance or guidance to resolve this issue. Thank you for your help.

@olenagerasimova
Copy link
Member

olenagerasimova commented Oct 25, 2023

hi, could you please show your configuration? Main artipie settings and repository settings? You can try to create files repository and upload any file there to check if configs are generally correct. Example is available here

@rinkesh314e
Copy link
Author

i am testing using the docker deployment of artipie. I have not changed the default config of artipie. I have created a new repository debian1 with the below configs

{
  "repo": {
    "type": "deb",
    "storage": "default",
    "settings": {
      "Components": "main",
      "Architectures": "amd64"
    }
  }
}

While uploading .deb files using the command
curl http://{username}:{password}@{host}:{port}/{repository-name}/{component} --upload-file /path/to/package.deb

I get 500 INTERNAL SERVER ERROR. Below are the server logs from the artipie docker container

[vert.x-eventloop-thread-0] INFO com.artipie.http.MainSlice - >> PUT /debian1/main HTTP_1_1

Host: 192.168.236.96:8080
Authorization: Basic cmlua2VzaDpwYXNzd29yZA==
User-Agent: curl/7.81.0
Accept: /
Expect: 100-continue
content-length: 1112
[ForkJoinPool.commonPool-worker-24] INFO com.artipie.http.MainSlice - << CONTINUE
[ForkJoinPool.commonPool-worker-24] INFO com.artipie.settings.cache.CachedUsers - Successfully authenticated 'user' user via CachedUsers(size=2),origin=Joined([Joined([AuthFromEnv(),GithubAuth()]),AuthFromStorage])
Oct 25, 2023 4:10:25 PM com.artipie.asto.LoggingStorage log
INFO: Exists 'debian1/dists/debian1/Release': true
Oct 25, 2023 4:10:25 PM com.artipie.asto.LoggingStorage log
INFO: Save 'debian1/main': Optional.empty
Oct 25, 2023 4:10:25 PM com.artipie.asto.LoggingStorage log
INFO: Value 'debian1/main': Optional[1112]
Oct 25, 2023 4:10:25 PM com.artipie.asto.LoggingStorage log
INFO: Delete 'debian1/main'
[ForkJoinPool.commonPool-worker-24] INFO com.artipie.http.MainSlice - << INTERNAL_ERROR

Copy link

Issue is stale, CC: @artipie/maintainers

@github-actions github-actions bot added the stale label Dec 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants