Remove experiments from online platform


#1

Hi everyone!

In the online platform (http://148.187.97.48/#/esv-private) I’ve managed to delete “experiment_configuration.exc” in one of my experiments. Now, my storage is bricked. I can not clone experiments, create new experiments or see any “Experimental files” in a browser.

I’ve filed the issue here

In a local install I can fix the storage by deleting experiment folders from “~/.opt/nrpStorage”, but I don’t have access to the online storage.

Does anyone have an idea, how to delete experiments from the online storage?
Just for clarification - browser is not showing any files/folders in “Experimental files” nor does it show experiments in “My Experiments” (because of the missing “.exc” file).

So far I’ve tried http header (without any luck):
DELETE
http://148.187.97.48/proxy/storage/name_of_an_experiment


#2

Dear Jiri,

Yes calling the DELETE service will fail because of wrong authentication token.
But the problem you raise is a bad one and we will take your ticket asap in our task list.
In the meantime, we can debug you and delete for you your corrupted folder.
Can you give us your user ID number from:
https://collab.humanbrainproject.eu/#/me
?


#3

Hi @vonarnim,

my user ID is 306496. If it would be possible to empty my online storage, I would be really grateful!

Sincerely,
Jiri


#4

I found 2 folders of you without an exc file. I deleted them but kept a backup as a zip file, in case you need.
Try again.


#5

Thank you for the backup! Fortunately, I have everything stored locally as well, so it’s not necessary.

That’s interesting, even after removing those experiments, I still can’t see any.

  • Cloning any experiment from “Templates” results in “Internal Server Error 500” > “Experiment already exists”, suggesting that experiments are already in my storage, but the system doesn’t know about them.
  • Creating a new experiment successfully creates folder named “template_new_0”.

Is it possible, that the user database went out of sync?, so it displays new experiments, but ignores already existing ones?


One possible “quick-fix” on local installations is to replace the line 236 of the file $HBP/nrpBackendProxy/storage/FS/Storage.js

.filter(folder => this.hasExperimentConfiguration(folder));

with

.filter(folder => { return !INTERNALS.includes(folder); });

and restart the frontend. (Creating a filter based on folder name, not the presence of .exc file)

This enables browser to see all experiment folders in the “Experiment files” and offers the possibility to delete them. (regardless of the presence of the .exc file)

Best Regards,
Jiri


#6

Dear Jiri,

The proxy (handling storage too) seems to be broken in general in the online platform. I am investigating it now. I have similar issues on development servers.

Meanwhile, could you provide your hotfix in a pull request on our nrpBackendProxy Bitbucket repo?
We are in the process of allowing pull requests on all repos, but the proxy is precisely the one we try it out first. So this would be a perfect test case. Please follow the instructions in the README.md file at the root of the repo.

Cheers


#7

The proxy has been fixed. Please try again.


#8

Dear Jiri,

The bug has been fixed in the online platform, and the hotfix it will be available for local installs in the next release (2.0.5).

Thank you for the bug report,
Claudio