repman icon indicating copy to clipboard operation
repman copied to clipboard

Version * for package not found.

Open azakhozhiy opened this issue 3 years ago • 9 comments

Greetings!

I use a self-hosted Repman. I have a package with the tag 1.0.0 in my self-hosted Gitlab. After I add this package to Repman, I get an error: RuntimeException - Version 1.0.0.0 for package {package-name} not found.

What could be the problem? Thanks in advance.

azakhozhiy avatar Apr 02 '21 07:04 azakhozhiy

Can you write in what environment the application works? (docker ?, vm?, have you used ansible?) Please check:

  • symfony logs in var/log/prod.log
  • is distribution file exist in var/repo dir?
  • is version exist in database?

akondas avatar Apr 02 '21 17:04 akondas

Same here, launched repman with docker-compose. Everything works fine with github packages, but packages from our private bitbucket errors Screenshot 2021-07-30 at 10 02 06

nothing in logs: 172.18.0.4 - 30/Jul/2021:02:55:36 +0000 "POST /index.php" 302

Novemb3r avatar Jul 30 '21 03:07 Novemb3r

I experience the same problem. The version reported in error is always with one or more 0 than what really should be.

In the repo I have arleady tag with 1.1 and Repman reports that 1.1 as a version but shows also the error for missing version 1.1.0.0

How can we solve this problem?

anebi avatar Jan 11 '22 10:01 anebi

I forgot to mention that I run it on Docker. From what I see version doesn't exist in DB and under var/repo/... i see only composer.json file.

anebi avatar Jan 12 '22 23:01 anebi

I experience the same problem. The version reported in error is always with one or more 0 than what really should be.

In the repo I have arleady tag with 1.1 and Repman reports that 1.1 as a version but shows also the error for missing version 1.1.0.0

How can we solve this problem?

Same here, with the latest version on kubernetes

RedOne-Guerad avatar Jul 08 '22 10:07 RedOne-Guerad

@akondas I face the same problem.

Running RepMan locally with docker (any version), no ansible.

Symfony logs (consumer.log, prod.log) do not contain relevant information regarding this issue. There are package-name.json files under var/repo. Packages exists in database but no version exits inside organization_package_version table.

I can provide more information if needed. A few months ago everything worked fine.

apokalipscke avatar Sep 01 '22 16:09 apokalipscke

I have the same issue. Running repman locally with docker. My repository type by the way is git. The git server is gitlab.

mmelyp avatar Oct 13 '22 18:10 mmelyp

@akondas for us this was related to a problem with the docker-image setup. The cron runs as root whilst php-fpm runs under a different user. Since /var/ is mounted between the images this causes permissions issues.

There are a couple of other problems relating to this issue as well, I think tweaking the docker-composer.yml will fix most of these issues!

lenvanessen avatar May 24 '23 11:05 lenvanessen

I have the same problem! Can anyone help me? it was working normally, but out of nowhere it got this error, and now the composer required nor update doesn't work saying it can't find the version

image

MateusM3 avatar Mar 26 '24 18:03 MateusM3