Author Topic: Windows tool for migration from Bittorrent/uTorrent/Deluge to qBittorrent  (Read 36826 times)

DeathStalker

  • Newbie
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Hmmm, so no one has run any tests on the issues that I posted about last year?  Sad.

Maybe it's not an issue if you don't currently use the pre-allocation and !ut extension, I don't know.  But I still feel it is something that should be looked into.  I won't be giving it another try until more testing has been done (not with ~2k titles I current have loaded on multiple trackers).

rumanzo

  • Member
  • **
  • Posts: 55
  • Karma: +5/-0
    • View Profile
Hmmm, so no one has run any tests on the issues that I posted about last year?  Sad.

Maybe it's not an issue if you don't currently use the pre-allocation and !ut extension, I don't know.  But I still feel it is something that should be looked into.  I won't be giving it another try until more testing has been done (not with ~2k titles I current have loaded on multiple trackers).

I have already said everything.
There is a difference in saving the pieces of files, I tried to compare them and understand the pattern and did not succeed, the bittorrent\utorrent is closed source software, and programming is my hobby (useful for work).
You can prepare for migrating - finish all your downloads before importing, or uncheck the option add !ut|!bt to file extension.

I'm not sure that I will ever be able to implement this feature.
If you want to implement this feature - you can do pull request, or at least help me with the analysis of the difference of saving pieces qBittorrent (*.parts) and uTorrent (*.dat).

kkorsch

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Hi, I'm excited to try your tool.  I currently have uTorrent 2.2.1 and looking to migrate to the latest qBittorrent which I have installed.  When I run v.1.0 of the tool from command prompt in Windows 7 I get the following error message:

C:\TEMP\uTorrent Migration>bt2qbt_v1.0_amd64
It will be performed processing from directory C:\Users\Alan\AppData\Roaming\uTo
rrent\ to directory C:\Users\Alan\AppData\Local\qBittorrent\BT_backup\
Check that the qBittorrent is turned off and the directory C:\Users\Alan\AppData
\Local\qBittorrent\BT_backup\ and config C:\Users\Alan\AppData\Roaming\qBittorre
nt\qBittorrent.ini is backed up.

Press Enter to start

2019/04/18 22:38:38 Started
fatal error: all goroutines are asleep - deadlock!

goroutine 1 [chan receive]:
main.main()
        /go/src/bt2qbt/bt2qbt.go:571 +0x11eb

goroutine 22 [chan send]:
main.logic(0xc000035f10, 0x6b, 0xc00005b650, 0xc000030310, 0xc00000a140, 0xc0000
0a141, 0xc000030320, 0xc000558060, 0xc0005580c0, 0x4, ...)
        /go/src/bt2qbt/bt2qbt.go:404 +0x15c1
created by main.main
        /go/src/bt2qbt/bt2qbt.go:562 +0xc38

goroutine 378 [semacquire]:
sync.runtime_Semacquire(0xc00000a078)
        /usr/local/go/src/runtime/sema.go:56 +0x40
sync.(*WaitGroup).Wait(0xc00000a070)
        /usr/local/go/src/sync/waitgroup.go:130 +0x6b
main.main.func1(0xc00000a070, 0xc000558060, 0xc0005580c0)
        /go/src/bt2qbt/bt2qbt.go:567 +0x32
created by main.main
        /go/src/bt2qbt/bt2qbt.go:566 +0x1085

C:\TEMP\uTorrent Migration>

Same happens when I run with the no tags option.  It seems that someone above was succesful with uTorrent 2 so I figure I must be doing something wrong.

rumanzo

  • Member
  • **
  • Posts: 55
  • Karma: +5/-0
    • View Profile
Thanks for writing this message. It's defenetly a bug, i try to fix it in short time

rumanzo

  • Member
  • **
  • Posts: 55
  • Karma: +5/-0
    • View Profile
Hi, I'm excited to try your tool.  I currently have uTorrent 2.2.1 and looking to migrate to the latest qBittorrent which I have installed.  When I run v.1.0 of the tool from command prompt in Windows 7 I get the following error message:

C:\TEMP\uTorrent Migration>bt2qbt_v1.0_amd64
It will be performed processing from directory C:\Users\Alan\AppData\Roaming\uTo
rrent\ to directory C:\Users\Alan\AppData\Local\qBittorrent\BT_backup\
Check that the qBittorrent is turned off and the directory C:\Users\Alan\AppData
\Local\qBittorrent\BT_backup\ and config C:\Users\Alan\AppData\Roaming\qBittorre
nt\qBittorrent.ini is backed up.

Press Enter to start

