Skip to content
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.

Appmanager misinterprets HONO-Parameters #57

Closed
m-lenz opened this issue May 21, 2019 · 5 comments
Closed

Appmanager misinterprets HONO-Parameters #57

m-lenz opened this issue May 21, 2019 · 5 comments

Comments

@m-lenz
Copy link

m-lenz commented May 21, 2019

When using the optional HONO-parameters for the app-manager, the application bricks:

Optional HONO parameters

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/local/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/app/kuksa/appmanager/__main__.py", line 44, in <module>
    password=__get_config_value('HONO_PASSWORD'),
  File "/app/kuksa/appmanager/hono.py", line 22, in __init__
    self.server_port = int(server.split(":")[1])
IndexError: list index out of range

Starting the app-manager without the HONO-Parameters results in the following error-messages, when updating;

urllib3.exceptions.MaxRetryError:
 HTTPConnectionPool(host='<secret-url>, port=XYAB): 
Max retries exceeded with url: /DEFAULT/controller/v1/OEM_EXPLEO 
(Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75fa9f70>: Failed to establish a new connection: [Errno 110] Operation timed out',))
@sschoenberg
Copy link
Contributor

sschoenberg commented May 23, 2019

The hawkbit port has to be part of the HAWKBIT_SERVER environment variable like this:
HAWKBIT_SERVER=http://hawkbit-server:8080

@m-lenz
Copy link
Author

m-lenz commented May 23, 2019

thanks @sschoenberg ! Now the appmanager can be started inside docker again (without Hono)!
It even recognizes updates made and tries to deploy them.

However, when updating apps, the manager fails due to a missing docker-container.json

DEBUG - kuksa.appmanager.hawkbit.Client - Handle 'deploymentBase' action: <secret-url>
2019-04-10 15:14:29,539 - Thread-1 - ERROR - kuksa.appmanager.hawkbit.DeploymentJob - App Published_Traccar has no config-file with name docker-container.json
2019-04-10 15:14:30,762 - Thread-1 - DEBUG - urllib3.connectionpool - <secret-url> "POST <secret-url>" 200 0

After it fails, the manager won't see future updates.

2019-04-10 15:19:11,419 - MainThread - DEBUG - kuksa.appmanager.hawkbit.Client - Received actions: {'config': {'polling': {'sleep': '00:05:00'}}}

despite another pending update (until restarted)

@m-lenz
Copy link
Author

m-lenz commented May 23, 2019

Update ends in
requests.exceptions.HTTPError: 410 Client Error: Gone for url: <xyz.abc>
and crashes the app-manager

@rai20
Copy link
Contributor

rai20 commented Jun 11, 2019

Hi, could you remove the public IPs references used in this issue. The hawkbit links are intended to be used for internal purposes.

@SebastianSchildt
Copy link
Contributor

I this still relevant? "Works for me".

@m-lenz m-lenz closed this as completed Oct 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants