-
Notifications
You must be signed in to change notification settings - Fork 270
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
File restore not possible from older version #4377
Comments
Hi, Can you check with XOA to see if it's an environment problem or a XO bug? You can use this to deploy it easily: https://xen-orchestra.com/#!/xoa |
Hi, I have installed XOA and it worked as expected there. |
No, I think it's an environment error, something related on the way it's running, not due to a XO version. Have you followed our doc for the source install? https://xen-orchestra.com/docs/from_the_sources.html |
Yes when I installed it maybe 6 months ago. I have just used the update section in the docs after that. |
Try with a fresh install following instructions, and ideally on a Debian VM to be close as possible of XOA 👍 |
I have now installed a new vm, debian 9 with all updates. Then installed from the sources with the instructions from the docs. I see now that I get a message in the vm's console after I chose partition |
I reverted back to version 5.44, the same as XOA is running and now it is working. So it looks like the problem is with the newer versions. |
Can you point since which commit it seems to work? |
I will try, do you have a simple way I can upgrade one commit at the time? |
In theory you have Do your tests, and if it works: this commit is now the new "base", so go from there up to halfway of the latest commit. And repeat. If you "land" on a commit where it starts to fail, go backward. Finally, you'll find the culprit 😄 |
Can you go back on your XOA and select |
Done that, it's not a problem on XOA. |
Even on |
That is correct, I changed from stable to latest channel. Current version: 5.37.0 |
Okay so in XOA you have something more recent than the commit you tested with a problem, I don't know why. |
Tested, same problem as before. |
I have no idea then. @julien-f will take a look, but if it works on a more recent commit in XOA, it's a environment issue. |
Yeah I agree to that. But there is something done after ff9782b that made the environment give back the error: |
So to recap: right after this commit, it doesn't work for you? |
You are on |
Yes, the one after that commit in the releases list causes that problem. |
To be sure, can you tell me the exact commit causing the issue? For it, it seems a very small commit without anything related to your issue. |
The problematic commit is just jumping a version of |
In the meantime, feel free to retry when we have new commits on |
No, there was more than just that happening between the releases. As I said, I was using the releases list. When I say releases list, I mean this: https://github.com/vatesfr/xen-orchestra/releases And it looks like the error: I will try new commits now and then to see if it start to work again while I wait for @julien-f |
Okay so from the sources, I don't think it's a good idea to rely on GitHub releases: because it's complicated and not meant to be used like that. In XOA, we do a specific integration of what's better between different components (running a lot of QA of various component version to craft a stable XOA). In short, XOA is really like a distro dedicated to Xen Orchestra. If you don't want to do that work yourself, I would strongly suggest to just rely on Regarding the commit details, it's out of my area of expertise, so @julien-f will the man to ask! |
Ok, but it looks like all the releases in GitHub release is from the masters branch. I will wait for @julien-f |
In my case I have done that, the only thing that is the same between rebuilds, is the SR with the backups. |
And those very same backups can be restored from an XOA, right? Trying to figure out this, it doesn't make sense 😕 |
It doesn't look like it mounts the image in the same way. I don't believe the backup NG mounts the image for an SR restore. I could be wrong. After a rebuild with most current XOA from source I still have the same issue with file restore. Is there any logs or items that I can provide that would be helpful? |
There's no XO code difference with XOA, it's the entire environment that's tested, that's the main diff (not the code). That's why I'm puzzled with your issue. Check your browser console log while you try to restore. |
I agree it must be something in the environment. I was wondering if you would like some log collection to see what it is. Since environment is outside of XO from source scope I understand if I need to deal with this on my own. |
@olivierlambert Yes, with XOA it works ok. I can try to check the browser logs a bit later. But regarding the environment, I tested as @olivierlambert said, Debian 9, all updates, followed the instructions in the docs. So it should be the relatively the same as in a XOA environment. |
From the browser:
|
What's the node and npm version do you have? |
I'm getting the same browser error as @mmartinWECHU. Previously posted about it here. |
@john-arvid thing is, there's a difference somewhere because we can't reproduce it, neither in XOA nor in our dev env. @julien-f any idea on this after seeing those browser logs? |
@olivierlambert Still seeing this after upgrading to latest available source. Here's my details --
|
This is not uninteresting but not really helpful because the code is minified so lines and variable names don't mean anything. |
@julien-f I'm willing to help isolate this issue. Let me know if there's anything I can do on this end. |
Retested with latest commit: ee9cc05 Still seeing this issue
Browser console output when trying to restore a file from delta backup
|
I am also affected by this. And as many here have said already, I agree that efdfa1f is the commit that breaks things. I tried reverting this commit and then rebuilt XO, and I can now restore files again. But it's obviously an ugly hack with potential side-effects (esp. for people who still use nodejs-v6 - if I interpret the commit message correctly). In effect, I now run the latest XO, but with somewhat older npm dependencies, and so far I didn't experience any problems, but it's only been a few hours and just some basic tests... Did anybody else try this and found anything that breaks? |
This is what I'm getting in the Chrome console --
|
@Danp2 this looks like the same error than before. It's still tripping over constructing the correct file path... While investigating further, I did this a few times by now, and so far it worked every time, also on a freshly installed system. The steps needed: However, since you are on a different distro / version (albeit very similar), YMMV... |
Ok... so here's a temporary fix until the devs can figure this out. Edit the file
to
After that, execute the command |
For anyone interested, this is a section of code from the index.js of xo-web post "yarn build" --
Note that |
Thank you all for your help investigating this! ❤️ |
Great work! |
Because the packaging system is quite different and was not using the exact same version of the dependency. 😭 |
Context
Expected behavior
Expect file restore to be possible from backups done with old versions of Orchestra.
Current behavior
I can chose backup date, disk and partition, but the files are not showing up.
Other information
I am using the Backup NG with Delta backups.
I don't get any errors in the web interface.
Let me know what information I should gather for this issue.
The text was updated successfully, but these errors were encountered: