phax / phoss-smp

phoss SMP - a Peppol and OASIS BDXR SMP Server, CEF eDelivery compliant
128 stars 37 forks source link

Error creating new SMP Service Group #187

Closed bdijk12 closed 2 years ago

bdijk12 commented 2 years ago

We have deployed a new release, but when we try to create a service group we get the below error:

Error creating the new SMP Service Group for participant 'iso6523-actorid-upis::0106:xxxxxxx'. Technical details: SMPInternalErrorException - Error creating ServiceGroup 'iso6523-actorid-upis::0106:xxxxxxx' Caused by: SQLException - Caught exception while perfoming something in a level 1 transaction [2] Caused by: RegistrationHookException - Could not create business iso6523-actorid-upis::0106:xxxxxx in SML Caused by: ClientTransportException - The server sent HTTP status code 404: null

It looks like it is running into an SQL issue, so I re-inited the database, to no avail.

Any thoughts how to debug this issue further?

phax commented 2 years ago

The problem has nothing to do with the database. The problem was the creation of the participant in the centralized SML. Please check the following things:

  1. Check if the participant is already registered in the network - using https://peppol.helger.com/public/locale-en_US/menuitem-tools-participant
  2. Make sure your SMP has a Peppol SMP certificate configured
  3. Make sure the SMP the Peppol certificate matches the SML stage (Test Certificate only works on Test SML (=SMK); Production certificate only works on Production SML)

hth

bdijk12 commented 2 years ago

Hi,

I did some checking:

Id 9944:62405292 is registered at the SMK

When creating a new service group I now get

Error creating the new SMP Service Group for participant 'iso6523-actorid-upis::9944:62405292'. Technical details: SMPInternalErrorException - Error creating ServiceGroup 'iso6523-actorid-upis::9944:62405292' Caused by: SQLException - Caught exception while perfoming something in a level 1 transaction [3] Caused by: RegistrationHookException - Could not create business iso6523-actorid-upis::9944:62405292 in SML Caused by: ClientTransportException - The server sent HTTP status code 400: Bad Request

But: when I try to create one for

iso6523-actorid-upis::0106:23082475

It works.

So where does it go wrong?

Outlook voor Androidhttps://aka.ms/AAb9ysg downloaden


From: Philip Helger @.> Sent: Tuesday, January 4, 2022 5:33:11 PM To: phax/phoss-smp @.> Cc: Bart-Jan van Dijk @.>; Author @.> Subject: Re: [phax/phoss-smp] Error creating new SMP Service Group (Issue #187)

The problem has nothing to do with the database. The problem was the creation of the participant in the centralized SML. Please check the following things:

  1. Check if the participant is already registered in the network - using https://peppol.helger.com/public/locale-en_US/menuitem-tools-participant
  2. Make sure your SMP has a Peppol SMP certificate configured
  3. Make sure the SMP the Peppol certificate matches the SML stage (Test Certificate only works on Test SML (=SMK); Production certificate only works on Production SML)

hth

— Reply to this email directly, view it on GitHubhttps://github.com/phax/phoss-smp/issues/187#issuecomment-1004959965, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AXEYPCXNO2VRMXRI2DYSXS3UUMOMPANCNFSM5LHBNPWQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.Message ID: @.***>

bdijk12 commented 2 years ago

I deleted the SMP from the SMK, and tried to reregister.

Error registering SMP 'QUYNTESS-SMK' with physical address '94.228.219.40' and logical address 'http://smp-test.quyntess.com' to the SML 'https://acc.edelivery.tech.ec.europa.eu/edelivery-sml'. Technical details: ClientTransportException - Der Server hat HTTP-Statuscode 400 gesendet: Bad Request

Now I’m really stuck.

Any ideas?

Bart-Jan

From: Philip Helger @.> Sent: Tuesday, January 4, 2022 5:33 PM To: phax/phoss-smp @.> Cc: Bart-Jan van Dijk @.>; Author @.> Subject: Re: [phax/phoss-smp] Error creating new SMP Service Group (Issue #187)

The problem has nothing to do with the database. The problem was the creation of the participant in the centralized SML. Please check the following things:

  1. Check if the participant is already registered in the network - using https://peppol.helger.com/public/locale-en_US/menuitem-tools-participant
  2. Make sure your SMP has a Peppol SMP certificate configured
  3. Make sure the SMP the Peppol certificate matches the SML stage (Test Certificate only works on Test SML (=SMK); Production certificate only works on Production SML)

hth

— Reply to this email directly, view it on GitHubhttps://github.com/phax/phoss-smp/issues/187#issuecomment-1004959965, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AXEYPCXNO2VRMXRI2DYSXS3UUMOMPANCNFSM5LHBNPWQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.Message ID: @.**@.>>

bdijk12 commented 2 years ago

I'll be stumped. I redeleted the SMP and now it worked.

Successfully registered SMP 'QUYNTESS-SMK' with physical address '94.228.219.40' and logical address 'http://smp-test.quyntess.com' to the SML 'https://acc.edelivery.tech.ec.europa.eu/edelivery-sml'.

bdijk12 commented 2 years ago

And now of course, my participants are not know and I cannot delete them

bdijk12 commented 2 years ago

And found that check-dns state can help :-) Nice

phax commented 2 years ago

Okay, so you are digging yourself the way through :) Alternatively you can always go to the "SMP Settings" and disable the SML there. Than you can create/delete entries "just locally". Btw. I can't reach your SMP from the outside.

bdijk12 commented 2 years ago

Under which url?

Outlook voor Androidhttps://aka.ms/AAb9ysg downloaden


From: Philip Helger @.> Sent: Tuesday, January 4, 2022 8:47:36 PM To: phax/phoss-smp @.> Cc: Bart-Jan van Dijk @.>; Author @.> Subject: Re: [phax/phoss-smp] Error creating new SMP Service Group (Issue #187)

Okay, so you are digging yourself the way through :) Alternatively you can always go to the "SMP Settings" and disable the SML there. Than you can create/delete entries "just locally". Btw. I can't reach your SMP from the outside.

— Reply to this email directly, view it on GitHubhttps://github.com/phax/phoss-smp/issues/187#issuecomment-1005120478, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AXEYPCUHYUO3OJ32YLJ6D7DUUNFFRANCNFSM5LHBNPWQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.Message ID: @.***>

bjdijk commented 2 years ago

I removed all paths from port 80 except /secure. Is that correct or should I block more on oort 80?

phax commented 2 years ago

If the SMP is for Peppol it MUSt run the query API under Port 80. You can put /secure etc. under Port 443 if you like

phax commented 2 years ago

In the meantime I can access http://smp-test.quyntess.com/public from my machine - nice

phax commented 2 years ago

So I assume everything works now as expected?

bjdijk commented 2 years ago

Yes. Although the http errors are a bit strange. Seems to arise ifyou do not wait long enough for the update to go through. Am I correct?

Op ma 10 jan. 2022 21:17 schreef Philip Helger @.***>:

So I assume everything works now as expected?

— Reply to this email directly, view it on GitHub https://github.com/phax/phoss-smp/issues/187#issuecomment-1009307229, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADJIPRJ3QOQYZ5MLXJ534OLUVM5F7ANCNFSM5LHBNPWQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

phax commented 2 years ago

These errors can have plenty of reasons. If you have a slow network, you may increase the sml.connection.timeout.ms and sml.request.timeout.ms values to increase the timeout. The other HTTP errors from the SML usually have a semantic meaning as described in https://github.com/phax/phoss-smp/wiki/SML-notes