docker build fails outside pipeline due to invalid aleksis meta-package in registry #53

Closed
opened 2022-06-22 23:35:23 +02:00 by OSevangelist · 22 comments
OSevangelist commented 2022-06-22 23:35:23 +02:00 (Migrated from edugit.org)

When building and deploying the Docker based base setup over at

https://github.com/AlekSIS-org/AlekSIS.git

the process prematurely ends with the following error

ERROR: Could not find a version that satisfies the requirement aleksis-app-stoelindeling<1.1,>=1.0 (from AlekSIS==2021.12.post0) (from versions: 0.1+20220411133001.8a6d8244, 0.1+20220411142503.4d6ce395, 0.1+20220413142724.b62877f8, 0.1+20220425195122.472eecc1, 0.1+20220501162156.8dd17b56, 0.1+20220604111625.ced56207, 0.1+20220604145040.4c6bc873, 0.1+20220605092309.e7c89639, 0.1+20220605110701.38a31606, 0.1+20220621144127.d58e065e)
ERROR: No matching distribution found for aleksis-app-stoelindeling<1.1,>=1.0 (from AlekSIS==2021.12.post0)

Any clue what causes this error. I couldn't find an intuitive solution

When building and deploying the Docker based base setup over at https://github.com/AlekSIS-org/AlekSIS.git the process prematurely ends with the following error ``` ERROR: Could not find a version that satisfies the requirement aleksis-app-stoelindeling<1.1,>=1.0 (from AlekSIS==2021.12.post0) (from versions: 0.1+20220411133001.8a6d8244, 0.1+20220411142503.4d6ce395, 0.1+20220413142724.b62877f8, 0.1+20220425195122.472eecc1, 0.1+20220501162156.8dd17b56, 0.1+20220604111625.ced56207, 0.1+20220604145040.4c6bc873, 0.1+20220605092309.e7c89639, 0.1+20220605110701.38a31606, 0.1+20220621144127.d58e065e) ERROR: No matching distribution found for aleksis-app-stoelindeling<1.1,>=1.0 (from AlekSIS==2021.12.post0) ``` Any clue what causes this error. I couldn't find an intuitive solution
nik commented 2022-06-22 23:35:23 +02:00 (Migrated from edugit.org)

moved from AlekSIS-Core#704

moved from AlekSIS-Core#704
OSevangelist commented 2022-06-22 23:38:54 +02:00 (Migrated from edugit.org)

@nik any quick idea on a fix here that would allow me to test run this system for a board discussion on school administration software here in the federal state of Saxony-Anhalt tomorrow at 4pm?

@nik any quick idea on a fix here that would allow me to test run this system for a board discussion on school administration software here in the federal state of Saxony-Anhalt tomorrow at 4pm?
nik commented 2022-06-23 00:00:51 +02:00 (Migrated from edugit.org)

Please use the officially released version instead of a development branch.

Also, please do not rely on anything about AlekSIS mirrored to GitHub. The mirror there is only waiting for removal by @hansegucker, we do not endorse or actively maintain the code there.

Please use the officially released version instead of a development branch. Also, please do not rely on anything about AlekSIS mirrored to GitHub. The mirror there is only waiting for removal by @hansegucker, we do not endorse or actively maintain the code there.
nik commented 2022-06-23 00:03:28 +02:00 (Migrated from edugit.org)

mentioned in issue #49

mentioned in issue #49
OSevangelist commented 2022-06-23 00:08:00 +02:00 (Migrated from edugit.org)

@nik Alright, did that. Checked out the tag 2021.12.1 in a separate branch from the original Gitlab at edugit.org but the problem stays exactly the same

@nik Alright, did that. Checked out the tag 2021.12.1 in a separate branch from the original Gitlab at edugit.org but the problem stays exactly the same
OSevangelist commented 2022-06-23 00:09:02 +02:00 (Migrated from edugit.org)

