superset icon indicating copy to clipboard operation
superset copied to clipboard

Some problems on the nav bar

Open anddyhuaa opened this issue 9 years ago • 8 comments

i used 0.15.4 it's OK but 0.16 version and lastest version,there are Some displaying problems on the nav bar error_nav

Superset version

0.16 and later

anddyhuaa avatar Mar 21 '17 17:03 anddyhuaa

How are you installing superset? If building from source have you built the static files as documentation states?

xrmx avatar Mar 21 '17 17:03 xrmx

yeah,i have installed superset on 0.15.4 verison according to the documentation early and it works, i wanna to upgrade to the lastest version, at first i thought some version mismatches on python packages or maybe some files cached , then i reinstall but it doesn't work

anddyhuaa avatar Mar 22 '17 01:03 anddyhuaa

did you restart the server after upgrading?

mistercrunch avatar Mar 22 '17 06:03 mistercrunch

i have restarted the server for several times but it shows as before not in correct format

anddyhuaa avatar Mar 22 '17 06:03 anddyhuaa

Look at your browser console and check whether there are any 404 error for js or css. If so, I guess maybe you've moved your code and broke the soft link under superset/static

ErosZZH avatar Mar 22 '17 11:03 ErosZZH

i download the source code and initially it is a nomal file /root/superset-master/superset/assets, when install,an error occurs : can't found /root/superset-master/superset/static/assets/backendSync.json NO such file so i remove this file and make a soft link [root@test2 build]# cd /root/superset-master/superset/static/ [root@test2 build]# touch /root/superset-master/superset/static/assets ../assets [root@test2 build]# rm -f assets [root@test2 build]# ln -s ../assets/ assets [root@test2 static]# ls -la total 8 lrwxrwxrwx. 1 root root 10 Mar 22 00:14 assets -> ../assets/ i am not sure there is any influence on that?

anddyhuaa avatar Mar 23 '17 03:03 anddyhuaa

Superset build frontend code on superset/assets. But when you start superset, it will download assets of frontend from superset/static/assets. So superset's author made this soft link. If you've moved superset's code, the soft link will be broken. Even though you've execute npm install and npm run build. There are no dist and node_modules directory under superset/static/assets, which will cause your problem.

ErosZZH avatar Mar 23 '17 03:03 ErosZZH

thank you for your reply, i reinstall again and upgrade to 0.17.1,it works

anddyhuaa avatar Mar 30 '17 02:03 anddyhuaa