elsiklab / multibigwig

A JBrowse plugin for plotting multiple bigwig subtracks
12 stars 2 forks source link

404 error on main.js #13

Closed thomasvangurp closed 7 years ago

thomasvangurp commented 7 years ago

The plugin tries to get main.js using a http get request, resulting in a 404 error. Strangely enough, getting 'main.js' for RegexSequenceSearch does not result in such an error:

10.97.39.3 - - [02/Jun/2017:17:00:17 +0200] "GET /plugins/multibigwig/test/data/trackList.json HTTP/1.1" 304 209 "https://jbrowse.solynta.com/?data=plugins%2Fmultibigwig%2Ftest%2Fdata&loc=ctgA%3A15784..31555&tracks=DNA&highlight=" "Mozilla/5.0 (Macintosh; Intel Mac OS X
10.97.39.3 - - [02/Jun/2017:17:00:17 +0200] "GET /plugins/multibigwig/test/data/tracks.conf HTTP/1.1" 304 209 "https://jbrowse.solynta.com/?data=plugins%2Fmultibigwig%2Ftest%2Fdata&loc=ctgA%3A15784..31555&tracks=DNA&highlight=" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10
10.97.39.3 - - [02/Jun/2017:17:00:18 +0200] "GET /plugins/MultiBigWig/js/main.js HTTP/1.1" 404 588 "https://jbrowse.solynta.com/?data=plugins%2Fmultibigwig%2Ftest%2Fdata&loc=ctgA%3A15784..31555&tracks=DNA&highlight=" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:53.
10.97.39.3 - - [02/Jun/2017:17:00:18 +0200] "GET /plugins/RegexSequenceSearch/js/main.js HTTP/1.1" 200 2878 "https://jbrowse.solynta.com/?data=plugins%2Fmultibigwig%2Ftest%2Fdata&loc=ctgA%3A15784..31555&tracks=DNA&highlight=" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.1

it does not appear to be a permissions issue though:

total 24K
drwxrwxr-x 4 solynta jbrowse 4.0K Jun  2 16:27 .
drwxrwxr-x 7 solynta jbrowse 4.0K Jun  2 16:27 ..
-rwxrwxrwx 1 solynta jbrowse 1.9K Jun  2 16:27 main.js
-rw-rw-r-- 1 solynta jbrowse 1.6K Jun  2 16:27 MultiBigWig.profile.js
drwxrwxr-x 3 solynta jbrowse 4.0K Jun  2 16:27 Store
drwxrwxr-x 4 solynta jbrowse 4.0K Jun  2 16:27 View
solynta@APP02:/var/www/jbrowse$ ls -lhat plugins/RegexSequenceSearch/js/
total 56K
drwxrwxr-x 4 solynta jbrowse 4.0K May  3 02:10 .
drwxrwxr-x 4 solynta jbrowse 4.0K May  3 01:56 ..
-rw-rw-r-- 1 solynta jbrowse 6.1K May  3 01:55 main.js
-rw-rw-r-- 1 solynta jbrowse 8.3K May  3 01:55 main.js.map
-rw-rw-r-- 1 solynta jbrowse  15K May  3 01:55 main.js.uncompressed.js
-rw-rw-r-- 1 solynta jbrowse 1.7K May  3 01:55 RegexSequenceSearch.profile.js
drwxrwxr-x 2 solynta jbrowse 4.0K May  3 01:55 View
drwxrwxr-x 3 solynta jbrowse 4.0K May  3 01:55 Store

what could be the reason for this? e.g. solynta.jbrowse.com is not publicly accessible.

cmdcolin commented 7 years ago

Hmm

One thing I would make sure of is that the folder is in

plugins/MultiBigWig

Instead of

plugins/multibigwig

It is case sensitive sometimes. I think I might be able to fix that codewise but let me know if that helps

thomasvangurp commented 7 years ago

Thx for the fast reply! that did the trick 👍

solynta@APP02:/var/www/jbrowse/plugins$ ls -lhat MultiBigWig
lrwxrwxrwx 1 solynta solynta 11 Jun  2 17:18 MultiBigWig -> multibigwig
cmdcolin commented 7 years ago

Perfect...I think there could possibly be a way to fix it so the code doesn't care how it is named so I'll keep this open. Cheers

cmdcolin commented 7 years ago

Uses relative paths now :) https://github.com/elsiklab/multibigwig/commit/39d651859a0b0ecf558a6afb8172390ca3b026f8