-
-
Notifications
You must be signed in to change notification settings - Fork 258
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
Can not view or use any Workouts or routines #722
Comments
oh you got an exception! 😍 That will definitely help, when this happens to people using the app there's nothing to go on for. BTW, this is a fresh install after running |
its a fresh virtual machine each time I iterate the process but I dont uninstall and reinstall the flatpak, no. I do try purging the exhersize cache in the app bt that does not seem to do anything. At various points I have tried running |
Hm, well I got a similar error in android when looking up workouts as the flatpak:
idk what instance your app is connecting to, mine is connecting to http://10.42.0.175:1785 and using user admin adminadmin. Are there other steps besides the ones I listed in my original post that must be performed? I have two instances running now and one did sudo docker compose exec web python3 manage.py sync-ingredients and the other did sudo docker compose exec web python3 manage.py warmup-exercise-api-cache --force and neither seem to work. The logs server side show standard api calls that seem to wrok, and using curl to get exhersizes seems to work to. just not the app itself. |
yes, making the url public is really helpful! Right now I can't access it, might be some network config? But no, sync-exercises is the only step you need to do (even the cache one is not necessary). I will try tomorrow again |
I tried the app again this morning and now the app loads the exhersizes just fine. I am vey happy and very confused. |
I am experiencing the same issue on a fresh install. The annoying thing is, I can add exercises from the web UI just fine, but then the whole workout disappears from the mobile app. Is there maybe some data incompatibility between the web and app versions? |
@Spatchy do you perhaps also have compiled the flutter app? Are you getting the same exception? |
@Spatchy and @rolandgeider, If you are using the linux flatpak, you do not nessisarly need to compile the app yourself to get the error logs (something that I am personally almost never willing to do myself). If you dont have flatpak installed see here if you have the app installed with flatpak you can type |
I can confirm I also get the same error when using the flatpak
|
@Spatchy did you download images for your workouts? I think the fact that I did not do that on one of my servers is what lets that one work. Even if thats not it, there is probable some tweak you can perform to get the app to a usable state. While there maybe some server tweaks that will fix this issue for users, I still fundamentally think this is an issue with the flutter app, it should be able to handle some small misconfig issues the same way the web client does. The reason I think its images is because I currently have to virtual machines, one with wger working for the flutter app, and one where it is not wo0rking with the flutter app. If I do an api request with api result from working server:
api result from broken (it works on web but not flatpak / mobile):
|
Besides the fact that I can't for the life of me reproduce this, the error in the exception relates to exercise translations, not images. In any case, I've added a workaround there and will push a new version later today |
have just pushed a new flatpak package, should be available on flathub in a couple of hours |
@rolandgeider Thanks for this, although there seems to be an issue with the language settings when searching for exercises now. I'm not sure if this is a result of your workaround or something completely unrelated. If I go to the web interface and add, for example "Bench Press" It will show up there as expected, but if I now view it in the Flatpak, it shows in German: Let me know if I should open a separate issue for this |
no, it's the same issue, the actual problem was that for some reason the languages could not be found/mapped. If you go to |
I am experiencing the same issue on a new VM I spun up with the exact same steps in the original issue. I suspect its because I never changed the time zone in the config from german to US, but issue persists even after changing the config in that same vm. no errors in flutter terminal that I can see. have not yet tested changing the time zone in a fresh vm. as for api, I get 24 entries in the count. Full output from command:
Thanks a bunch for setting up /api/v2/schema/ui by the way. really helped with setting up some simple bash scripts to do automatic data entry for sleep tracking. The whole generic measurments thing is awesome Also, I am unable to reproduce this issue on a public facing VPS. The differences are its a debian 12 vps, it does not run in a virtual machine and so does not have the
parts, and things seem to work hunky dory. If I can reproduce the issue on a public IP I'll share it, but I am not sure if I can spin up lxc in a vps |
I also have 24 in |
yeah, 24 is the right number 😄 The time zone shouldn't have any effect, in the flutter app we always download all available languages. I would understand if you had added a new one on the server as well as some exercise translations for it. And like I said, I've never managed to reproduce this with fresh docker compose setups, fresh android emulators, etc. I'll add some log messages to see if we can narrow this down |
Steps to Reproduce
My rule is that all new software that I have not fully figured out lives runs on either a yunohost machine or in a virtual machine. I have very, very limited experience with docker. The steps I follow to setup the local wger server are:
lxc list
.After following those steps I can go to http://10.42.0.175:1785 on any browser in my local network and have it "just work". Everything in the webui works fine as far as I can tell. But I anticpate using the web ui essentially never, I use my tablet for pretty much everything.
When I log into the android app or the flatpak app, I am unable to view any exhersizes. I cant start or record anything because there are no details. This is what the web ui looks like:
And this is what the flutter app on desktop (and android, which is where I want to use but am using flatpak for convinence debugging) looks like:
Clicking on "add day" does let me add a day, but when I try to add an exhersize it just spins around forever, and wont let me add an exhersize
If I launch the flatpak from the command line the error is:
I noticed a bunch of other github issues with other folks mentioning they had issues loading exhersizes, wger-project/docker#108 (comment) but those look like issues with configurations, since for me everything works peachy keen in the web ui. The problem is with the flutter app someplace.
The text was updated successfully, but these errors were encountered: