Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firefox fatals on discover JSON view #3610

Closed
megastef opened this issue Apr 15, 2015 · 32 comments
Closed

Firefox fatals on discover JSON view #3610

megastef opened this issue Apr 15, 2015 · 32 comments
Labels
blocker bug Fixes for quality problems that affect the customer experience v4.0.3 v4.1.1

Comments

@megastef
Copy link

Hi,

I get this error:

Error: Error: Script file not found: worker-json.js (:0)
window.onerror@https://45.55.146.6:5501/index.js?_b=6004:45829:24

using Kibana 4.0.2-linux-64, when I navigate to "manage dashboards" and click to one of the dashboards or queries. Please note dashboards have been created using 4.0.1.

A google search find some things about JSON-Editor, but not very helpful.

@rashidkpc
Copy link
Contributor

I'm able to replicate this, is it causing any observable problems for you beyond the console log message?

@rashidkpc rashidkpc added bug Fixes for quality problems that affect the customer experience v4.1.0 v4.0.3 good first issue low hanging fruit and removed v4.0.3 v4.1.0 labels Apr 15, 2015
@megastef
Copy link
Author

Thx. The error is displayed in the UI. I would need to check logs... and browser console. I guess it's a missing vendor js file, I could check it tomorrow in the office.

@megastef
Copy link
Author

  1. I'm using https and basic auth on a different port.
    marked private data with XXXX in the JSON
  2. The requested URL is 'GET /worker-json.js'
{"@timestamp":"2015-04-15T20:14:06.211Z","level":"info","message":"GET /worker-json.js 404 - 12ms","node_env":"production","request":{"method":"GET","url":"/worker-json.js","headers":{"host":"45.XX.XXX.X:5502","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:37.0) Gecko/20100101 Firefox/37.0","accept":"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8","accept-language":"de,en-US;q=0.7,en;q=0.3","accept-encoding":"gzip, deflate","authorization":"Basic XXXXXXX","connection":"keep-alive","if-none-match":"W/\"9a-9e51e5de\""},"remoteAddress":"95.90.XXX.XX","remotePort":58307},"response":{"statusCode":404,"responseTime":12,"contentLength":154}}

@megastef
Copy link
Author

I'm able to replicate this, is it causing any observable problems for you beyond the console log message?

Yes. I can't change dashboard, visalisations, queries in the Object editor (e.. #/settings/objects/savedDashboards/SYSLOG). But the visual editing e.g. on menu entry "Visualize" works.
So it looks it's really related to ace/json editor - perhaps related to this topic josdejong/jsoneditor#87

@rashidkpc
Copy link
Contributor

What browser is this in? Chrome does not display the message, it appears in the console but there are no side effects.

@megastef
Copy link
Author

Firefox 37 on Mac OS X. might give u access when you send pm on twitter @seti321

@roman-parkhunovskyi
Copy link

Confirm too. Linux x64/Firefox 37.0.1. Cannot edit "manage searches" with the same output. Even more, I cannot directly catch "manage searches" link as mouse looks like in select mode instead of mouse with pointing finger. You can anyway click it at the border of the surrounding rectangle.

@Filirom1
Copy link
Contributor

I have the same issue when I click on settings

@asnodgrass
Copy link

I'm also experiencing this problem. Firefox 37.0.2 on OS X, Kibana 4.0.2. The error is definitely in the UI:

kibana-issue-3610

@luckyrat
Copy link

Confirmed on Windows Firefox 38.0.

I see a brief flash of an "edit visualization object" error page and then the whole UI reloads to this error message.

One of my visualisations was corrupt due to an elasticsearch field name change but using Chrome is a valid (albeit undesirable) workaround for the time being.

PS: I'm new to the entire ELK stack - having fun so far. Once I got past this bug the fix was nice and easy using an inline JSON editor. I had feared having to poke inside the docker image to change a config file but very pleased to find a nice browser GUI instead. Thanks for all your work on it!

@rashidkpc
Copy link
Contributor

Definitely fatals in firefox, possibly only in the build?

@rashidkpc rashidkpc added blocker v4.1.0 and removed good first issue low hanging fruit labels May 21, 2015
@rashidkpc rashidkpc changed the title Script file not found: worker-json.js Firefox fatals on discover JSON view May 21, 2015
@w33ble w33ble self-assigned this May 22, 2015
@w33ble w33ble added the v4.0.3 label May 22, 2015
@w33ble
Copy link
Contributor

w33ble commented May 22, 2015

Added the 4.0.3 label back - I think this was caused by an update to ace-builds, and the version matching in angular-ui-ace is not very restrictive. This means that future 4.0 builds would also be broken without the same fix.

@w33ble
Copy link
Contributor

w33ble commented May 26, 2015

#3960 fixes the issue for now, but it doesn't properly solve the decency resolution in the ace editor. That is, if ace's dependencies change in the future (say, if we want to support another format besides just JSON), this problem will pop up again.

We should be able to copy the whole worker path into the build's public path, but we need a way to set the workerPath in the config. There was an attempt to set it via a require shim init, but that isn't used in the built version. We should figure out a way to set that config in the build and clean up the copy process.

@w33ble w33ble removed their assignment May 26, 2015
@DigiAngel
Copy link

Here as well....

@cherweg
Copy link

cherweg commented Sep 10, 2015

Hi,
yesterday i updated my kibana to 4.1.2. When switching to the table view in discover mode there is an error:
Error: Error: Script file not found: worker-json.js (:0)
window.onerror@http://kibana4.[....].de/index.js?_b=7562:46032:24

This is only in FireFox 38. In my Chromium is erverything ok.

regards
christian

@baboune
Copy link

baboune commented Sep 16, 2015

Issue is still there using kibana 4.1.2.

Script file not found: worker-json.js (:0)
Error: Error: Script file not found: worker-json.js (:0)
window.onerror@http://10.68.228.27:5601/index.js?_b=7562:46032:24

Firefox 40.0.3

@DigiAngel
Copy link

I see we've gone from 4.1.1 to 4.1.2, and still this issue persists. Still more reason why I'm glad I have stayed with Kibana 3.

@slamp
Copy link

slamp commented Sep 29, 2015

Got the issue too with 4.1.2
Error: Error: Script file not found: worker-json.js (:0)
window.onerror@http://hostname/kibana/index.js?_b=7489:46032:24

Firefox 41.0

@choffee
Copy link

choffee commented Sep 30, 2015

Seems to be the permission of the file kibana-4.1.2-linux-x64/src/public/worker-json.js it's read only by root on my server. Changing it so it can be read seems to fix things.
That is how it comes from the zip file.

@juanluisvaladas
Copy link

Tested what @choffee said using the official docker image. Can confirm.

Version details:
Version: 4.1.2
Build: 7562
Commit SHA: 34af16e

@slamp
Copy link

slamp commented Oct 1, 2015

@choffee thanks the file was using mode 500 . We did a chmod a+r and now it works !

@ApsOps
Copy link

ApsOps commented Oct 1, 2015

Confirmed running from the source. Why is this issue closed?

KIBANA_VERSION='4.1.2';
KIBANA_BUILD_NUM='7562';
KIBANA_COMMIT_SHA='34af16e285598b21b9449a3e57560c89b0d11eb8';

@BenoitNorrin
Copy link

+1

@juanluisvaladas
Copy link

Guys, this issue is not fixed. Several people have confirmed it, and there is even a fix. How can this be closed?

@cherweg
Copy link

cherweg commented Oct 21, 2015

This is fixed with:
#4969

Please close this issue.

regards
Christian

@BenoitNorrin
Copy link

So we need a new release.

@jhmartin
Copy link

Any reason not to release this?

@ghlynch
Copy link

ghlynch commented Oct 26, 2015

FWIW, this may not be completely fixed by #4969.

I see a similar problem in FF running kibana:latest (4.1.2) in docker. Clicking any message triangle in the Discover view throws a similar error:

Error: Script file not found: worker-json.js (:0)
Error: Error: Script file not found: worker-json.js (:0)
window.onerror@http://192.168.99.100:5601/index.js?_b=7562:46032:24

Error: Error: Script file not found: worker-json.js (:0) (http://192.168.99.100:5601/index.js?_b=7562:46032)
Error: Error: Error: Script file not found: worker-json.js (:0) (http://192.168.99.100:5601/index.js?_b=7562:46032)
window.onerror@http://192.168.99.100:5601/index.js?_b=7562:46032:24

and adding a
RUN chmod 644 /opt/kibana/src/public/worker-json.js
step to the Dockerfile does not resolve the issue.

@jhmartin
Copy link

@ghlynch try clearing your browser cache, I saw the problem persist after modifying the Dockerfile and then it resolved after I cleared my cache. The fix isn't included in 4.1.2.

@ghlynch
Copy link

ghlynch commented Oct 26, 2015

Yep, that helped. So the docker workaround above works. Thanks.

@jhmartin
Copy link

An odd aspect of this is it appears Kibana was responding with a 304 Not Modified for worker-json.js when the content was in fact different.

@mcnewton
Copy link

Thanks for the info on this - fixed here (Kibana 4.1.2) without having to clear browser cache by first chmod 644 worker-json.js followed by adding a blank line at the top of that file so that the contents have (slightly) changed.

anthraxx pushed a commit to anthraxx/arch-pkgbuilds that referenced this issue Jul 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocker bug Fixes for quality problems that affect the customer experience v4.0.3 v4.1.1
Projects
None yet
Development

No branches or pull requests