can't login to orthanctoolsjs

hi
please how i fix this error
i start npm , the orthanctoolsjs in run in in my browser but when i try to authontificate (i used admin as login and password) i have this error : "screen shot "

Screen Shot 2021-06-02 at 6.38.55 PM.jpg

Screen Shot 2021-06-02 at 6.39.25 PM.jpg

Hi,

You seems to run directly orthanc tools js directly from sources, usally for developper purpose.

In your case you seems to not have started the backend server, make npm install and npm start at the backend folder.

If you intend to use it for testing / production, much better to use the docker image.

Best regards

Salim

what i should to do in this case ?

Screen Shot 2021-06-03 at 6.09.24 AM.png

Do npm install before npm start …

the latest version 6.2 of orthanctooljs with orthanc server 21.5.2 runing in windows server 2012

Screen Shot 2021-06-03 at 7.19.31 AM.png

looks at your code it says their are busy or locked ressources on your files system.

OrthancToolsJS is not so simple to use and install, you will need external application like redis that i doubt it exist in windows server 2012.

I have made a documentation to use it though docker, it is the best way to go

Best regards,

Salim

hi
i m trying to use docker for my first time
the docker jodogne/orthanc is work well
but orthanctooljs i have problm
thanks

Screen Shot 2021-06-12 at 3.03.52 AM.png

Hi,

You are using the dev version that need to acces a postgres database.
So you need to setup the environement variable to be able to acces to an prostgres database.
https://github.com/salimkanoun/Orthanc-Tools-JS/blob/dev/Documentation/Deployment%20Sample/OrthancToolsJS/docker-compose.yml

Salim

please salim , i know i ask a lot because i m beginner
where i find the image location to add docker-compose.yml file because i install it from this comnd : docker pull salimkanoun/orthanctoolsjs
and i try to download a https://github.com/salimkanoun/Orthanc-Tools-JS/tree/0.6.0 how containe docker-compose.yml but i did’nt know how to run docker by this domnload folder
please if you have documentation how explane step by step how to run it
thanks a lot

thanks salim , i find the location
now i have this problm with orthanctoolsjs 0.6.2, t should install docker of redis ? or just configuration ?
thanks

Screen Shot 2021-06-12 at 8.20.05 PM.png

redis should be available somewhere, here docker because there is no official port to redis to windows.
however localhost in a container refers to the container localhost itself and not to the host, in docker compose the ip of the service is the service name.

Since orthanctoolsjs 0.45 i used to setup orthanctoolsjs for testing purposes in a synology 1618 through docker.
It was a 15 sec procedure and it always works perfect up to version 0.62.
Recently when i tried to install latest version i get this error and container fail to start.
Container with version 0.62 still works perfect.

salimkanoun-orthanctoolsjs1
datestreamcontent
2021-06-12 21:18:35
stdout
e[0m
2021-06-12 21:18:35
stdout
e[0me[37;40mnpme[0m e[0me[31;40mERR!e[0me[35me[0m /root/.npm/_logs/2021-06-12T21_18_35_441Z-debug.log
2021-06-12 21:18:35
stdout
e[37;40mnpme[0m e[0me[31;40mERR!e[0me[35me[0m A complete log of this run can be found in:
2021-06-12 21:18:35
stdout
e[0m
2021-06-12 21:18:35
stdout
e[0me[37;40mnpme[0m e[0me[31;40mERR!e[0me[35me[0m This is probably not a problem with npm. There is likely additional logging output above.
2021-06-12 21:18:35
stdout
e[0me[37;40mnpme[0m e[0me[31;40mERR!e[0me[35me[0m Failed at the @salim.kanoun/orthanctools@0.0.3 prestart script.
2021-06-12 21:18:35
stdout
e[0me[37;40mnpme[0m e[0me[31;40mERR!e[0me[35me[0m
2021-06-12 21:18:35
stdout
e[0me[37;40mnpme[0m e[0me[31;40mERR!e[0me[35me[0m Exit status 1
2021-06-12 21:18:35
stdout
e[0me[37;40mnpme[0m e[0me[31;40mERR!e[0me[35me[0m @salim.kanoun/orthanctools@0.0.3 prestart: cross-env NODE_ENV=production npm run migrate
2021-06-12 21:18:35
stdout
e[0me[37;40mnpme[0m e[0me[31;40mERR!e[0m e[0me[35merrnoe[0m 1
2021-06-12 21:18:35
stdout
e[0me[37;40mnpme[0m e[0me[31;40mERR!e[0m e[0me[35mcodee[0m ELIFECYCLE
2021-06-12 21:18:35
stdout
e[0me[37;40mnpme[0m e[0me[31;40mERR!e[0me[35me[0m /root/.npm/_logs/2021-06-12T21_18_35_363Z-debug.log
2021-06-12 21:18:35
stdout
e[37;40mnpme[0m e[0me[31;40mERR!e[0me[35me[0m A complete log of this run can be found in:
2021-06-12 21:18:35
stdout
e[0m
2021-06-12 21:18:35
stdout
e[0me[37;40mnpme[0m e[0me[31;40mERR!e[0me[35me[0m This is probably not a problem with npm. There is likely additional logging output above.
2021-06-12 21:18:35
stdout
e[0me[37;40mnpme[0m e[0me[31;40mERR!e[0me[35me[0m Failed at the @salim.kanoun/orthanctools@0.0.3 migrate script.
2021-06-12 21:18:35
stdout
e[0me[37;40mnpme[0m e[0me[31;40mERR!e[0me[35me[0m
2021-06-12 21:18:35
stdout
e[0me[37;40mnpme[0m e[0me[31;40mERR!e[0me[35me[0m Exit status 1
2021-06-12 21:18:35
stdout
e[0me[37;40mnpme[0m e[0me[31;40mERR!e[0me[35me[0m @salim.kanoun/orthanctools@0.0.3 migrate: sequelize db:migrate
2021-06-12 21:18:35
stdout
e[0me[37;40mnpme[0m e[0me[31;40mERR!e[0m e[0me[35merrnoe[0m 1
2021-06-12 21:18:35
stdout
e[37;40mnpme[0m e[0me[31;40mERR!e[0m e[0me[35mcodee[0m ELIFECYCLE
2021-06-12 21:18:35
stdout

2021-06-12 21:18:35
stdout
e[31mERROR:e[39m connect ECONNREFUSED 127.0.0.1:5433
2021-06-12 21:18:35
stdout

2021-06-12 21:18:35
stdout
Using environment “production”.
2021-06-12 21:18:35
stdout
Loaded configuration file “database/config/config.js”.
2021-06-12 21:18:35
stdout

2021-06-12 21:18:35
stdout
e[4mSequelize CLI [Node: 14.15.4, CLI: 6.2.0, ORM: 6.6.2]e[24m
2021-06-12 21:18:35
stdout

2021-06-12 21:18:34
stdout

2021-06-12 21:18:34
stdout

sequelize db:migrate
2021-06-12 21:18:34
stdout
@salim.kanoun/orthanctools@0.0.3 migrate /OrthancToolsJs
2021-06-12 21:18:34
stdout

2021-06-12 21:18:33
stdout

2021-06-12 21:18:33
stdout

cross-env NODE_ENV=production npm run migrate
2021-06-12 21:18:33
stdout
@salim.kanoun/orthanctools@0.0.3 prestart /OrthancToolsJs
2021-06-12 21:18:33
stdout

2021-06-12 21:17:05
stdout
e[0m
2021-06-12 21:17:05
stdout
e[0me[37;40mnpme[0m e[0me[31;40mERR!e[0me[35me[0m /root/.npm/_logs/2021-06-12T21_17_05_329Z-debug.log
2021-06-12 21:17:05
stdout
e[37;40mnpme[0m e[0me[31;40mERR!e[0me[35me[0m A complete log of this run can be found in:
2021-06-12 21:17:05
stdout
e[0m
2021-06-12 21:17:05
stdout
e[0me[37;40mnpme[0m e[0me[31;40mERR!e[0me[35me[0m This is probably not a problem with npm. There is likely additional logging output above.
2021-06-12 21:17:05
stdout
e[0me[37;40mnpme[0m e[0me[31;40mERR!e[0me[35me[0m Failed at the @salim.kanoun/orthanctools@0.0.3 prestart script.
2021-06-12 21:17:05
stdout
e[0me[37;40mnpme[0m e[0me[31;40mERR!e[0me[35me[0m
2021-06-12 21:17:05
stdout
e[0me[37;40mnpme[0m e[0me[31;40mERR!e[0me[35me[0m Exit status 1
2021-06-12 21:17:05
stdout
e[0me[37;40mnpme[0m e[0me[31;40mERR!e[0me[35me[0m @salim.kanoun/orthanctools@0.0.3 prestart: cross-env NODE_ENV=production npm run migrate
2021-06-12 21:17:05
stdout
e[0me[37;40mnpme[0m e[0me[31;40mERR!e[0m e[0me[35merrnoe[0m 1
2021-06-12 21:17:05
stdout
e[0me[37;40mnpme[0m e[0me[31;40mERR!e[0m e[0me[35mcodee[0m ELIFECYCLE
2021-06-12 21:17:05
stdout
e[0me[37;40mnpme[0m e[0me[31;40mERR!e[0me[35me[0m /root/.npm/_logs/2021-06-12T21_17_05_159Z-debug.log
2021-06-12 21:17:05
stdout
e[37;40mnpme[0m e[0me[31;40mERR!e[0me[35me[0m A complete log of this run can be found in:
2021-06-12 21:17:05
stdout
e[0m
2021-06-12 21:17:05
stdout
e[0me[37;40mnpme[0m e[0me[31;40mERR!e[0me[35me[0m This is probably not a problem with npm. There is likely additional logging output above.
2021-06-12 21:17:05
stdout
e[0me[37;40mnpme[0m e[0me[31;40mERR!e[0me[35me[0m Failed at the @salim.kanoun/orthanctools@0.0.3 migrate script.
2021-06-12 21:17:05
stdout
e[0me[37;40mnpme[0m e[0me[31;40mERR!e[0me[35me[0m
2021-06-12 21:17:05
stdout
e[0me[37;40mnpme[0m e[0me[31;40mERR!e[0me[35me[0m Exit status 1
2021-06-12 21:17:05
stdout
e[0me[37;40mnpme[0m e[0me[31;40mERR!e[0me[35me[0m @salim.kanoun/orthanctools@0.0.3 migrate: sequelize db:migrate
2021-06-12 21:17:05
stdout
e[0me[37;40mnpme[0m e[0me[31;40mERR!e[0m e[0me[35merrnoe[0m 1
2021-06-12 21:17:05
stdout
e[37;40mnpme[0m e[0me[31;40mERR!e[0m e[0me[35mcodee[0m ELIFECYCLE
2021-06-12 21:17:05
stdout

2021-06-12 21:17:05
stdout
e[31mERROR:e[39m connect ECONNREFUSED 127.0.0.1:5433
2021-06-12 21:17:05
stdout

2021-06-12 21:17:04
stdout
Using environment “production”.
2021-06-12 21:17:04
stdout
Loaded configuration file “database/config/config.js”.
2021-06-12 21:17:04
stdout

2021-06-12 21:17:04
stdout
e[4mSequelize CLI [Node: 14.15.4, CLI: 6.2.0, ORM: 6.6.2]e[24m
2021-06-12 21:17:04
stdout

2021-06-12 21:17:00
stdout

2021-06-12 21:17:00
stdout

sequelize db:migrate
2021-06-12 21:17:00
stdout
@salim.kanoun/orthanctools@0.0.3 migrate /OrthancToolsJs
2021-06-12 21:17:00
stdout

2021-06-12 21:16:59
stdout

2021-06-12 21:16:59
stdout

cross-env NODE_ENV=production npm run migrate
2021-06-12 21:16:59
stdout
@salim.kanoun/orthanctools@0.0.3 prestart /OrthancToolsJs
2021-06-12 21:16:59
stdout

Στις Σάββατο, 12 Ιουνίου 2021 στις 11:22:04 μ.μ. UTC+3, ο χρήστης salim....@gmail.com έγραψε:

Yes this is beacause the next version will require a postgres database, the embeeded sqlite database is removed.
The documentation is not yet updated.

The next version will bring major new feature, it will take time to stabilize.

Please use the versionned containers.

Salim