2019/04/18 22:38:38 Started
fatal error: all goroutines are asleep - deadlock!

goroutine 1 [chan receive]:
main.main()
        /go/src/bt2qbt/bt2qbt.go:571 +0x11eb

goroutine 22 [chan send]:
main.logic(0xc000035f10, 0x6b, 0xc00005b650, 0xc000030310, 0xc00000a140, 0xc0000
0a141, 0xc000030320, 0xc000558060, 0xc0005580c0, 0x4, ...)
        /go/src/bt2qbt/bt2qbt.go:404 +0x15c1
created by main.main
        /go/src/bt2qbt/bt2qbt.go:562 +0xc38

goroutine 378 [semacquire]:
sync.runtime_Semacquire(0xc00000a078)
        /usr/local/go/src/runtime/sema.go:56 +0x40
sync.(*WaitGroup).Wait(0xc00000a070)
        /usr/local/go/src/sync/waitgroup.go:130 +0x6b
main.main.func1(0xc00000a070, 0xc000558060, 0xc0005580c0)
        /go/src/bt2qbt/bt2qbt.go:567 +0x32
created by main.main
        /go/src/bt2qbt/bt2qbt.go:566 +0x1085

C:\TEMP\uTorrent Migration>

Same happens when I run with the no tags option.  It seems that someone above was succesful with uTorrent 2 so I figure I must be doing something wrong.

I can repeat a bug and fix this in version 1.1 https://github.com/rumanzo/bt2qbt/releases . But this deadlock repeats only if bt2qbt can't find all torrent's. Try new verion and if it's not work with you case we will find why this happens.

simidef

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Works like charm! Saved me a lot of time and effort!

win7/i386 migrating from utorrent 3.5 (build 44090)

Hats off for great work rumanzo!

aaaa1234

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Hello,

I tried using the tool, but it only copied 1 torrent.
I ran it again, and it copied 2.

I have about 1300 torrents, and I'm not getting any error messages.

This is a sample of how the routine ends:
Code: [Select]
goroutine 1172 [semacquire]:
sync.runtime_Semacquire(0x123e8c7c)
        C:/msys64/mingw64/lib/go/src/runtime/sema.go:56 +0x2e
sync.(*WaitGroup).Wait(0x123e8c70)
        C:/msys64/mingw64/lib/go/src/sync/waitgroup.go:129 +0x7a
main.main.func1(0x123e8c70, 0x12410040, 0x12410080)
        C:/Users/rumanzo/eclipse-workspace/testinggo/src/deluge2qbt/deluge2qbt.go:340 +0x21
created by main.main
        C:/Users/rumanzo/eclipse-workspace/testinggo/src/deluge2qbt/deluge2qbt.go:339 +0xed4

Please help, thanks. I'm trying to migrate from deluge.

rumanzo

  • Member
  • **
  • Posts: 55
  • Karma: +5/-0
    • View Profile
Hello,

I tried using the tool, but it only copied 1 torrent.
I ran it again, and it copied 2.

I have about 1300 torrents, and I'm not getting any error messages.

This is a sample of how the routine ends:
Code: [Select]
goroutine 1172 [semacquire]:
sync.runtime_Semacquire(0x123e8c7c)
        C:/msys64/mingw64/lib/go/src/runtime/sema.go:56 +0x2e
sync.(*WaitGroup).Wait(0x123e8c70)
        C:/msys64/mingw64/lib/go/src/sync/waitgroup.go:129 +0x7a
main.main.func1(0x123e8c70, 0x12410040, 0x12410080)
        C:/Users/rumanzo/eclipse-workspace/testinggo/src/deluge2qbt/deluge2qbt.go:340 +0x21
created by main.main
        C:/Users/rumanzo/eclipse-workspace/testinggo/src/deluge2qbt/deluge2qbt.go:339 +0xed4

Please help, thanks. I'm trying to migrate from deluge.

Hi! Thanks for bug report. I will try to fix it as fast as i can.

rumanzo

  • Member
  • **
  • Posts: 55
  • Karma: +5/-0
    • View Profile
Hello,

I tried using the tool, but it only copied 1 torrent.
I ran it again, and it copied 2.

I have about 1300 torrents, and I'm not getting any error messages.

This is a sample of how the routine ends:
Code: [Select]
goroutine 1172 [semacquire]:
sync.runtime_Semacquire(0x123e8c7c)
        C:/msys64/mingw64/lib/go/src/runtime/sema.go:56 +0x2e
sync.(*WaitGroup).Wait(0x123e8c70)
        C:/msys64/mingw64/lib/go/src/sync/waitgroup.go:129 +0x7a