@nik it doesnt seem to find the python wheel with "No matching distribution found for aleksis-app-stoelindeling<1.1,>=1.0 (from AlekSIS==2021.12.post0)"

@nik it doesnt seem to find the python wheel with "No matching distribution found for aleksis-app-stoelindeling<1.1,>=1.0 (from AlekSIS==2021.12.post0)"
nik commented 2022-06-23 00:09:24 +02:00 (Migrated from edugit.org)

Please post the exact steps you take to run the build.

But, I don't see how we would fix this right now – I assume that for a quick test, there is no need to build the docker image yourself.

Please post the exact steps you take to run the build. But, I don't see how we would fix this right now – I assume that for a quick test, there is no need to build the docker image yourself.
nik commented 2022-06-23 00:10:09 +02:00 (Migrated from edugit.org)

AlekSIS-App-Stoelindeling is unreleased, and not a dependency of any released version of the AlekSIS meta-package.

`AlekSIS-App-Stoelindeling` is unreleased, and not a dependency of any released version of the AlekSIS meta-package.
OSevangelist commented 2022-06-23 00:10:57 +02:00 (Migrated from edugit.org)

Sorry i was unprecise i didn't build i just run 'docker-compose up -d' and this fails with the aforementioned error

Sorry i was unprecise i didn't build i just run 'docker-compose up -d' and this fails with the aforementioned error
OSevangelist commented 2022-06-23 00:17:29 +02:00 (Migrated from edugit.org)

FYI @nik the error is replicable with a clean fresh 'docker-compose up -d' on the 2021.12.1 tag of master without further ado

FYI @nik the error is replicable with a clean fresh 'docker-compose up -d' on the 2021.12.1 tag of master without further ado
nik commented 2022-06-23 00:19:47 +02:00 (Migrated from edugit.org)

That should by no means build the image locally… It should pull the image from our registry instead, and I did find out why the build fails: Someone has forgotten to bump the version number of the meta distribution to a new .dev version, so builds with a wrong version number have made it into our development registry. The aleksis-core Dockerfile is using our development registry during the builld (which is not an issue in our CI pipeline, but can cause the errorneous behaviour you are observing if built outside the pipeline).

I must admit though that we don't actively test docker-compose, because in all environments we work on we use either venv-based deployments or Kubernetes. If running without Docker is an option for you, please follow the steps in the handbook for installing using pip.

Getting a more or less representetive system before tomorrow seems unlikely though, because you will also need timetable data from somewhere. If you really need that system tomorrow, feel free to contact me privately to arrange paid support. If that is not an option, here are some hints you can follow:

  • Find out why docker-compose insists on building locally instead of downloading (maybe doing a manual docker pull registry.edugit.org/aleksis/official/aleksis is all that is needed?)
  • Deploy using pip
That should by no means build the image locally… It should pull the image from our registry instead, and I did find out why the build fails: Someone has forgotten to bump the version number of the meta distribution to a new `.dev` version, so builds with a wrong version number have made it into our development registry. The aleksis-core Dockerfile is using our development registry during the builld (which is not an issue in our CI pipeline, but can cause the errorneous behaviour you are observing if built outside the pipeline). I must admit though that we don't actively test docker-compose, because in all environments we work on we use either venv-based deployments or Kubernetes. If running without Docker is an option for you, please follow the steps in the handbook for installing using pip. Getting a more or less representetive system before tomorrow seems unlikely though, because you will also need timetable data from somewhere. If you really need that system tomorrow, feel free to contact me privately to arrange paid support. If that is not an option, here are some hints you can follow: * Find out why docker-compose insists on building locally instead of downloading (maybe doing a manual `docker pull registry.edugit.org/aleksis/official/aleksis` is all that is needed?) * Deploy using pip
nik commented 2022-06-23 00:21:10 +02:00 (Migrated from edugit.org)

