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

Database load error #77

Closed
rcarsey1 opened this issue Oct 26, 2020 · 7 comments
Closed

Database load error #77

rcarsey1 opened this issue Oct 26, 2020 · 7 comments

Comments

@rcarsey1
Copy link

rcarsey1 commented Oct 26, 2020

I updated my installation yesterday and again today (the usual command found in the README). I am getting some errors in the browser. I also tried deleting /usr/local/share/tar1090 completely and re-downloading everything. No help.

I am seeing these errors in my Chrome dev mode console:

a6cb48: Database load error: parsererror at URL: db-a728e0e/A.js planeObject_a188fb0_a728e0e.js:2002 a02c40: Database load error: parsererror at URL: db-a728e0e/A.js planeObject_a188fb0_a728e0e.js:2002

I believe this is somehow related to the "precompress database files in tar1090-db" commit from 4 days ago. I think maybe I somehow caught things in the middle of switching over to using pre-compressed tar1090-db files.

gunzip-ing all the files in /db-a728e0e will fix the issue of course.

@wiedehopf
Copy link
Owner

Yeah somehow your lighttpd isn't adding the Content-Encoding header properly.

Can you first try this fix:
https://github.com/wiedehopf/tar1090#history-not-loading-issue-possible-fix
(and after the possible fix rerun the tar1090 install script)

@wiedehopf
Copy link
Owner

Tempted to revert that change lighttpd .... just too unreliable maybe.

@rcarsey1
Copy link
Author

I understand the issue now. I MAY be a unique situation, as I'm using nginx, not lighttpd. (I don't know what is native/defaults are in lighttpd vs nginx vs apache, etc). I will have to tweak my web server's configs. I will absolutely agree though that A) there is a lot of savings in compressing these, B) re-compressing these repeatedly via the web server is wasted compute time.

@wiedehopf
Copy link
Owner

The install script produces a custom nginx conf file for each instance.

@wiedehopf
Copy link
Owner

To configure nginx for tar1090, please add the following line(s) in the server {} section:

include /usr/local/share/tar1090/nginx-tar1090-webroot.conf;
include /usr/local/share/tar1090/nginx-tar1090.conf;

does yours not output this?

@rcarsey1
Copy link
Author

Yes, it outputted only the line:
include /usr/local/share/tar1090/nginx-tar1090.conf;

I was running on a self-compiled nginx v1.19.2 (i needed to compile some nginx modules for another project). I checked my old config files (ie. nginx.conf.rpmsave) and I do see it there.

I uninstalled nginx and installed the CentOS 8 native nginx (v1.14.1). Fresh config. Added the include line.

Everything works as intended.

Possible compatibility problem with nginx v1.19.. but its more probable that I didn't compile in some module needed.

Lets chalk this up to user-error.

@wiedehopf
Copy link
Owner

I don't think it's the nginx version.
You need to restart nginx when the configuration file for tar1090 changes (doesn't happen too often).

For lighttpd i restart it in the install script but i expect people using nginx to do it themselves ;)
Maybe i should print something extra in that regard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants