Harbor.Tagd
Harbor.Tagd copied to clipboard
Error with harbor 1.10.1 : 422 (Unprocessable Entity).
Hi, after upgrade Harbor to version 1.10.1 I have this error
docker run -it --rm -v /etc/harbortagd/config:/config hylandsoftware/tagd \
--config-file /config/config.yml \
--endpoint https://HARBOR.ADDRESS/ \
--insecure-disable-certificate-validation \
--user USER --password PASSWORD \
-vdebug
Unable to find image 'hylandsoftware/tagd:latest' locally
latest: Pulling from hylandsoftware/tagd
Digest: sha256:a360897f30eb81cc0e57bf295ef781833ed976e870a98809782404077269f35d
Status: Downloaded newer image for hylandsoftware/tagd:latest
[16:04:05 WRN] Ignoring Certificate Errors
[16:04:05 INF] Loading rules using Harbor.Tagd.Rules.FilesystemRuleProvider
[16:04:06 WRN] Running in report-only mode. To delete tags, run with --destructive
[16:04:06 INF] Connecting to https://HARBOR.ADDRESS/ as USER
[16:04:06 INF] Running in report-only mode
[16:04:06 DBG] Detecting Harbor Version
[16:04:06 DBG] Newer version of harbor found, using 1.7.0+ login route
[16:04:06 FTL] An Error was encountered while processing tags
System.Net.Http.HttpRequestException: Response status code does not indicate success: 422 (Unprocessable Entity).
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at Harbor.Tagd.API.HarborClient.<DoLoginFor>d__15.MoveNext() in /home/travis/build/HylandSoftware/Harbor.Tagd/src/Harbor.Tagd/API/HarborClient.cs:line 116
--- 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.API.HarborClient.<Login>d__14.MoveNext() in /home/travis/build/HylandSoftware/Harbor.Tagd/src/Harbor.Tagd/API/HarborClient.cs:line 82
--- 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 131
--- 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 98
/api/systeminfo:
with_notary true
with_admiral false
admiral_endpoint ""
auth_mode "ldap_auth"
registry_url "HARBOR.ADDRESS"
external_url "https://HARBOR.ADDRESS"
project_creation_restriction "everyone"
self_registration true
has_ca_root false
harbor_version "v1.10.1-f3e11715"
registry_storage_provider_name "filesystem"
read_only false
with_chartmuseum true
notification_enable true
/var/log/harbor/proxy.log
Mar 31 14:35:37 192.168.64.1 proxy[99]: 192.168.64.1 - "GET /api/systeminfo HTTP/1.1" 200 277 "-" "-" 0.004 0.004 .
Mar 31 14:35:37 192.168.64.1 proxy[99]: 192.168.64.1 - "POST /c/login HTTP/1.1" 422 1934 "-" "-" 0.003 0.004 .