Latest version (8.0.15) non-updatable and lost all data (OD-1322)
Closed
Unknown opened 1 year ago

Hello,

Just a heads up that when i attempted to update from 8.0.15 I got an error saying it could not remove files, and I lost all my data.

This time was the ONLY time I forgot to backup before attempting to update, because I was in a rush, which means I have lost about 2 weeks of data, including all code I have wrote over the past 2 weeks, about 40-50 hours of work gone.

REMEMBER TO BACK UP!!!

Unknown changed fields 1 year ago
Name Previous Value Current Value
Priority
Normal
Critical
Unknown commented 1 year ago

the onedev directory was deleted, so before you ask me to use the automatic backup, its gone too.

Unknown commented 1 year ago

I will have to withdraw as a public instance for this mistake, I am no longer trustworthy to be a public instance.

I backup every 2 weeks, all the onedev data, and also every update I backup beforehand, today was the day the 2 week backup had to be done, and I updated onedev today and I waas an idiot and forgot the backup in a rush we all forget things, but I forgot the most vital thing.

I attempted to undo the removal through recovery by the inode journal, but the tools keep trying to recover the broken data, not the working data.

OneDev referenced from other issue 1 year ago
Unknown commented 1 year ago

Another issue is that the data (site) is stored in the same directory as the source code, this wouldn't have happened if the site data was not stored within the same directory, see issue #1323

Robin Shen commented 1 year ago

Not sure how you did the upgrade. With the official upgrade procedure, it should be impossible to lost data, as OneDev never delete the installation directory and user data. Also it will take a database backup automatically before upgrade.

Robin Shen changed fields 1 year ago
Name Previous Value Current Value
Type
Bug
Discussion
Robin Shen changed fields 1 year ago
Name Previous Value Current Value
Priority
Critical
Normal
Unknown commented 1 year ago

I have no clue,

All I saw was "failed to delete file" and then after attempting to recover, the site directory was gone... everything else was there...

Robin Shen commented 1 year ago

Since OneDev's release, it never lost any data as far as I know. Also it will never delete the site directory with the official upgrade procedure.

Robin Shen commented 1 year ago

If you want to offer reliable public OneDev instance, you'd better stick to the official installation and upgrade procedure, and also make sure to get a snapshot before any upgrade.

Unknown commented 1 year ago

Welp,

I think its best to split paths without any hard feelings.

It is obvious we have completely different ideas, I stay conventional, packaged installations, which follows the linux filesystem, and you want it to stay simple, despite the obvious issue arrised about having data and code in the same directory.

Its been fun, and I have tried my hardest to get the package to work.

Can you please confirm you are against the idea of packaging onedev clearly to prevent misunderstanding?

Apart from that it has been nice meeting you, I will submit a PR to remove my community instance, no repositories were ever added by others, but people did contribute on my repositories, so at least it was a good shot at a community instance.

Nice meeting you, Polarian

Robin Shen commented 1 year ago

Do not judge that "it is obvious issue arrised about having data and code in the same directory". It is your own problem, not a problem for all others using OneDev official installation and guide.

Yes I am against package installation, and thank you for all other good suggestions. Nice to meet you too and good luck with the split.

Robin Shen changed state to 'Closed' 1 year ago
Previous Value Current Value
Open
Closed
Unknown commented 1 year ago

I have submitted a request for the removal of onedev from the AUR.

Have a good night, Polarian

issue 1 of 1
Type
Question
Priority
Normal
Assignee
Issue Votes (0)
Watchers (3)
Reference
OD-1322
Please wait...
Page is in error, reload to recover