# OHIF plugin not getting registered

**URL:** https://discourse.orthanc-server.org/t/ohif-plugin-not-getting-registered/3639
**Category:** General
**Created:** [June 20, 2023, 11:29am UTC](https://discourse.orthanc-server.org/t/ohif-plugin-not-getting-registered/3639 "2023-06-20T11:29:50Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![sonaliayash](https://discourse.orthanc-server.org/user_avatar/discourse.orthanc-server.org/sonaliayash/32/1930_2.png) [@sonaliayash](https://discourse.orthanc-server.org/u/sonaliayash)
#### Post date: [June 20, 2023, 11:29am UTC](https://discourse.orthanc-server.org/t/ohif-plugin-not-getting-registered/3639/1 "2023-06-20T11:29:51Z")

</div>

Hi all,

I tried to connect to OHIF using `osimis/orthanc:master-full-unstable` image but it’s not showing up on the orthanc explorer.

I checked the logs and saw that the OHIF plugin is not getting registered.

This is my configuration JSON file:

```json
{
	"AuthenticationEnabled": false,
	"DicomWeb": {
		"Enable": true,
		"Root": "/dicom-web/",
		"EnableWado": true,
		"WadoRoot": "/wado",
		"Ssl": false,
		"QidoCaseSensitive": false,
		"Host": "",
		"StudiesMetadata": "Full",
		"SeriesMetadata": "Full",
		"PublicRoot": "/dicom-web/",
		"Servers": {}
	},
	"OHIF": {
		"DataSource": "dicom-web",
        "preload": true,
        "UserConfiguration": "ohif.js",
		"RouterBasename": "/custom/route/"
	}
}

```

---

<div class="post-metadata">

### Author: ![sdscotti](https://discourse.orthanc-server.org/user_avatar/discourse.orthanc-server.org/sdscotti/32/2563_2.png) [@sdscotti](https://discourse.orthanc-server.org/u/sdscotti)
#### Post date: [June 20, 2023, 11:35am UTC](https://discourse.orthanc-server.org/t/ohif-plugin-not-getting-registered/3639/2 "2023-06-20T11:35:07Z")

</div>

You might need to enable the PlugIn if it doesn’t autoload when the config is present:

OHIF\_PLUGIN\_ENABLED=“true”

The demo is working:

[https://demo.orthanc-server.com/app/explorer.html](https://demo.orthanc-server.com/app/explorer.html)

Might be getting hit quite a bit. That might help me. Is the ohif.js in the plug-in or somewhere else. My RouterBasename probably needs to be different also with a front-end proxy.

/sds

---

<div class="post-metadata">

### Author: ![sonaliayash](https://discourse.orthanc-server.org/user_avatar/discourse.orthanc-server.org/sonaliayash/32/1930_2.png) [@sonaliayash](https://discourse.orthanc-server.org/u/sonaliayash)
#### Post date: [June 20, 2023, 11:44am UTC](https://discourse.orthanc-server.org/t/ohif-plugin-not-getting-registered/3639/3 "2023-06-20T11:44:50Z")

</div>

Thanks, Orthanc registered the viewer plugin, but I am getting an error.

`The specified path does not point to a regular file: The path does not point to a regular file: /etc/orthanc/ohif.js`

I am mounting my ohif.js file this way:

```auto
  orthanc:
    ...
    environment:
      OHIF_PLUGIN_ENABLED: true
    volumes:
      # Config
      - ./ohif.js:/etc/orthanc/ohif.js

```

---

<div class="post-metadata">

### Author: ![sdscotti](https://discourse.orthanc-server.org/user_avatar/discourse.orthanc-server.org/sdscotti/32/2563_2.png) [@sdscotti](https://discourse.orthanc-server.org/u/sdscotti)
#### Post date: [June 20, 2023, 11:57am UTC](https://discourse.orthanc-server.org/t/ohif-plugin-not-getting-registered/3639/4 "2023-06-20T11:57:37Z")

</div>

I had the same issue with that originally

`E0619 23:33:46.252771 PluginsManager.cpp:153] The specified path does not point to a regular file: The path does not point to a regular file: ohif.js`

Are you sure the host mapping is correct ? You might need to **rebuild** after changing that also ?

I have:

- ./pacs/ohif.js:/etc/orthanc/ohif.js, but that is where mine is on the host, and I don’t get that error anymore.

```auto
"UserConfiguration": "ohif.js",

```

I’m not sure where that is in the container really, I presume /etc/orthanc/ohif.js

/sds

---

<div class="post-metadata">

### Author: ![sonaliayash](https://discourse.orthanc-server.org/user_avatar/discourse.orthanc-server.org/sonaliayash/32/1930_2.png) [@sonaliayash](https://discourse.orthanc-server.org/u/sonaliayash)
#### Post date: [June 20, 2023, 12:06pm UTC](https://discourse.orthanc-server.org/t/ohif-plugin-not-getting-registered/3639/5 "2023-06-20T12:06:56Z")

</div>

I am using docker compose, are you suggesting that I need to use a docker build instead?

I checked, and my orthanc.json and ohif.js are in the same directory, so I am unsure of what the issue is.

---

<div class="post-metadata">

### Author: ![sdscotti](https://discourse.orthanc-server.org/user_avatar/discourse.orthanc-server.org/sdscotti/32/2563_2.png) [@sdscotti](https://discourse.orthanc-server.org/u/sdscotti)
#### Post date: [June 20, 2023, 12:49pm UTC](https://discourse.orthanc-server.org/t/ohif-plugin-not-getting-registered/3639/6 "2023-06-20T12:49:36Z")

</div>

You don’t need to use Docker, but you can. Try an absolute path ?

/sds

---

<div class="post-metadata">

### Author: ![jodogne](https://discourse.orthanc-server.org/user_avatar/discourse.orthanc-server.org/jodogne/32/1511_2.png) [@jodogne](https://discourse.orthanc-server.org/u/jodogne)
#### Post date: [June 20, 2023, 12:50pm UTC](https://discourse.orthanc-server.org/t/ohif-plugin-not-getting-registered/3639/7 "2023-06-20T12:50:17Z")

</div>

Hello,

The best way for people to help you would be to provide a [minimal working example](https://book.orthanc-server.com/users/support.html#discussing-a-minimal-working-example) containing all your Docker Compose files.

Kind Regards,  
Sébastien-

---

<div class="post-metadata">

### Author: ![sonaliayash](https://discourse.orthanc-server.org/user_avatar/discourse.orthanc-server.org/sonaliayash/32/1930_2.png) [@sonaliayash](https://discourse.orthanc-server.org/u/sonaliayash)
#### Post date: [June 20, 2023, 1:05pm UTC](https://discourse.orthanc-server.org/t/ohif-plugin-not-getting-registered/3639/8 "2023-06-20T13:05:33Z")

</div>

Thanks, using the absolute path worked.
