Importing Studies without storing them on primary FS

92 views
Skip to first unread message

Alex Kaisar

unread,
Mar 4, 2025, 11:51:32 AMMar 4
to dcm4che
Hello all, i have the following problem.

I am trying to get dcm4chee to index some DCM files coming in from a migration from a past PACS installation, however since the actual storage that's gonna be used is the same, they don't want the dcm files being duplicated.

I've tried running storescu with a batch script i wrote but i see the dcm storage is actually importing them.

Is there another way to go about it or am I doing something wrong?

Thanks in advance

fleetwoodfc

unread,
Mar 15, 2025, 12:23:29 PMMar 15
to dcm4che
Some help here:   Import Instances on Storage

Alex Kaisar

unread,
Mar 15, 2025, 6:19:24 PMMar 15
to dcm4che
After trying for a while with this i've gotten to the point of getting 403 forbidden by the RS

I am attaching my .yml

I'm running Secured Archive/Restful Services on docker compose

Running the below commands

$TOKEN=`sudo curl -k -X POST https://ubuntu:8843/realms/dcm4che/protocol/openid-connect/token      -d "client_id=dcm4chee-arc-rs"      -d "client_secret=INQ42PyxiU3U7IWcnSGRClRW09GmeNM0"      -d "grant_type=client_credentials"`

 sudo find  -type f | curl -v -k -H "Authorization: Bearer $TOKEN" -H "Content-Type: text/plain" --data-binary @- http://ubuntu:8443/dcm4chee-arc/aets/DCM4CHEE/rs/instances/Old


Returns the following


* Host ubuntu:8443 was resolved.
* IPv6: (none)
* IPv4: 127.0.1.1
*   Trying 127.0.1.1:8443...
* Connected to ubuntu (127.0.1.1) port 8443
* ALPN: curl offers h2,http/1.1
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384 / X25519 / RSASSA-PSS
* ALPN: server accepted h2
* Server certificate:
*  subject: C=AT; O=dcm4che.org; CN=dcm4che
*  start date: Sep 18 14:54:44 2024 GMT
*  expire date: Sep 18 14:54:44 2034 GMT
*  issuer: C=FR; O=IHE Europe; CN=IHE Europe CA; OU=Gazelle
*  SSL certificate verify result: self-signed certificate in certificate chain (19), continuing anyway.
*   Certificate level 0: Public key type RSA (2048/112 Bits/secBits), signed using sha512WithRSAEncryption
*   Certificate level 1: Public key type RSA (2048/112 Bits/secBits), signed using sha512WithRSAEncryption
* using HTTP/2
* [HTTP/2] [1] OPENED stream for https://ubuntu:8443/dcm4chee-arc/aets/DCM4CHEE/rs/instances/Old
* [HTTP/2] [1] [:method: POST]
* [HTTP/2] [1] [:scheme: https]
* [HTTP/2] [1] [:authority: ubuntu:8443]
* [HTTP/2] [1] [:path: /dcm4chee-arc/aets/DCM4CHEE/rs/instances/Old]
* [HTTP/2] [1] [user-agent: curl/8.5.0]
* [HTTP/2] [1] [accept: */*]
* [HTTP/2] [1] [authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJSVnRTS1BsQVRJVnpOTEs5aEx3eC0zYUVfVnhvT0ZWMG1LaUlIRkU5NTFNIn0.eyJleHAiOjE3NDIwNzY0MzYsImlhdCI6MTc0MjA3NjEzNiwianRpIjoiOWZjZGU0ZjItYmM4Ni00NzEwLWEyMjEtNTNmZGY5NzgzYzE3IiwiaXNzIjoiaHR0cHM6Ly91YnVudHU6ODg0My9yZWFsbXMvZGNtNGNoZSIsInN1YiI6IjYyYzdmMDdiLTRjMzctNDBlZi04ZDk5LTUxZTM1NjUxNWEwYiIsInR5cCI6IkJlYXJlciIsImF6cCI6ImRjbTRjaGVlLWFyYy1ycyIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cHM6Ly91YnVudHU6ODQ0MyIsImh0dHA6Ly91YnVudHU6ODA4MCJdLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsib2ZmbGluZV9hY2Nlc3MiLCJkZWZhdWx0LXJvbGVzLWRjbTRjaGUiLCJ1bWFfYXV0aG9yaXphdGlvbiJdfSwic2NvcGUiOiJwcm9maWxlIGVtYWlsIiwiY2xpZW50SWQiOiJkY200Y2hlZS1hcmMtcnMiLCJlbWFpbF92ZXJpZmllZCI6ZmFsc2UsImNsaWVudEhvc3QiOiIxNzIuMTguMC4xIiwicHJlZmVycmVkX3VzZXJuYW1lIjoic2VydmljZS1hY2NvdW50LWRjbTRjaGVlLWFyYy1ycyIsImNsaWVudEFkZHJlc3MiOiIxNzIuMTguMC4xIn0.lbUgt8ud8wydLkbJlU8-3P37XcJtcyUVD4y__DxJQXFQZ6Ubww9JsCk0YBuA5cftzSalflCdHWuZbMzS1jK8CDWuZ7NsyLgEdtfZTmTQh76OPrsBCsrpB6TkP1IYjgmY0VCa_9gTkG61sqp6i6etCJV78HE2eQ21haaFeFSRxvOnceapjCaupRvyeboM_wXENMQ_od3Z2PErXvw4n-MaZvqku5_lLgm9V5r07t5VBQUZHP2yxxoSL6AGaaueAYbwyUQLBH46WGE_9M8rZU8r66xucOrQtKkafCXd3Hovz6zdODKaFo1Ea7RMn1DyMscaunfe2bmdVTWA0cG3i_gAsg]
* [HTTP/2] [1] [content-type: text/plain]
* [HTTP/2] [1] [content-length: 175993]
> POST /dcm4chee-arc/aets/DCM4CHEE/rs/instances/Old HTTP/2
> Host: ubuntu:8443
> User-Agent: curl/8.5.0
> Accept: */*
> Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJSVnRTS1BsQVRJVnpOTEs5aEx3eC0zYUVfVnhvT0ZWMG1LaUlIRkU5NTFNIn0.eyJleHAiOjE3NDIwNzY0MzYsImlhdCI6MTc0MjA3NjEzNiwianRpIjoiOWZjZGU0ZjItYmM4Ni00NzEwLWEyMjEtNTNmZGY5NzgzYzE3IiwiaXNzIjoiaHR0cHM6Ly91YnVudHU6ODg0My9yZWFsbXMvZGNtNGNoZSIsInN1YiI6IjYyYzdmMDdiLTRjMzctNDBlZi04ZDk5LTUxZTM1NjUxNWEwYiIsInR5cCI6IkJlYXJlciIsImF6cCI6ImRjbTRjaGVlLWFyYy1ycyIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cHM6Ly91YnVudHU6ODQ0MyIsImh0dHA6Ly91YnVudHU6ODA4MCJdLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsib2ZmbGluZV9hY2Nlc3MiLCJkZWZhdWx0LXJvbGVzLWRjbTRjaGUiLCJ1bWFfYXV0aG9yaXphdGlvbiJdfSwic2NvcGUiOiJwcm9maWxlIGVtYWlsIiwiY2xpZW50SWQiOiJkY200Y2hlZS1hcmMtcnMiLCJlbWFpbF92ZXJpZmllZCI6ZmFsc2UsImNsaWVudEhvc3QiOiIxNzIuMTguMC4xIiwicHJlZmVycmVkX3VzZXJuYW1lIjoic2VydmljZS1hY2NvdW50LWRjbTRjaGVlLWFyYy1ycyIsImNsaWVudEFkZHJlc3MiOiIxNzIuMTguMC4xIn0.lbUgt8ud8wydLkbJlU8-3P37XcJtcyUVD4y__DxJQXFQZ6Ubww9JsCk0YBuA5cftzSalflCdHWuZbMzS1jK8CDWuZ7NsyLgEdtfZTmTQh76OPrsBCsrpB6TkP1IYjgmY0VCa_9gTkG61sqp6i6etCJV78HE2eQ21haaFeFSRxvOnceapjCaupRvyeboM_wXENMQ_od3Z2PErXvw4n-MaZvqku5_lLgm9V5r07t5VBQUZHP2yxxoSL6AGaaueAYbwyUQLBH46WGE_9M8rZU8r66xucOrQtKkafCXd3Hovz6zdODKaFo1Ea7RMn1DyMscaunfe2bmdVTWA0cG3i_gAsg
> Content-Type: text/plain
> Content-Length: 175993
>
< HTTP/2 403
< content-type: text/html;charset=UTF-8
< content-length: 68
< date: Sat, 15 Mar 2025 22:03:01 GMT
* HTTP error before end of send, stop sending
<
* Connection #0 to host ubuntu left intact
<html><head><title>Error</title></head><body>Forbidden</body></html>

I am also attaching the storage descriptor information in case I got that one wrong but i get 403 even if I place fs1 as the instance.

Thank you
dcm4chee.yml.txt
Storage Descriptor.png

Alex Kaisar

unread,
Mar 16, 2025, 5:30:17 AMMar 16
to dcm4che

Also adding the bearer token information:

  "exp": 1742117608,
  "iat": 1742117308,
  "jti": "a3d05d2b-d318-4112-b25c-69006445a969",
  "iss": "https://ubuntu:8843/realms/dcm4che",
  "sub": "7020ba8d-9bd2-4464-b8e7-f6aa98c07f00",
  "typ": "Bearer",
  "azp": "dcm4chee-arc-rs",
  "acr": "1",
  "allowed-origins": [
    "https://ubuntu:8443",
    "http://ubuntu:8080"
  ],
  "realm_access": {
    "roles": [
      "offline_access",
      "default-roles-dcm4che",
      "uma_authorization"
    ]
  },
  "resource_access": {
    "dcm4chee-arc-rs": {
      "roles": [
        "user"
      ]
    }
  },
  "scope": "profile email",
  "clientId": "dcm4chee-arc-rs",
  "email_verified": false,
  "clientHost": "172.18.0.1",
  "preferred_username": "service-account-dcm4chee-arc-rs",
  "clientAddress": "172.18.0.1"
Reply all
Reply to author
Forward
0 new messages