mljar / mercury

Convert Jupyter Notebooks to Web Apps
https://RunMercury.com
GNU Affero General Public License v3.0
3.9k stars 247 forks source link

Removed notebooks remain in the Mercury #332

Open pplonski opened 1 year ago

pplonski commented 1 year ago

I'm running Mercury locally. I had eda.ipynb file in the directory. It was served fine in the Mercury. I renamed the notebook file. Now, in the Mercury I had two notebooks, with old and new name. The notebook with old name was not working in the Mercury. The new one is working fine.

There should be some check if notebook is still available when starting Mercury locally.

stroncod commented 12 months ago

I'm having the same issue so you can assign this to me and I'll give it a try.

fightpf commented 7 months ago

I am facing the same issue with the Docker version.Clean media and uploads-temp are not working, even after rebuilding, removing, and restarting, none of these actions seem to resolve the problem. How can I fix it?

pplonski commented 7 months ago

You need to clean database - are you using Postgres or Sqlite? The mercury run clear is working only with local databases. You might try mercury delete path/to/notebook.ipynb. Please check available commands https://runmercury.com/docs/commands/

Second solution, you might try with logging into Admin Panel, and removing notebooks there. Here is docs about Admin Panel https://runmercury.com/docs/authentication/

fightpf commented 7 months ago

Dear @pplonski : Second solution is helpful for me, it succecced solve the problem, thanks for your help. this is my recipe to occur this issue:

  1. Luanch jupyter notebook, path same as docker .env file NOTEBOOKS_PATH variable path
  2. Edit old version .ipynb by jupyter notebook
  3. Rename .ipynb by mv old.ipynb new.ipynb command
  4. remove media and uploads-temp byrm media/* -rf rm uploads-temp/* -rf command
  5. restart docker container (useless)
  6. remove container and creat new container(useless)
  7. rebuilddocker-compose build --no-cache and docker-compose up -d(useless)
  8. in domain/admin notebook section delete it (work)