-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Why the dashboard always shows Please define at least one metric for your table
?
#921
Comments
Have you followed the tutorial? |
Yes. |
Also the same issue with a completely different dataset that was working yesterday. Today it suddenly isn't recognized with any tables. I've followed the tutorial about 5 times on different VMs and static machines, nothing. I've changed permissions and the user too but it doesn't change anything. I can link to my dataset if someone would like to try and tell me what they did differently. https://www.sendspace.com/file/c0rx4l - db file The weird part is that this is what it looks like on the SQL query page: http://i.imgur.com/no3b47y.png |
Guys, please calm down. No need to post random screenshots or saying "nothing works". What would be helpful was to state your caravel version and post any eventual backtrace you've found in the logs. |
Yeah I don't understand that. I can't contribute much more, I spent 48 hours for a work project trying to figure it out and I'm useless. Eventually I just tried a different dataset. The thing that's weird is that it obviously reads from the tables and it works sometimes. Other times it just doesn't suddenly.
Lol, okay I'm going to dip out of this repo now but good luck. I was using the most recent version as of this comment and regretfully I don't have access to the logs, I was using Vagrant and the VMs have since been destroyed. |
@DylanAlloy , @seanDot7 - unfortunately with no logs it is really hard to debug the issue. |
I'm seeing a similar issue. I was able to view the example dashboards previously when I had only one user (the admin set up through fabmanager). Now I'm doing enough things off the beaten path that I'm not sure where I've gone wrong. I'm running caravel 0.10.0 with MySQL 5.6.27 (an AWS RDS) as my metadata store. I created a custom security manager that is based on the REMOTE_USER strategy. I'm running this in AWS ECS and one consequence of this is that I run The command
I'm working on figuring out the ssh tunnels required to query the MySQL database. I don't see any error in the log files when I go to one of the example dashboards. The error message "Please define at least one metric for your table" is in each of the charts on the dashboard, but nothing interesting is in the docker logs. Besides the repeated initialization, I'm likely skipping some necessary steps in my custom security manager. I followed some of the examples from Flask-AppBuilder source, but this is my first experience working with FAB so I might be missing some basics. Let me know any additional information that would be helpful debugging this. cheers, |
@dennisobrien if you need to restart from scratch at each deploy i'd revisit your strategy :) Said that please find out what's the migration that gives you the error so we can figure out if there's something wrong. Finally please don't hijack other issues, if you have more information and can reproduce on master please open a new bug report. |
@dennisobrien , you need to get to the bottom of why your db migration script are failing, the real error is probably only in the stack trace of the first attempt, then you get a different error message on subsequent db upgrades (column already exist).
Everyone else here, is there metric defined for your table? The flow for adding a table is not great at the moment, but if you follow the tutorial you should end up with a table with at least one metric defined. |
@xrmx - Thanks for the advice. I thought since this issue was still open and my issue had the exact error message and I had a bit more details that the OP, it would be fine to append to this issue. And I'm well aware that my deployment strategy is a work in progress. @mistercrunch - Thanks for the tips. I'll see if I can find a minimal complete verifiable example and create a new issue if so. |
I use sample data(World Bank). But it fails to show the slices in dashboard.
The text was updated successfully, but these errors were encountered: