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

Visualisation type map(markers) marker image missing #3040

Closed
laurikoobas opened this issue Nov 5, 2018 · 10 comments
Closed

Visualisation type map(markers) marker image missing #3040

laurikoobas opened this issue Nov 5, 2018 · 10 comments

Comments

@laurikoobas
Copy link

Issue Summary

When using the map(markers) visualization type then the single marker image seems to be missing. It points me to this place:
https:///static/images/////node_modules/leaflet/dist/images/marker-icon-2x.png

Steps to Reproduce

  1. Write this query select 24 as x, 60 as y
  2. Choose Map (Markers) visualization
  3. Pick x or y for latitude and longitude and observe how the browser shows a missing image icon in middle of the ocean somewhere

Technical details:

  • Redash Version: latest (5.something)
  • Browser/OS: Chrome (Windows)
  • How did you install Redash: manually.. ?
@kravets-levko
Copy link
Collaborator

Hi @laurikoobas! Seems it's a setup issue (and URL to the image does not look correct as well). Please ensure that you executed npm install and npm run build commands, then check the app/dist folder:
image

@mrsweaters
Copy link

@kravets-levko I'm having the same issue. I'm using the legacy approach to upgrade and not the docker image. I tried running npm install and npm run build from the /opt/redash/current directory but it just broke the app. I managed to get back to where I was by running sudo bin/upgrade again.

@mrsweaters
Copy link

Other map related images don't seem to be loading either:
screen shot 2018-11-15 at 4 41 00 pm

@arikfr
Copy link
Member

arikfr commented Dec 17, 2018

@mrsweaters did you try using the release tar balls we distribute (available from version.redash.io)?

@mrsweaters
Copy link

I followed the instructions outlined on https://version.redash.io/ to upgrade. Which led me to https://redash.io/help/open-source/admin-guide/how-to-upgrade-legacy. I'm not sure if that is what you are asking though. Could you clarify? Thanks!

@mrsweaters
Copy link

Upgrading to 6.0 also has the same issue.

@arikfr
Copy link
Member

arikfr commented Dec 18, 2018

You mentioned that you had to run npm install/bundle, which are not needed if you use the standard upgrade process, hence my confusion.

I did manage to reproduce this and will check this out.

Thanks.

@TomFrost
Copy link

TomFrost commented Jan 4, 2019

+1 from another non-docker standard install, upgraded regularly over the course of a year with the upgrade script. Image URL is /static/images/_/_/_/_/node_modules/leaflet/dist/images/marker-icon.png

Redash Version 6.0.0+b8536 (4780bd9)

@arikfr
Copy link
Member

arikfr commented Mar 10, 2019

Ok, the reason for this is actually obvious: in the script that packages the tar ball file we exclude node_modules:

tar -zcv -f /tmp/artifacts/$FILENAME --exclude="optipng*" --exclude=".git*" --exclude="*.pyc" --exclude="*.pyo" --exclude="venv" --exclude="node_modules" *

(see the last --exclude flag)

We need to change this to exclude only the root node_modules folder.

@arikfr
Copy link
Member

arikfr commented Mar 25, 2019

This should be fixed in v7 tarball. Please re-open if it reproduces.

@arikfr arikfr closed this as completed Mar 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants