qbittorrent / qBittorrent

qBittorrent BitTorrent client
https://www.qbittorrent.org
Other
28.16k stars 3.97k forks source link

Start of qbittorrent-nox fails due to SIGABRT in /usr/bin/qbittorrent-nox : BitTorrent::Session::initResumeFolder()+0x1c4 [0x55bf3e1b9a84] #6676

Closed krichter722 closed 6 years ago

krichter722 commented 7 years ago

Please provide the following information

qBittorrent version and Operating System:

3.3.7-0ppa1~yakkety on Ubuntu 16.10

If on linux, libtorrent and Qt version:

1.0.11+git20172002.ecd20f15cb-1ppa1~yakkety1

What is the problem:

sudo -u qbtuser /usr/bin/qbittorrent-nox --webui-port=8086 fails due to

> sudo -u qbtuser /usr/bin/qbittorrent-nox --webui-port=8086

*** Legal Notice ***
qBittorrent is a file sharing program. When you run a torrent, its data will be made available to others by means of upload. Any content you share is your sole responsibility.

No further notices will be issued.

Press 'y' key to accept and continue...
y
terminate called after throwing an instance of 'std::runtime_error'
  what():  Cannot create torrent resume folder.

*************************************************************
Catching signal: SIGABRT
Please file a bug report at http://bug.qbittorrent.org and provide the following information:

qBittorrent version: v3.3.7
stack trace:
  /lib/x86_64-linux-gnu/libc.so.6 : gsignal()+0x9f  [0x7f88f37aa7ef]
  /lib/x86_64-linux-gnu/libc.so.6 : abort()+0x16a  [0x7f88f37ac3ea]
  /usr/lib/x86_64-linux-gnu/libstdc++.so.6 : __gnu_cxx::__verbose_terminate_handler()+0x16d  [0x7f88f40ed58d]
  /usr/lib/x86_64-linux-gnu/libstdc++.so.6 : ()+0x8f336  [0x7f88f40eb336]
  /usr/lib/x86_64-linux-gnu/libstdc++.so.6 : ()+0x8f381  [0x7f88f40eb381]
  /usr/lib/x86_64-linux-gnu/libstdc++.so.6 : ()+0x8f599  [0x7f88f40eb599]
  /usr/bin/qbittorrent-nox : BitTorrent::Session::initResumeFolder()+0x1c4  [0x55bf3e1b9a84]
  /usr/bin/qbittorrent-nox : BitTorrent::Session::Session(QObject*)+0x214  [0x55bf3e1be234]
  /usr/bin/qbittorrent-nox : BitTorrent::Session::initInstance()+0x37  [0x55bf3e1bf387]
  /usr/bin/qbittorrent-nox : Application::exec(QStringList const&)+0x3a  [0x55bf3e155dea]
  /usr/bin/qbittorrent-nox : main()+0x343  [0x55bf3e14d773]
  /lib/x86_64-linux-gnu/libc.so.6 : __libc_start_main()+0xf1  [0x7f88f37953f1]
  /usr/bin/qbittorrent-nox : _start()+0x2a  [0x55bf3e150aba]
Abgebrochen (Speicherabzug geschrieben)

The qbtuser has been created following the setup guide at https://github.com/qbittorrent/qBittorrent/wiki/Setting-up-qBittorrent-on-Ubuntu-server-as-daemon-with-Web-interface-(15.04-and-newer) with --system and home /var/lib/qbittorrent. After qbittorrent and qbittorrent-nox have been purged and reinstalled and the home of qbtuser has been emptied.

What is the expected behavior:

qbittorrent-nox should start or provide useful feedback why is doesn't.

Steps to reproduce:

Extra info(if any):

fbriere commented 7 years ago

You might need to invoke sudo with --set-home, depending on your configuration. (Basically, if sudo -u qbtuser sh -c 'echo $HOME' does not display /var/lib/qbittorrent in your case.)

ngosang commented 6 years ago

We are closing all issues related to old qBittorrent versions (qBittorrent < 4.1.0). Please, update to last release and, if the bug/error/crash is still present, open another issue. Thank you.