Hello,
I am sorry if this is a duplicate, I’ve been searching all over the site and been wracking my brain to solve this issue.
I have an EC2 instance that is using the docker compose file for the orthanc, nginx, orthanc for shares, orthanc auth service, orthanc-db, ohif features. There are no errors in the logs when this happens. In fact nginx doesn’t even get triggered from the looks of it.
I have recently switched over to a domain and started the process of adding the certificates for HTTPS.
Ever since I switched over the sharing feature stopped working and would keep trying to load when I used the URL. It would return a 404 not found when trying to run the shares/auth/tokens/decode api.
let me know if this sounds familiar and I would appreciate any help.
This is the link that is created when I try to share a study.
I can provide more information if necessary.
This is my docker compose file
services:
nginx:
image: orthancteam/orthanc-nginx:24.7.1
depends_on: [orthanc, orthanc-auth-service, orthanc-for-shares]
restart: unless-stopped
ports:
- "443:443"
environment:
ENABLE_ORTHANC: "true"
ENABLE_ORTHANC_FOR_SHARES: "true"
ENABLE_ORTHANC_TOKEN_SERVICE: "true"
ENABLE_HTTPS: "true"
ENABLE_OHIF: "true"
volumes:
- ./nginx/tls:/etc/nginx/tls
networks:
- orthanc-network
orthanc:
image: orthancteam/orthanc:24.7.1
volumes:
- orthanc-storage:/var/lib/orthanc/db
- orthanc-logs:/var/log/orthanc
depends_on: [orthanc-db]
restart: unless-stopped
ports:
- "4242:4242"
environment:
STONE_WEB_VIEWER_PLUGIN_ENABLED: "true"
DICOM_WEB_PLUGIN_ENABLED: "true"
ORTHANC__POSTGRESQL__HOST: "orthanc-db"
ORTHANC__POSTGRESQL__TRANSACTION_MODE: "ReadCommitted"
ORTHANC_JSON: |
{
"Name": "Orthanc",
"OrthancExplorer2": {
"IsDefaultUI": true,
"UiOptions": {
"EnableShares": true,
"DefaultShareDuration": 0,
"ShareDurations": [0, 7, 15, 30, 90, 365],
"EnableOpenInOhifViewer3": true,
"OhifViewer3PublicRoot": "https://images.calciumscan.com/ohif"
},
"Tokens": {
"ShareType": "stone-viewer-publication"
}
},
"AuthenticationEnabled": true,
"RegisteredUsers": {
},
"Authorization": {
"WebServiceTokenCreationBaseUrl": "http://orthanc-auth-service:8000/tokens/",
"WebServiceUsername": "r",
"WebServicePassword": ""
},
"DicomWeb": {
"Enable": true,
"PublicRoot": "/dicom-web/"
},
"LogLevel": "Trace",
"LogFile": "/var/log/orthanc/orthanc.log"
}
networks:
- orthanc-network
orthanc-for-shares:
image: orthancteam/orthanc:24.7.1
volumes:
- orthanc-storage:/var/lib/orthanc/db
- orthanc-logs:/var/log/orthanc
depends_on: [orthanc-db]
restart: unless-stopped
environment:
STONE_WEB_VIEWER_PLUGIN_ENABLED: "true"
DICOM_WEB_PLUGIN_ENABLED: "true"
ORTHANC__POSTGRESQL__HOST: "orthanc-db"
ORTHANC__POSTGRESQL__TRANSACTION_MODE: "ReadCommitted"
ORTHANC_JSON: |
{
"Name": "Orthanc",
"OrthancExplorer2": {
"IsDefaultUI": true,
"UiOptions": {
"EnableShares": true,
"DefaultShareDuration": 0,
"ShareDurations": [0, 7, 15, 30, 90, 365]
},
"Tokens": {
"ShareType": "stone-viewer-publication"
}
},
"AuthenticationEnabled": false,
"DicomWeb": {
"Enable": true,
"PublicRoot": "/dicom-web/"
},
"LogLevel": "Trace",
"LogFile": "/var/log/orthanc/orthanc.log"
}
networks:
- orthanc-network
orthanc-auth-service:
image: orthancteam/orthanc-auth-service:24.7.1
restart: unless-stopped
ports:
- "8000:8000"
environment:
SECRET_KEY: ""
PUBLIC_ORTHANC_ROOT: "https://images.calciumscan.com/shares"
PUBLIC_LANDING_ROOT: "https://images.calciumscan.com/shares/ui/app/token-landing.html"
PUBLIC_OHIF_ROOT: "https://images.calciumscan.com/ohif/"
USERS: |
{
}
networks:
- orthanc-network
ohif:
image: orthancteam/ohif-v3:24.7.1
restart: unless-stopped
networks:
- orthanc-network
orthanc-db:
image: postgres:14
restart: unless-stopped
volumes: ["orthanc-db:/var/lib/postgresql/data"]
environment:
POSTGRES_HOST_AUTH_METHOD: "trust"
networks:
- orthanc-network
networks:
orthanc-network:
driver: bridge
volumes:
orthanc-storage:
orthanc-db:
orthanc-logs:
even when I change it back to the way it was when it was working with a public ip and http I still get stuck at the decode step.
this is what it says in the network stack response for decode
{
“HttpError” : “Not Found”,
“HttpStatus” : 404,
“Message” : “Unknown resource”,
“Method” : “POST”,
“OrthancError” : “Unknown resource”,
“OrthancStatus” : 17,
“Uri” : “/auth/tokens/decode”
}
Thank you