Code Monkey home page Code Monkey logo

Comments (15)

theotherp avatar theotherp commented on May 24, 2024 1

Yeah sorry, I didn't see that in the headline ;-)

from nzbhydra2.

theotherp avatar theotherp commented on May 24, 2024 1

Aaargh :-D

Well, I'm really glad that you figured it out quickly. I'll add code that checks the database version in the database file directly.

Thanks for the donation.

from nzbhydra2.

theotherp avatar theotherp commented on May 24, 2024

Thanks for the report. I'm getting feedback left and right, so it might take a bit until I can take a look.

from nzbhydra2.

whispy avatar whispy commented on May 24, 2024

I'm running NZBHydra 1, version 0.2.231 (see: https://vgy.me/pEfIX2.png).

from nzbhydra2.

theotherp avatar theotherp commented on May 24, 2024

There's a column missing in the database that was added with 0.2.151. I can't really explain why it's not there. That should not be possible. That could mean that there are any number of possible database states out there. Oh my god.

I'll have to release a new update for v1 which makes sure everything is expected but that will take time. Considering how many reports I'm getting for v2 you're better off waiting a bit ;-)

from nzbhydra2.

whispy avatar whispy commented on May 24, 2024

Okay, thanks. Is that also why the settings.cfg import fails? I can do without my old database, but manually recreating all the settings and indexers in the UI would be a bit of a pain (but doable)

EDIT: I can send you my DB file too, if you'd like.

from nzbhydra2.

theotherp avatar theotherp commented on May 24, 2024

Please post your debug infos. I didn't really expect so many (or any issues) with the migration.

The settings should be migrated even if the database migration fails.

from nzbhydra2.

theotherp avatar theotherp commented on May 24, 2024

Please post your debug infos from v2 (http://127.0.0.1:5076/system/bugreport)

from nzbhydra2.

whispy avatar whispy commented on May 24, 2024

Debuginfos: https://dl.dropboxusercontent.com/s/sm8ckzmtvys6ya3/nzbhydra-debuginfos-2018-01-06-16-26.zip

from nzbhydra2.

theotherp avatar theotherp commented on May 24, 2024

I'm seeing

Error while reading old settings file
java.io.IOException: Is a directory

Make sure that the settings file you provided is correct.

from nzbhydra2.

whispy avatar whispy commented on May 24, 2024

That was from a previous attempt where I just entered /data/nzbhydra-old-migration into the UI to see if it needed the filename or not. Other attempts in the debuginfos should have the full file paths.

EDIT: And I was doing the manual migration, as my V1 was running in a Docker container.

from nzbhydra2.

theotherp avatar theotherp commented on May 24, 2024

Hm shit, the migration will fail when the database migration doesn't work.

As a workaround you could shut down your v1 instance, move the database files and start v1 again. Then try to migrate again. The v1 database should be reinitialized and match the expectations of the migration process.

from nzbhydra2.

theotherp avatar theotherp commented on May 24, 2024

I really want to know what your database looks like and why it looks like that. The missing columns were added 2016 and Hydra shouldn't even work without them...

from nzbhydra2.

whispy avatar whispy commented on May 24, 2024

I figured it out, and it was me being silly — apologies for wasting your time.

I noticed when moving the database files, as you wrote earlier, that I was mistakenly using an older DB file from the end of 2016 (probably left over from some previous troubleshooting) that was in the top-level of my /hydra folder, and not the most up-to-date database. I corrected this and used the most recent DB file, and the migration worked fine.

Sorry for any potential stress! Keep up the awesome work!

from nzbhydra2.

whispy avatar whispy commented on May 24, 2024

Sent you a small donation to apologize :P

from nzbhydra2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.