GithubHelp home page GithubHelp logo

rossumai / chart-updater Goto Github PK

View Code? Open in Web Editor NEW
10.0 10.0 2.0 153 KB

Update Helm charts as they appear in the Helm repository

License: Apache License 2.0

Dockerfile 0.75% Python 92.29% Makefile 2.19% Mustache 4.76%

chart-updater's People

Contributors

bauerji avatar dependabot[bot] avatar evelyn9191 avatar gregy avatar jiri-pinkava avatar mihuross avatar pinkavaj avatar qiq avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

mihuross lbenka

chart-updater's Issues

Updater stuck on exception

When exception occurs, chart-updater is not terminated and becomes stuck.

2020-06-24 04:31:28,718 Checking for chart updates
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.8/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/app/chart_updater/updater.py", line 88, in update_loop
    self._one_update_iteration()
  File "/app/chart_updater/updater.py", line 65, in _one_update_iteration
    self.git.update_branch()
  File "/app/chart_updater/git.py", line 56, in update_branch
    self._run(["git", "fetch", "origin"])
  File "/app/chart_updater/git.py", line 35, in _run
    result = run(self._expand_env_vars(command), stdout=PIPE, stderr=STDOUT, text=True, env=env_copy, timeout=self.git_timeout)
  File "/usr/local/lib/python3.8/subprocess.py", line 491, in run
    stdout, stderr = process.communicate(input, timeout=timeout)
  File "/usr/local/lib/python3.8/subprocess.py", line 1024, in communicate
    stdout, stderr = self._communicate(input, endtime, timeout)
  File "/usr/local/lib/python3.8/subprocess.py", line 1867, in _communicate
    self._check_timeout(endtime, orig_timeout, stdout, stderr)
  File "/usr/local/lib/python3.8/subprocess.py", line 1068, in _check_timeout
    raise TimeoutExpired(
subprocess.TimeoutExpired: Command '['git', 'fetch', 'origin']' timed out after 30 seconds

Timed out git fetch causes the updater to halt

This was last log message on 2020-05-28 07:28

2020-05-27 21:10:06,189 Checking for chart updates
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.8/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/app/chart_updater/updater.py", line 88, in update_loop
    self._one_update_iteration()
  File "/app/chart_updater/updater.py", line 65, in _one_update_iteration
    self.git.update_branch()
  File "/app/chart_updater/git.py", line 56, in update_branch
    self._run(["git", "fetch", "origin"])
  File "/app/chart_updater/git.py", line 35, in _run
    result = run(self._expand_env_vars(command), stdout=PIPE, stderr=STDOUT, text=True, env=env_copy, timeout=self.git_timeout)
  File "/usr/local/lib/python3.8/subprocess.py", line 491, in run
    stdout, stderr = process.communicate(input, timeout=timeout)
  File "/usr/local/lib/python3.8/subprocess.py", line 1024, in communicate
    stdout, stderr = self._communicate(input, endtime, timeout)
  File "/usr/local/lib/python3.8/subprocess.py", line 1867, in _communicate
    self._check_timeout(endtime, orig_timeout, stdout, stderr)
  File "/usr/local/lib/python3.8/subprocess.py", line 1068, in _check_timeout
    raise TimeoutExpired(
subprocess.TimeoutExpired: Command '['git', 'fetch', 'origin']' timed out after 30 seconds

Deleting the pod helped to run again.

Password is revealed in log on failed chart download

Actual log:

2020-05-11 12:19:18,709 Cannot download chart list: 503 Server Error: Service Temporarily Unavailable for url: https://rossum:[email protected]/index.yaml

Expected log:

2020-05-11 12:19:18,709 Cannot download chart list: 503 Server Error: Service Temporarily Unavailable for url: https://rossum:[masked]@helm.private.repo/index.yaml

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.