Comments (6)
@akathimi This is now live in docker pull hylandsoftware/tagd:1.7.5
from harbor.tagd.
Huh. Interesting. I don't know how I haven't noticed this before. What version are you running? The docker run command you used makes it sound like you're running :latest
, is that correct?
from harbor.tagd.
yes the above is using latest docker images. and on k8s we have it on a cronjob.
here is the kubectl describe pod (version 1.0.26) and we have another cluster using version 1.7.2 with the same issue:
Containers:
tagd:
Container ID: docker://800c3f9050b9876e62624c6a7e88f8c472571f3221e2ffbe3d8b87576d6bdba4
Image: hylandsoftware/tagd:1.0.26
Image ID: docker-pullable://hylandsoftware/tagd@sha256:0dc655685ca94108cbd7b30e85f464fcd8d198b86d95c38efde47c008625ca1e
Port: <none>
Host Port: <none>
Command:
/bin/bash
-c
dotnet /Harbor.Tagd.dll --config-file config.yaml/config.yaml --endpoint $endpoint --user admin --password $password --destructive
State: Terminated
Reason: Completed
Exit Code: 0
Started: Thu, 21 Nov 2019 02:00:02 +0200
Finished: Thu, 21 Nov 2019 02:00:10 +0200
Ready: False
Restart Count: 0
and here is the pod's log:
[00:00:08 WRN] Tags will be deleted when matched!
[00:00:10 FTL] An Error was encountered while processing tags
System.Net.Http.HttpRequestException: Response status code does not indicate success: 403 (Forbidden).
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at Harbor.Tagd.API.HarborClient.<Login>d__13.MoveNext() in /home/travis/build/HylandSoftware/Harbor.Tagd/src/Harbor.Tagd/API/HarborClient.cs:line 80
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Harbor.Tagd.TagEngine.<Process>d__9.MoveNext() in /home/travis/build/HylandSoftware/Harbor.Tagd/src/Harbor.Tagd/TagEngine.cs:line 64
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Harbor.Tagd.TagEngine.<Process>d__9.MoveNext() in /home/travis/build/HylandSoftware/Harbor.Tagd/src/Harbor.Tagd/TagEngine.cs:line 99
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Harbor.Tagd.TagEngine.<Process>d__9.MoveNext() in /home/travis/build/HylandSoftware/Harbor.Tagd/src/Harbor.Tagd/TagEngine.cs:line 106
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Harbor.Tagd.Program.<DoClean>d__3.MoveNext() in /home/travis/build/HylandSoftware/Harbor.Tagd/src/Harbor.Tagd/Program.cs:line 126
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Harbor.Tagd.Program.<Main>d__2.MoveNext() in /home/travis/build/HylandSoftware/Harbor.Tagd/src/Harbor.Tagd/Program.cs:line 96
You can see that the error message is different but the exit code is always 0.
hope this helps :)
from harbor.tagd.
We have a similar cron job setup internally. Thanks for the report, I'll try to take a closer look later this afternoon.
from harbor.tagd.
Nice find! This was totally my fault. I'm used to Fatal errors exiting for you with Logrus in Go, it appears Serilog doesn't do that. I have a PR up now to fix it, I'll try to get that merged this week but it may take a bit for approvals due to a holiday in the US. You can make your own image from 43e4086 if you need something sooner.
from harbor.tagd.
@nlowe thanks
from harbor.tagd.
Related Issues (20)
- Parallelization changes sometimes throw FlurlHttpException stating the collection was modified HOT 3
- logon error ? HOT 1
- HTTP/405 on registry connect attempt HOT 5
- Slack Notifier not called if config pulling throws an exception
- Trigger online GC On Harbor 1.7+
- Please add document about supporting Habror version range HOT 4
- need support for https harbor HOT 1
- tags are not deleting HOT 9
- clean up for Helm charts HOT 2
- The rules match only one project HOT 2
- 504 Timeout should skip to next repo and not crash HOT 2
- Unable to run tagd harbor v.1.8.1 with oidc. HOT 4
- Error with harbor 1.8 ? HOT 7
- Error with harbor 1.10.1 : 422 (Unprocessable Entity).
- SSL connect error in docker image
- Specify absolute path to dotnet and Harbor.Tagd.dll in docker entrypoint
- Parallel-ize tag processing
- Default project / repo / tag to `.*` if not specified
- Improve logging around cert issues
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from harbor.tagd.