osimis WebViewer error

393 views
Skip to first unread message

dor2...@gmail.com

unread,
Mar 23, 2017, 8:33:17 AM3/23/17
to Orthanc Users
There was an error, what to do?

root@pacs:/home/paracels/osimis# cmake -DSTATIC_BUILD=ON -DCMAKE_BUILD_TYPE=Release
0
0
0
0
xxxxxxxx-dirty
0.0.0
-- PRODUCT_VERSION_BRANCH:
-- PRODUCT_VERSION_SHORT_STRING:   0.0.0
-- JS_FRONTEND_VERSION:            xxxxxxxx-dirty
Uncompressing xxxxxxxx-dirty.zip
[/home/paracels/osimis/ThirdPartyDownloads/xxxxxxxx-dirty.zip]
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of /home/paracels/osimis/ThirdPartyDownloads/xxxxxxxx-dirty.zip or
        /home/paracels/osimis/ThirdPartyDownloads/xxxxxxxx-dirty.zip.zip, and cannot find /home/paracels/osimis/ThirdPartyDownloads/xxxxxxxx-dirty.zip.ZIP, period.
CMake Error at Orthanc/Resources/CMake/DownloadPackage.cmake:184 (message):
  Error while running the uncompression tool
Call Stack (most recent call first):
  WebViewerPlugin/WebViewerPlugin.cmake:76 (DownloadPackage)
  CMakeLists.txt:63 (include)


-- Configuring incomplete, errors occurred!
See also "/home/paracels/osimis/CMakeFiles/CMakeOutput.log".



dor2...@gmail.com

unread,
Mar 23, 2017, 8:35:46 AM3/23/17
to Orthanc Users

Thibault Piront

unread,
Mar 27, 2017, 4:26:58 AM3/27/17
to dor2...@gmail.com, Orthanc Users
Hi,

The backend and frontend builds are separated from each other. Therefore, the backend downloads the frontend build when the frontend build is not already present locally (at the `frontend/build/` folder path). The xxxxxxxx-dirty represent the webviewer version number, based on the latest git tag. Your environment is unable to retrieve the latest frontend build and can't download one generated by our continuous environment.

You may check this file for more information on how to build the Osimis Web Viewer.

Kind Regards,
Thibault

On Thu, Mar 23, 2017 at 1:35 PM, <dor2...@gmail.com> wrote:



--

Thibault Piront / Full Stack Dev 

thibaul...@osimis.io

Osimis

OSIMIS S.A. 
Rue du Bois Saint-Jean 15/1 BE-4102 Seraing 
www.osimis.io

Twitter LinkedIn


dor2...@gmail.com

unread,
Mar 28, 2017, 4:20:28 AM3/28/17
to Orthanc Users, dor2...@gmail.com
root@pacs:/home/paracels/osimis/scripts/docker# ./buildDocker.sh
+ set -e
++ git rev-parse --show-toplevel
+ srcRoot=/home/paracels/osimis
+ port=9966
+ subnet=10.0.0.1/28
+ /home/paracels/osimis/frontend/scripts/buildDocker.sh /home/paracels/osimis/sctipts/docker/build
+ set -e
++ git rev-parse --show-toplevel
+ srcRoot=/home/paracels/osimis
+ outputDir=/home/paracels/osimis/sctipts/docker/build
+ tag=latest-local
+ jsBuilderImage=osimis/orthanc-webviewer-plugin/js-builder
+ jsBuilderContainer=osimis-orthanc-webviewer-plugin-js-builder-latest-local
+ rm -rf /home/paracels/osimis/sctipts/docker/build
+ docker build --tag=osimis/orthanc-webviewer-plugin/js-builder --file=/home/paracels/osimis/frontend/DockerfileFrontEndBuilder /home/paracels/osimis/frontend/
/home/paracels/osimis/frontend/scripts/buildDocker.sh: line 36: docker: command not found

root@pacs:/home/paracels/osimis/scripts/docker#

 




понедельник, 27 марта 2017 г., 14:26:58 UTC+6 пользователь Thibault Piront написал:

Alain Mazy

unread,
Mar 28, 2017, 4:42:38 AM3/28/17
to dor2...@gmail.com, Orthanc Users
--

Alain Mazy / CTO 
a...@osimis.io / +32 494 31 67 27

Osimis

OSIMIS S.A. 
Rue bois Saint-Jean 15/1BE-4102 Seraing 
www.osimis.io

dor2...@gmail.com

unread,
Mar 30, 2017, 12:13:40 AM3/30/17
to Orthanc Users, dor2...@gmail.com
Write in steps how to install webviewerplugin ?

вторник, 28 марта 2017 г., 14:42:38 UTC+6 пользователь Alain Mazy написал:

Alain Mazy

unread,
Mar 30, 2017, 3:44:59 AM3/30/17
to dor2...@gmail.com, Orthanc Users
update your config files according to the documentation: https://bitbucket.org/osimis/osimis-webviewer-plugin

