[App Server] .jar file corrupt or Invalid

I’m getting this:
Error: Invalid or corrupt jarfile /home/luado/testePassoAPassoENV/lib/python3.8/site-packages/anvil_app_server/anvil-app-server.20200810-143539.jar

When I run:
anvil-app-server --app DSOO_Dashboard/

Any tip how to fix? I tried deleting the file and letting anvil redownload it, to no avail…

Weirdly enough, I have the very same app running on MachineA, serving the app publicly. I used scp to copy the app from MachineA to my local machine, and tried running the app locally, I still get the same error.

1 Like

Hi @lempb.pessoa,

Could you check which version of the App Server you’re running on your local machine? pip show anvil-app-server should do the trick. The current version is 1.2.

If you’re running an older version, deleting the jarfile and upgrading the app server should solve your problem: pip install --upgrade anvil-app-server

1 Like

I’m currently having the same issue. Did you ever find a solution?
(upgrading server didn’t work for me)

Edit:
Found a solution. Delete the .jar file, and start server again using $ anvil-app-server --app MyTodoList
A new jar file will be downloaded

2 Likes