fiskaltrust / product-de-bring-your-own-datacenter

Information about the fiskaltrust "Bring your own Data Center" product, which enables hosting the fiskaltrust.Middleware in data centers.
5 stars 2 forks source link

Only some Cashboxes work, the others return 500 - Internal Server Error #36

Closed JulianSchmidtke closed 3 years ago

JulianSchmidtke commented 3 years ago

Describe the bug We create two Cashboxes in the same way. We create a new Queue for each one and the queues reference the same tse. When we call the /api/echo endpoint for one, we receive a successful response. The other returns 500 - Internal Server error. We had this problem with many cashboxes, but cannot see a pattern.

To Reproduce Create one TSE Create Two Queues (with http endpoint) Create two Cashboxes

Sometimes only one works..

Expected behavior Cashboxes created this way should echo without an error. It should work like here: https://docs.fiskaltrust.cloud/de/docs/posdealers/rollout-doc/middleware#konfiguration-der-scu

Screenshots image image

STDOUT/STDERR This is the only log i found. I have no idea if it is because of our error or something completely different:

2021/03/04 14:58:45 kubernetes:secret\|bring-your-own-datacenter\|*\|hostname=*: ERROR: WORKER PANICKED: unable to parse requirement: invalid label value: "*": at key: "hostname": a valid label must be an empty string or consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue', or 'my_value', or '12345', regex used for validation is '(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?')

Cashbox Information (please complete the following information): Working: 1b6318aa-5cf5-44c8-8cce-5825497bc6c3

Not working: d372f363-9872-48b5-a62c-1a5ec597655b 55a75454-5f2e-4d81-86e1-ae215b38157c

Additional context If we created the cashbox in a wrong way, please send us the wiki page with a working sample solution.

JulianSchmidtke commented 3 years ago

Without actively changing a configuration the CashBox d372f363-9872-48b5-a62c-1a5ec597655b does work now. A newly created Cashbox 9e5c3b98-1efc-4a95-a53a-c2a71c143e61 does not.

fiskaltrust-ckr commented 3 years ago

Hi Julian, thank you for your inquiry. May i ask you for some additional information:

fiskaltrust-ckr commented 3 years ago

Hi Julian, we investigated this issue partially with cashboxid 9e5c3b98-1efc-4a95-a53a-c2a71c143e61.

I hope this helps a bit. BR Christian

fiskaltrust-ckr commented 3 years ago

As there are no further questions, i will close this issue...