ayush...@gmail.com

unread,
Apr 5, 2017, 8:31:47 AM4/5/17
to Orthanc Users, dor2...@gmail.com
Hi Alain,

I am trying to do this on a 32-bit Ubuntu machine. But keep running into errors that I am not able to troubleshoot. Here are the steps I have followed (Manual Build instructions from the Osimis bitbucket page)

$ cd backend/
$ mkdir build
$ cd build/
$ cmake .. -DCMAKE_BUILD_TYPE=Debug -DALLOW_DOWNLOADS=ON -DSTANDALONE_BUILD=ON
-DSTATIC_BUILD=ON
$ make -j2

But this results in the same xxxxxxxx-dirty.zip not found error. The rest of the files downloaded correctly, so I am not able to figure out why this one failed.

I then tried to build the front end manually (after reading your comment above), but that failed on npm install.

Unfortunately docker doesn't support 32 bit ubuntu. So I am unable to use that option. Any advice would be great. Thanks!
> OSIMIS S.A. 
> Rue du Bois Saint-Jean 15/1 BE-4102 Seraing 
> www.osimis.io
>  
>
>
>
>
>
>
>
> --
>
>
>
>
>
>
>
>
> Alain Mazy / CTO 
> a...@osimis.io / +32 494 31 67 27
>
> OSIMIS S.A. 
> Rue bois Saint-Jean 15/1BE-4102 Seraing 
> www.osimis.io
>  
>
>
>
>
>
>
>
>
> --
>
>
>
>
>
>
>
>
> Alain Mazy / CTO 
> a...@osimis.io / +32 494 31 67 27
>

Thibault Piront

unread,
Apr 5, 2017, 9:38:04 AM4/5/17
to ayush...@gmail.com, Orthanc Users, dor2...@gmail.com
Hello,

As pointed out from the readme.md & boostrap-dev-environment.md files, 

You can install all the development environments without docker from this script:


And build the whole web viewer without docker from this one:


The first one is specific to OSX, but is maintained, tested, and gives you an exhaustive and explicit view of all the dependencies required. To use it you must transpose it to your personal ubuntu environment (remove useless installs, perhaps add a few new required ones that are not present by default, and switch from homebrew package manager to apt-get).

You can download a built frontend version directly from our CI and inject it at the correct location:

1. go to http://orthanc.osimis.io/public/osimisWebViewer/0.7.0.zip (0.7.0 is the latest web viewer version, you can change the version to your wishes)
2. unzip 0.7.0.zip in a 0.7.0 folder
3. rename the 0.7.0 folder to `build`
4. move the build folder to /frontend/build
5. try again to build the backend as you did (I suggest using -DCMAKE_BUILD_TYPE=Release instead)

You can also download the web viewer using git, which will do all the points detailed above automatically.

1. `$ git clone ...`
2. `$ cd osimis-webviewer-plugin`
3. `$ git checkout 0.7.0` (to ensure having the 0.7.0 tag instead of xxxxx, although it should not be required).
4. Make sure you didn't modify the web viewer folder in anyway (such as modifying config, adding file, ...) to avoid the `-dirty` postfix notified in your error.

You can also refer to the related dependencies' forums for specific help, especially the NPM forum.

Regards,
Thibault.

OSIMIS S.A. 
Rue du Bois Saint-Jean 15/1 BE-4102 Seraing 
www.osimis.io

Twitter LinkedIn


Message has been deleted

ayush...@gmail.com

unread,
Apr 5, 2017, 10:53:32 AM4/5/17
to Orthanc Users, ayush...@gmail.com, dor2...@gmail.com
Thanks Thibault for the exhaustive answer. Let me try out the steps. I will post my results here. Really appreciate you taking the time to respond in such detail. Thanks once again.

ayush...@gmail.com

unread,
Apr 5, 2017, 12:30:26 PM4/5/17
to Orthanc Users, ayush...@gmail.com, dor2...@gmail.com
Just to update everyone, these steps worked brilliantly
Message has been deleted

Alain Mazy

unread,
Mar 19, 2018, 5:12:56 AM3/19/18
to Brandon Lee, Orthanc Users
Do you really need to compile it yourself ?
Binaries are part of the Osimis installer (http://www.osimis.io/en/download.html).

On windows, building the viewer backend is just a matter of running cmake with -G "You version of visual Studio" then open the solution in Visual Studio and compile.
The frontend is built with node.js and should work as is on Windows (that's theory of course)

On Fri, Mar 16, 2018 at 5:07 PM, Brandon Lee <blee...@gmail.com> wrote:
Is it possible to give these instruction for Windows user? I have tried a few methods from these sites but have been unsuccessful. I feel I am missing a step.  I am trying to install OrthancWebViewer-2.2  Thank you
https://bitbucket.org/osimis/osimis-webviewer-plugin/
http://book.orthanc-server.com/plugins/webviewer.html
Reply all
Reply to author
Forward
0 new messages