main.main.func1(0x123e8c70, 0x12410040, 0x12410080)
        C:/Users/rumanzo/eclipse-workspace/testinggo/src/deluge2qbt/deluge2qbt.go:340 +0x21
created by main.main
        C:/Users/rumanzo/eclipse-workspace/testinggo/src/deluge2qbt/deluge2qbt.go:339 +0xed4

Please help, thanks. I'm trying to migrate from deluge.
Try new version https://github.com/rumanzo/deluge2qbt/releases

aaaa1234

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Hello,

Thank you for trying to help! I tried the updated version, and it still only copied a few torrents.


Code: [Select]
goroutine 1158 [runnable]:
main.logic(0x126aea20, 0x28, 0x5, 0x0, 0x5aa151a0, 0x0, 0x0, 0x0, 0x0,
        /home/kostinan/go/src/deluge2qbt/deluge2qbt.go:163
created by main.main
        /home/kostinan/go/src/deluge2qbt/deluge2qbt.go:364 +0x113f

goroutine 1159 [runnable]:
main.logic(0x133523c0, 0x28, 0x3, 0x0, 0x5aa1519c, 0x0, 0x0, 0x0, 0x0,
        /home/kostinan/go/src/deluge2qbt/deluge2qbt.go:163
created by main.main
        /home/kostinan/go/src/deluge2qbt/deluge2qbt.go:364 +0x113f

goroutine 1160 [semacquire]:
sync.runtime_Semacquire(0x13150f08)
        /usr/lib/go/src/runtime/sema.go:56 +0x2e
sync.(*WaitGroup).Wait(0x13150f00)
        /usr/lib/go/src/sync/waitgroup.go:130 +0x7d
main.main.func1(0x13150f00, 0x124380c0, 0x12438100)
        /home/kostinan/go/src/deluge2qbt/deluge2qbt.go:368 +0x21
created by main.main
        /home/kostinan/go/src/deluge2qbt/deluge2qbt.go:367 +0x15d8

Sample of the end of the routine.

rumanzo

  • Member
  • **
  • Posts: 55
  • Karma: +5/-0
    • View Profile
Hello,

Thank you for trying to help! I tried the updated version, and it still only copied a few torrents.


Code: [Select]
goroutine 1158 [runnable]:
main.logic(0x126aea20, 0x28, 0x5, 0x0, 0x5aa151a0, 0x0, 0x0, 0x0, 0x0,
        /home/kostinan/go/src/deluge2qbt/deluge2qbt.go:163
created by main.main
        /home/kostinan/go/src/deluge2qbt/deluge2qbt.go:364 +0x113f

goroutine 1159 [runnable]:
main.logic(0x133523c0, 0x28, 0x3, 0x0, 0x5aa1519c, 0x0, 0x0, 0x0, 0x0,
        /home/kostinan/go/src/deluge2qbt/deluge2qbt.go:163
created by main.main
        /home/kostinan/go/src/deluge2qbt/deluge2qbt.go:364 +0x113f

goroutine 1160 [semacquire]:
sync.runtime_Semacquire(0x13150f08)
        /usr/lib/go/src/runtime/sema.go:56 +0x2e
sync.(*WaitGroup).Wait(0x13150f00)
        /usr/lib/go/src/sync/waitgroup.go:130 +0x7d
main.main.func1(0x13150f00, 0x124380c0, 0x12438100)
        /home/kostinan/go/src/deluge2qbt/deluge2qbt.go:368 +0x21
created by main.main
        /home/kostinan/go/src/deluge2qbt/deluge2qbt.go:367 +0x15d8

Sample of the end of the routine.
With aaaa1234 we fixed this in version 1.1

jeremiasb

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
It worked nicely!

Thank you very much!

rumanzo

  • Member
  • **
  • Posts: 55
  • Karma: +5/-0
    • View Profile
Are there any plans for a Windows Phone release? I have a friend who is interested in buying the game when it comes out, but the only system he has that hed want to play it on is Windows Phone 8.
???

MountainInside

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Thanks, worked great.  8)

I migrated 4000+ torrents from uTorrent (Mac) to QBittorrent (Mac), I just had to use a windows VM to convert the profile folder.

rumanzo

  • Member
  • **
  • Posts: 55
  • Karma: +5/-0
    • View Profile
Thanks, worked great.  8)

I migrated 4000+ torrents from uTorrent (Mac) to QBittorrent (Mac), I just had to use a windows VM to convert the profile folder.
Hello! You could ask :-)
Simple modification and compilation on macos, and you can migrate.
I did not know that there was a utorrent on mac too and did not count on this target audience. I will have to deal with the issue. Only with debugging it will be more difficult - I do not have a mac.