changed title from {-Build Process Fails-} to {+docker build fails outside pipeline due to invalid aleksis meta-package in registry+}

changed title from **{-Build Process Fails-}** to **{+docker build fails outside pipeline due to invalid aleksis meta-package in registry+}**
nik commented 2022-06-23 00:21:19 +02:00 (Migrated from edugit.org)

assigned to @debdolph

assigned to @debdolph
nik commented 2022-06-23 00:23:28 +02:00 (Migrated from edugit.org)

Ah, it seems docker-compose up really always builds locally. You need to docker-compose pull manually to prevent this. (Source: man docker-compose)

Ah, it seems `docker-compose up` really always builds locally. You need to `docker-compose pull` manually to prevent this. (Source: `man docker-compose`)
nik commented 2022-06-23 00:24:42 +02:00 (Migrated from edugit.org)

@debdolph Please clean up the registry – all builds of aleksis with a version starting with 2021.12.post0 published after the respective tag are invalid.

@debdolph Please clean up the registry – all builds of `aleksis` with a version starting with `2021.12.post0` published after the respective tag are invalid.
OSevangelist commented 2022-06-23 00:26:02 +02:00 (Migrated from edugit.org)

Hi @nik no worries and thanks for the help already. Would have been nice to see the system for the discussion tomorrow but honestly we are also in a very early stage of discussion i got the hint to AlekSIS just today through Mike Gabriel (FreieSoftware GmbH) and Daniela Küllertz from the City of Magdeburg. Currently schools in our federal state use anything but Open Source for this purpose but i'll try to debug the issue later on in the discussion and of course if we get a project here we will contribute or involve you. Best and thanks again

Hi @nik no worries and thanks for the help already. Would have been nice to see the system for the discussion tomorrow but honestly we are also in a very early stage of discussion i got the hint to AlekSIS just today through Mike Gabriel (FreieSoftware GmbH) and Daniela Küllertz from the City of Magdeburg. Currently schools in our federal state use anything but Open Source for this purpose but i'll try to debug the issue later on in the discussion and of course if we get a project here we will contribute or involve you. Best and thanks again
nik commented 2022-06-23 00:26:44 +02:00 (Migrated from edugit.org)

mentioned in commit b275e6d7c0

mentioned in commit b275e6d7c0920aa4a7bad8c8ed0c6cd8eff8b8ec
nik commented 2022-06-23 00:29:20 +02:00 (Migrated from edugit.org)

Yep, I already assumed that you came here on this route ;).

In any case, please keep us updated so we can fix the handbook and build process for the next release, if necessary.

Yep, I already assumed that you came here on this route ;). In any case, please keep us updated so we can fix the handbook and build process for the next release, if necessary.
OSevangelist commented 2022-06-23 00:29:47 +02:00 (Migrated from edugit.org)

@nik no 'docker-compose pull' will only pull the images from for Postgres and Redis. The others are always build locally (if they aren't stored in the local docker space already).

@nik no 'docker-compose pull' will only pull the images from for Postgres and Redis. The others are always build locally (if they aren't stored in the local docker space already).
nik commented 2022-06-23 00:30:26 +02:00 (Migrated from edugit.org)

Hmm, strange. But docker pull on each of them does the trick?

Hmm, strange. But `docker pull` on each of them does the trick?
OSevangelist commented 2022-06-23 00:31:14 +02:00 (Migrated from edugit.org)

Will do if @debdolph is giving me a hint after cleanup i will give it a try again. Sleep well and thanks for the help again @nik

Will do if @debdolph is giving me a hint after cleanup i will give it a try again. Sleep well and thanks for the help again @nik
debdolph commented 2022-12-16 11:14:45 +01:00 (Migrated from edugit.org)

Cleaned up the registry...

Cleaned up the registry...
debdolph (Migrated from edugit.org) closed this issue 2022-12-16 11:14:46 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
aleksis/AlekSIS#53
No description provided.