-
Notifications
You must be signed in to change notification settings - Fork 26
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
Problem with great amount of entries. #215
Comments
I investigated a bit more. lstags does not work completely sequentially from the yaml files right? In the log i see, that the last image/tags in the sorted yaml is not pushed at the end. There are two more images/tags processed after that image/tags that come alphabetically and from the yaml file before that image. When i remember right we never missed an image after the lstags sync. So i think the problem is exiting when lstags is finished. This would also explain the lots of hanging lstags processes. |
could U please:
Yes,
This is really interesting. For a research sake, could you provide your yaml file here (if it's not confidential, of course!)? |
We tried the 1.2.12 now and have the same problems with authentication. I check if we can provide the yaml file. |
And rolling back to What kind of authentication you are using with Artifactory? BASIC or TOKEN? |
Sorry for the long delay, we use BASIC AUTH with username/password and not the artifactory token. |
This is strange indeed. There were no changes on BASIC AUTH side in Call it a blunt, naive suggestion - but from the machine/VM/container you are running |
Yes, i can pull and push images normally. |
Just released a new version https://github.com/ivanilves/lstags/releases/tag/v1.2.13 with better tracing. Could you please run it and share the [improved] tracing output here? 🙏 |
Sorry for the delay. I cherry-picked your 2 commits for better tracing to the latest working version 1.2.10 with the following output. Read my comments inside the two ### about what was written there:
This is the output from your non working version 1.2.13. Read my comments inside the two ### about what was written there:
I used the command line base64 tool to decode the string and got the error '': invalid input". But for me the json looks complete. At least there is { and }. See also the missing Docker-Distribution-Api-Version header and the added Www-Authenticate header. |
I think our recent conversation belongs more to #214 |
True! moved to #214 |
Would like to ask you if original issue "Problem with great amount of entries" is still a thing? Thank U! |
@ivanilves We havn't experienced hanging lstags processes anymore after syncing great amount of entries. |
Good, closing 😄 |
We have an other problem that happens with 1.2.7 till 1.2.11. We mirror a lot of images from Docker Hub and the yaml file with the images/tags is large. The problem was, that lstags stopped working after a specific amount of images/tags. We enabled trace logging but it does not show anything useful. The "batches" all work fine and the "state" is shown. But during "[PULL/PUSH] PUSHING" there is a moment when the time to the next "[PULL/PUSH] PUSHING" increases heavily from image to image until some image where lstags waits forever. We looked at the process and it is not crashed but it does not run anymore.
We found a workaround by splitting the yaml file from Docker Hub but it seems that there is a problem when the amount of images, tags or size reaches some limit after that lstags stops working.
We also found out that the lstags process does not terminate when run from gitlab-ci and terminated through pipeline timeout. We found hanging lstags processes on the runner. But sending them a regular sigterm works to to terminate them.
The text was updated successfully, but these errors were encountered: