-
Notifications
You must be signed in to change notification settings - Fork 961
Battery Historian not uploading bugreport #185
Comments
I have the same problem with a Battery Historian install that was working fine last week. My browser's console shows this:
|
I too have the same issues with d3.js: Uncaught ReferenceError: d3 is not defined |
I had the same issue. |
It seems gstatic removed the d3.js graph library file which is required by the battery historian's javascript. Does anyone know if there is a person we could contact on the gstatic side? |
Here is another work around for anyone who really need this thing working:
127.0.0.1 www.gstatic.com
You might have to download jquery.form.min.js and bootstrap as well since they are also served from gstatic. Once that is done I got the docker image working locally on my machine. |
Alternatively you can edit directly battery historian's docker container. Voila! I'm not entirely sure how to make this change permanent. I guess one has to run the local copy of the container instead of pulling it from the web. |
it work,but for some reason ,the line need changed on my container was that <script type="text/javascript" src="//www.gstatic.com/external_hosted/d3/v4/d3.js"></script>just chang it into <script type="text/javascript" src="https://d3js.org/d3.v4.min.js"></script>then restart docker. |
Yes. The url needs to be replaced is "www.gstatic.com". Not <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/d3/4.9.1/d3.min.js"></script> |
oops, sorry, I copied the line perhaps after changing it |
Thanks a lot ! |
@ZiglioUK The aforementioned response to your solution worked thank you. I will leave this open until there is a permanent solution to this |
facing same issue, it was working fine day before yesterday. Does starting docker image pull changes everytime? |
I think it depends on how you start it. You can run the local instance you've pulled and modified, not sure how though |
I did not do it all, when I restart docker. nothing happens, when I try again I find that the file has not been changed in line 45 |
is work tank you very much I forget cmd : docker restart |
Is this related to www.bathist.ef.lc not working for a few days? |
I meant: https://bathist.ef.lc/ |
Yes, of course. If you open the developer tools you'll see that d3.js fails to load |
@Alejandro-pucci I've updated it with the fix, should work now. |
It does work now. Thank you! |
I'm extremely puzzled about this. The code in this repo does not contain the failing gstatic url, but a working one: battery-historian/templates/base.html Line 45 in d2356ba
In addition, seems like the gstatic url was neither set not removed from that file (according to git blame), so it really makes me wonder what exactly is the docker image they are hosting and why does it contain code that is not on the repo. |
For anyone interested, I have created a customized Docker image based on the original one, with the path to the Javascript library modified (taken from base.html from the repo): https://hub.docker.com/r/sfunke/battery-historian Dockerfile:
|
it is not working again... |
@kangting666 this isn't a place to complain about bathist.ef.lc. That site isn't at all affiliated with Google or this repository. It just runs the code here. |
I have run;
docker run -p 19991:9999 gcr.io/android-battery-historian/stable:3.0 --port 9999
and i get the output below when I go to "localhost:19991" and try to upload a bugreport(both zip and txt);
Nandans-MacBook-Pro:~ nandant$ docker run -p 19991:9999 gcr.io/android-battery-historian/stable:3.0 --port 9999
2019/07/08 17:48:44 Listening on port: 9999
2019/07/08 17:52:43 Trace starting analysisServer processing for: GET
2019/07/08 17:52:43 Trace finished analysisServer processing for: GET
2019/07/08 17:52:45 Trace starting analysisServer processing for: GET
2019/07/08 17:52:45 Trace finished analysisServer processing for: GET
when I try to upload the report on the screen nothing gets updated and the 0->100% bar does not show up. It seems through the terminal Battery Historian is receiving the bug report but the localhost:19991 is not updating with the upload
I have tried restarting my Docker, restarting my computer, stopping and restarting the docker run command, as well as trying multiple different bug reports that have worked in the past.
The text was updated successfully, but these errors were encountered: