blobtoolkit / viewer

[Archived] BlobToolKit API and viewer code
http://blobtoolkit.genomehubs.org
MIT License
6 stars 1 forks source link

Localhost web address cannot be reached #28

Closed jyj5558 closed 2 years ago

jyj5558 commented 2 years ago

Hi, First, I really appreciate your development and maintaining blobtoolkit software which is amazing tool!

I wanted to use blobtoolkit viewer (https://blobtoolkit.genomehubs.org/blobtools2/blobtools2-tutorials/opening-a-dataset-in-the-viewer/) on our school's cluster. I also followed website link of blobtoolkit's install instruction (https://blobtoolkit.genomehubs.org/install/)

I had all files and directories to command the viewer (e.g. DATASETS BlobDir, and blobtoolkit software itself, blobtoolkit viewer dependencies), and on the terminal the command "blobtools view --remote" seemed work and gave me a localhost address. but when I visited the assigned 'http://localhost:8003/view/all', my chrome and firefox both said the site can't be reached (localhost refused to connect). So I even changed Windows Firewall outbound setting to allow remote port 8000–9000, but still it does not work.

When I used different blobtoolkit command, "blobtools host --port 8081 --api-port 8001 /path/to/my/DATASETS" it said error again. 'ERROR: Port 8081 already in use, unable to host BlobtoolKit viewer.'

So I changed the port number to "--port 8091 --api-port 8091", it seemed work like below,

Starting BlobToolKit API on port 8091 (pid: 14595) Starting BlobToolKit viewer on port 8091 (pid: 14629) Visit http://localhost:8091 to use the interactive BlobToolKit Viewer.

but still the web address cannot be reached.

Is it a cluster problem that I do not have some kind of permission to localhost website using cluster? Should I tried on my local machine (Ubuntu)?

I followed the hosting instruction (https://blobtoolkit.genomehubs.org/btk-viewer/viewer-tutorials/hosting-a-local-instance/), but it did not work either.

Anyone knows how to resolve this? I really appreciate your help.

Thank you, Jong Yoon

athenasyarifa commented 2 years ago

Hi, I have the same problem. Could you let me know how you solved this?

Thank you, Rifa

rjchallis commented 2 years ago

If you are running this command on a remote server you will need to forward the relevant ports via ssh so you can access them locally.

If you usually ssh into the sever with a command like:

ssh username@remote_host

then you can get forward the ports that blobtoolkit is using with a command like:

ssh -L 8001:127.0.0.1:8001 -L 8000:127.0.0.1:8000 username@remote_host

then you should be able to access the viewer at http://localhost:8001/view/all as if it were running on your local machine

jyj5558 commented 1 year ago

Hi, Our school has ThinLink, a cluster version of desktop, so I could use that to use blobtoolkit viewer on the cluster. Jong Yoon

From: Athena Syarifa @.> Sent: Saturday, July 23, 2022 10:16 AM To: blobtoolkit/viewer @.> Cc: Jeon, Jong Yoon @.>; State change @.> Subject: Re: [blobtoolkit/viewer] Localhost web address cannot be reached (Issue #28)

---- External Email: Use caution with attachments, links, or sharing data ----

Hi, I have the same problem. Could you let me know how you solved this?

Thank you, Rifa

— Reply to this email directly, view it on GitHubhttps://github.com/blobtoolkit/viewer/issues/28#issuecomment-1193132440, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AV3ENQR4BHQM6AW3P6KKMHLVVP5AJANCNFSM5I4RW5OQ. You are receiving this because you modified the open/close state.Message ID: @.**@.>>