Git Product home page Git Product logo

Comments (6)

nlowe avatar nlowe commented on August 28, 2024 1

@akathimi This is now live in docker pull hylandsoftware/tagd:1.7.5

from harbor.tagd.

nlowe avatar nlowe commented on August 28, 2024

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.

akathimi avatar akathimi commented on August 28, 2024

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.

nlowe avatar nlowe commented on August 28, 2024

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.

nlowe avatar nlowe commented on August 28, 2024

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.

akathimi avatar akathimi commented on August 28, 2024

@nlowe thanks

from harbor.tagd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.