voila view token

199 views
Skip to first unread message

uesaijou u

unread,
Aug 16, 2023, 4:52:24 AM8/16/23
to Biociphers
Dear Support Team,

Thank you for providing such an excellent tool. I've been trying out your workshop example on our server, and both the build and deltapsi steps executed successfully.

However, when I attempted to view the results using the "voila view", I couldn't obtain any token from voila. Is there a way for me to set a specific token manually? Alternatively, is there a source from which I can retrieve the token, or is there an option to disable token generation?

My attempted command is

On the server:
voila view /path/to/my/MAJIQ/workshop_example -p 8889 --host "$HOSTNAME"

On may local machine:
ssh -N -f -L localhost:3000:localhost:8889 user@server

Subsequently, I tried accessing via the browser using:
localhost:3000

I would greatly appreciate any guidance or assistance you can provide.

Thank you so much.

Warm regards,

Eiko

uesaijou u

unread,
Aug 20, 2023, 3:00:40 PM8/20/23
to Biociphers
Hi, I ran voila view with the "--enable-passcode" option, and voila provided specific token, finally. However, my browser doesn't accept the token voila provided. How can I solve this problem ?

2023年8月16日水曜日 17:52:24 UTC+9 uesaijou u:

San Jewell

unread,
Aug 21, 2023, 2:49:53 PM8/21/23
to Biociphers
Hi Eiko,

What is the actual error message you are getting on your browser? Is it a network timeout or a token error? Could you take a screenshot? When using the default web server (waitress) there should not be any token even needed.

Another thing you might want to try instead of using --host "$HOSTNAME" ; try --host 0.0.0.0 , this will allow connection from any host which may be the source of your issue.

Thanks,
-San

uesaijou u

unread,
Aug 21, 2023, 8:42:19 PM8/21/23
to Biociphers
Hi San,

Thank you for getting back to me. I'm encountering issues when trying to configure the Voila server, and I hope you can assist.

(1)Issue with --host 0.0.0.0:

I attempted to use the flag --host 0.0.0.0, but encountered an error.

log:
2023-08-22 09:22:17,168 (PID:826954) - INFO - Command: /work/saijou/MAJIQ/env/bin/voila view /work/saijou/MAJIQ -p 8889 --host 0.0.0.0 --enable-passcode
2023-08-22 09:22:17,169 (PID:826954) - INFO - Voila v2.4.dev102+g2cae1507
2023-08-22 09:22:17,169 (PID:826954) - INFO - config file: /tmp/tmp3pp2otlq
2023-08-22 09:22:55,346 (PID:826954) - INFO - Using index: /work/saijou/MAJIQ/deltapsi/minus-plus.deltapsi.voila
2023-08-22 09:22:55,347 (PID:826954) - INFO - Passcode access: http://0.0.0.0:8889/WA9eIWl1ZCUSTXRyJV14
2023-08-22 09:22:55,351 (PID:826954) - ERROR - [Errno 98] Address already in use

(2)Issue with --host "$HOSTNAME" --enable-passcode:

When I used the flag --host "$HOSTNAME" --enable-passcode, I encountered an error on my local browser.

log:
2023-08-22 09:23:16,866 (PID:827091) - INFO - Command: /work/saijou/MAJIQ/env/bin/voila view /work/saijou/MAJIQ -p 8889 --host horn --enable-passcode
2023-08-22 09:23:16,866 (PID:827091) - INFO - Voila v2.4.dev102+g2cae1507
2023-08-22 09:23:16,866 (PID:827091) - INFO - config file: /tmp/tmpve0pabi_
2023-08-22 09:23:57,583 (PID:827091) - INFO - Using index: /work/saijou/MAJIQ/deltapsi/minus-plus.deltapsi.voila
2023-08-22 09:23:57,583 (PID:827091) - INFO - Passcode access: http://horn:8889/KyVMhxFLDUUdrySVJnEV
Serving on http://horn:8889
Serving on http://horn:8889

To connect to the server, I executed the following command in my Mac terminal:
"ssh -N -f -L localhost:3000:localhost:8889 saijou@horn".

Afterward, I tried accessing the server through my browser using the address localhost:3000. I entered the given passcode (in this instance, KyVMhxFLDUUdrySVJnEV), but was met with an "Invalid credentials" error.

I appreciate any guidance you can provide to resolve these issues.

Warm regards,


2023年8月22日火曜日 3:49:53 UTC+9 sje...@biociphers.org:
スクリーンショット 2023-08-22 9.00.06.png

uesaijou u

unread,
Aug 21, 2023, 8:54:44 PM8/21/23
to Biociphers
I've added some information.

Before setting --host 0.0.0.0, I sent the signal
pkill -u saijou,
and confirmed that port 8889 was free by using
lsof -i:8889.

2023年8月22日火曜日 9:42:19 UTC+9 uesaijou u:

San Jewell

unread,
Aug 22, 2023, 10:06:05 AM8/22/23
to Biociphers
Hi Eiko,

So, something amiss is surely going on with your system as the jupyter notebook is not at all part of voila, it's something else you or someone else is hosting. 

I just tested a remote access method with my small server cluster, In order for it to work I needed to enable --host 0.0.0.0   , note this is the bind host, it specified not the host name of the _server_ but rather which _client_ hosts have access. 0.0.0.0 implies all hosts have access, whereas specifying a specific ip will limit access. For example, the default is localhost, which allows only connections from the local machine and none outside on the network.

I also used tunnel syntax: ssh -N -L 45775:<server>:45775 user@server ; and --port 45775 as an argument to voila

I believe port 8888 or 8889 is already being used either on your server or your local machine ; can you try to use a higher port number to rule this out? maybe something like 20000 ?

Thanks,
-San

uesaijou u

unread,
Aug 22, 2023, 9:31:27 PM8/22/23
to Biociphers
Subject: Access Issue Resolution and Data Update

Hi San,

I hope this email finds you well. I wanted to express my gratitude for your valuable cooperation in resolving the access issue.

I made use of the '--host 0.0.0.0' flag along with '-p 20000', and I'm pleased to share that this adjustment allowed me to obtain an accessible URL and passcode through voila. As a result, I was able to access the server from my local Mac using the following command:

```bash
ssh -N -f -L localhost:3000:localhost:20000 user@server
```

Regrettably, upon attempting to access the server through my browser, I encountered the following message:

"Forbidden
You don't have permission to access the requested resource. It's either read-protected or not readable by the server."

Based on this, I suspect that the issue may be related to our server's security settings. I am planning to reach out to our server manager to address this concern promptly.

On another note, I wanted to inform you that I have successfully transferred my processed data, including the build folder and dPSI folder, to my local machine. This allowed me to view my MAJIQ result, marking a significant step forward.

While the circumstances may not be entirely identical, I am encouraged by the fact that I was able to access the captivating voila visualization. Your guidance played a pivotal role in this achievement, and I'm truly thankful.

Please feel free to share any additional insights or suggestions you might have. Your expertise is greatly appreciated.

Warm regards,

Eiko

2023年8月22日火曜日 23:06:05 UTC+9 sje...@biociphers.org:

San Jewell

unread,
Aug 28, 2023, 10:41:05 AM8/28/23
to Biociphers
Hello Eiko,

I'm glad you were able to achieve the local solution so that you may at least be able to use the tool in the meantime, and I'm glad you find the software useful for your purposes!

As far as I can tell, the "forbidden" error you are seeing is again to do with some other service running on the server or your machine. Can you try without the passcode first? Can you post a screenshot of the browser window?

Thank you,
-San

uesaijou u

unread,
Aug 28, 2023, 8:16:28 PM8/28/23
to Biociphers
Thank you once again, San.
I can now access the Voila view from my server. Following your insightful advice, I executed Voila using the parameters `-p 20000 --host 0.0.0.0` and omitted the `--enable-passcode` option. As a result, I was able to directly visualize the data from the server.
I've finally arrived at a complete solution for resolving this issue.
I truly appreciate your ongoing support.

Best regards,
Eiko

2023年8月28日月曜日 23:41:05 UTC+9 sje...@biociphers.org:
Reply all
Reply to author
Forward
0 new messages