Re: Connect Orthanc to MinIO but files are not in bucket

44 views
Skip to first unread message

Alain Mazy

unread,
Jan 18, 2022, 5:51:37 AM1/18/22
to Phuc Truong, Orthanc Users
Hi,

I would recommend you to check your startup logs (in verbose mode) to know which plugins are really activated.

I see that the postgresql storage is enabled too:
ORTHANC__POSTGRESQL__ENABLE_STORAGE: "true"
so it might confict with S3 - you can not have 2 storage plugins active.

HTH,

Alain



On Fri, Jan 14, 2022 at 9:04 PM Phuc Truong <truong...@gmail.com> wrote:
Update, I've checked the plugins tab of Orthanc, it seems notice the MinIO (S3)1.png

Vào lúc 17:27:41 UTC+7 ngày Thứ Sáu, 14 tháng 1, 2022, Phuc Truong đã viết:
Hi, I am trying to connect to Orthanc which is deployed by Kubernetes. The upload is ok but file does not appear in the MinIO console. I confirm that because I've tried to upload from the Orthanc web UI. Please note for me if something gone wrong. Here are my environments variables:

    ORTHANC__REMOTE_ACCESS_ALLOWED: "true"
    ORTHANC__AUTHENTICATION_ENABLED: "false"
    ORTHANC__DICOM_WEB__ENABLE: "true"
    ORTHANC__DICOM_WEB__ROOT: "/dicom-web"
    ORTHANC__DICOM_WEB__ENABLE_WADO: "true"
    ORTHANC__DICOM_WEB__WADO_ROOT: "/wado"
    ORTHANC__POSTGRESQL_PLUGIN_ENABLED: "true"
    ORTHANC__POSTGRESQL__HOST: "foo"
    ORTHANC__POSTGRESQL__PORT: "5432"
    ORTHANC__POSTGRESQL__DATABASE: "orthanc_vinlab_ai"
    ORTHANC__POSTGRESQL__USERNAME: postgres
    ORTHANC__POSTGRESQL__PASSWORD: "bar"
    ORTHANC__POSTGRESQL__LOCK: "false"
    ORTHANC__POSTGRESQL__ENABLE_STORAGE: "true"
    ORTHANC__POSTGRESQL__ENABLE_INDEX: "true"
    ORTHANC__AWS_S3_STORAGE__ENDPOINT: "http://my-addr:9000/"
    ORTHANC__AWS_S3_STORAGE__ACCESS_KEY: "orthanc"
    ORTHANC__AWS_S3_STORAGE__SECRET_KEY: "for"
    ORTHANC__AWS_S3_STORAGE__REGION: "ap-southeast-1"
    ORTHANC__AWS_S3_STORAGE__BUCKET_NAME: "orthanc"
    ORTHANC__AWS_S3_STORAGE__VIRTUAL_ADDRESSING: "false"
    ORTHANC__AWS_S3_STORAGE__STORAGE_STRUCTURE: "legacy"

The Docker image we are using is customized from Dockerfile

FROM osimis/orthanc:21.5.1

WORKDIR /root
ARG PLUGIN_DIR=/usr/share/orthanc/plugins
RUN apt update && \
        apt install -y git cmake libcurl4-openssl-dev libssl-dev \
        uuid-dev zlib1g-dev libpulse-dev mercurial unzip \
        libgtest-dev libjsoncpp-dev libboost-all-dev libcrypto++-dev && \
        mkdir ~/aws && cd ~/aws && \
        git clone https://github.com/aws/aws-sdk-cpp.git && \
        cd aws-sdk-cpp && \
        git checkout main && \
        git pull origin main && \
        git submodule update --init --recursive && \
        mkdir -p ~/aws/builds/aws-sdk-cpp && \
        cd ~/aws/builds/aws-sdk-cpp && \
        cmake -DBUILD_ONLY="s3;transfer" ~/aws/aws-sdk-cpp && \
        make -j 12 && \
        make install && \
        cd ~ && \
        hg clone https://hg.orthanc-server.com/orthanc-object-storage && \
        mkdir -p build/aws && \
        cd build/aws && \
        cmake -DCMAKE_BUILD_TYPE=Debug -DUSE_VCPKG_PACKAGES=OFF ../../orthanc-object-storage/Aws && \
        make -j 12 && \
        cp libOrthancAwsS3Storage.*  ${PLUGIN_DIR}/ && \
        apt remove -y git cmake libcurl4-openssl-dev libssl-dev \
        uuid-dev zlib1g-dev libpulse-dev mercurial unzip \
        libgtest-dev libjsoncpp-dev libboost-all-dev libcrypto++-dev

Many thanks!

--
You received this message because you are subscribed to the Google Groups "Orthanc Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to orthanc-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/orthanc-users/4ae5f620-3e1c-49d7-a032-faa148e4681an%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages