Cannot start `karton-mwdb-reporter` with `docker-compose-dev-karton`
Repumba opened this issue · 0 comments
Repumba commented
Environment information
- MWDB version (from
/about
): - Installation method:
- mwdb.cert.pl service
- From PyPi (
pip install mwdb-core
) - From docker-compose
- Other (please explain)
- Plugins installed:
Behaviour the bug (what happened?)
karton-mwdb-reporter
exits with code 1
karton-mwdb-reporter_1 | Traceback (most recent call last):
karton-mwdb-reporter_1 | File "/usr/local/lib/python3.9/site-packages/mwdblib/api/api.py", line 175, in perform_request
karton-mwdb-reporter_1 | response.raise_for_status()
karton-mwdb-reporter_1 | File "/usr/local/lib/python3.9/site-packages/requests/models.py", line 1021, in raise_for_status
karton-mwdb-reporter_1 | raise HTTPError(http_error_msg, response=self)
karton-mwdb-reporter_1 | requests.exceptions.HTTPError: 403 Client Error: FORBIDDEN for url: http://mwdb-web.:3000/api/auth/login
karton-mwdb-reporter_1 |
karton-mwdb-reporter_1 | During handling of the above exception, another exception occurred:
karton-mwdb-reporter_1 |
karton-mwdb-reporter_1 | Traceback (most recent call last):
karton-mwdb-reporter_1 | File "/usr/local/bin/karton-mwdb-reporter", line 8, in <module>
karton-mwdb-reporter_1 | sys.exit(MWDBReporter.main())
karton-mwdb-reporter_1 | File "/usr/local/lib/python3.9/site-packages/karton/core/utils.py", line 122, in newfunc
karton-mwdb-reporter_1 | return self.func(owner, *args, **kwargs)
karton-mwdb-reporter_1 | File "/usr/local/lib/python3.9/site-packages/karton/core/base.py", line 223, in main
karton-mwdb-reporter_1 | service = cls.karton_from_args()
karton-mwdb-reporter_1 | File "/usr/local/lib/python3.9/site-packages/karton/core/base.py", line 172, in karton_from_args
karton-mwdb-reporter_1 | return cls(config=config)
karton-mwdb-reporter_1 | File "/usr/local/lib/python3.9/site-packages/karton/mwdb_reporter/mwdb_reporter.py", line 101, in __init__
karton-mwdb-reporter_1 | self.mwdb = self._get_mwdb()
karton-mwdb-reporter_1 | File "/usr/local/lib/python3.9/site-packages/karton/mwdb_reporter/mwdb_reporter.py", line 88, in _get_mwdb
karton-mwdb-reporter_1 | mwdb = MWDB(
karton-mwdb-reporter_1 | File "/usr/local/lib/python3.9/site-packages/mwdblib/core.py", line 94, in __init__
karton-mwdb-reporter_1 | self.api = api or APIClient(**api_options)
karton-mwdb-reporter_1 | File "/usr/local/lib/python3.9/site-packages/mwdblib/api/api.py", line 90, in __init__
karton-mwdb-reporter_1 | self.login(self.options.username, self.options.password)
karton-mwdb-reporter_1 | File "/usr/local/lib/python3.9/site-packages/mwdblib/api/api.py", line 141, in login
karton-mwdb-reporter_1 | token = self.post(
karton-mwdb-reporter_1 | File "/usr/local/lib/python3.9/site-packages/mwdblib/api/api.py", line 288, in post
karton-mwdb-reporter_1 | return self.request("post", *args, **kwargs)
karton-mwdb-reporter_1 | File "/usr/local/lib/python3.9/site-packages/mwdblib/api/api.py", line 233, in request
karton-mwdb-reporter_1 | response = self.perform_request(method, url, *args, **kwargs)
karton-mwdb-reporter_1 | File "/usr/local/lib/python3.9/site-packages/mwdblib/api/api.py", line 181, in perform_request
karton-mwdb-reporter_1 | raise mapped_error
karton-mwdb-reporter_1 | mwdblib.exc.InvalidCredentialsError: Invalid login or password.
mwdb_karton-mwdb-reporter_1 exited with code 1
Expected behaviour
It starts normally
Reproduction Steps
docker-compose -f docker-compose-dev-karton.yml up