Page 1 of 2

[SOLVED] QtLockedFile::lock(): file is not opened in Debian-7 ARM

Posted: Mon Mar 30, 2015 10:41 am
by metrolan
Hi all!

I've just installed qbittorrent-nox in a server with an ARM processor, running Debian-7, directly from official repositories.

I ran qbittorrent-nox like a normal user, and get the message:

QtLockedFile::lock(): file is not opened

Googled about and found only a topic in this forum but is a diferent situation, since I can't run qbittorrent no one time.

Any idea?

Thanks in advance

Re: QtLockedFile::lock(): file is not opened in Debian-7 ARM

Posted: Mon Mar 30, 2015 10:43 am
by Peter
What kind of ARM CPU do you have? I will try to look for an emulator and see if I can replicate the issue.

Re: QtLockedFile::lock(): file is not opened in Debian-7 ARM

Posted: Mon Mar 30, 2015 10:55 am
by metrolan
[quote="shiki"]
What kind of ARM CPU do you have? I will try to look for an emulator and see if I can replicate the issue.
[/quote]

Thanks for your answer, tell me if you need more information:
The hardware is1.2Ghz Marvell Armada CPU ARMADA 370 ARM v7 compliant with1GB DDR3,
1 GB NAND Flash and 2 each 10/100/1000 Ethernet Ports (only one is up at this moment).
The O.S.:
manolo@mirabox-debian:~$ uname -a
Linux mirabox-debian 3.2.36 #5 Sun Oct 6 21:30:02 EDT 2013 armv7l GNU/Linux

Re: QtLockedFile::lock(): file is not opened in Debian-7 ARM

Posted: Mon Mar 30, 2015 11:25 am
by Peter
Okok, let me grab a qemu and a debian image.
Will let you know how it goes.

Re: QtLockedFile::lock(): file is not opened in Debian-7 ARM

Posted: Mon Mar 30, 2015 12:38 pm
by Peter
Well, I only get to the boot and qemu crashes, even with the latest kernel.
Could you compile qBittorrent with the "debug" switch on?

To do that:
0) mkdir ~/tmp && cd ~/tmp
1) sudo apt-get build-dep qbittorrent-nox
2) apt-get source qbittorrent-nox
3) cd qbittorrent(press tab here)
4) ./configure --prefix=/opt/qbnox --enable-debug --disable-gui
5) make
6) sudo make install
7) /opt/qbnox/bin/qbittorrent-nox

Save the output of Terminal into a text file, and attach it here.
This will tell us a bit more.

Re: QtLockedFile::lock(): file is not opened in Debian-7 ARM

Posted: Mon Mar 30, 2015 12:46 pm
by metrolan
OK, I'll do that later. I'm at job now, and maybe is bettter to compile directly, rather than conneced by putty :)

I suppose, first of all is to uninstall qbittorrent-nox, isn't it?

Re: QtLockedFile::lock(): file is not opened in Debian-7 ARM

Posted: Mon Mar 30, 2015 1:07 pm
by Peter
No, you don't have to uninstall anything.
And when you or we are done, just remove the folder under /opt/qbnox.
By issuing: "sudo rm -r /opt/qbnox"

(Or use "sudo mc", safer.)

Re: QtLockedFile::lock(): file is not opened in Debian-7 ARM

Posted: Mon Mar 30, 2015 3:34 pm
by sledgehammer_999
IIRC debian 7 uses qbt v2.9.8 which is very old and unsupported. I bet if you compiled v3.1.12 you'll be in a much better shape. Especially if you do the same with libtorrent. debian 7 has 0.15.10 and not 0.16.x(includes utp support and general bt protocol optimizations).

Re: QtLockedFile::lock(): file is not opened in Debian-7 ARM

Posted: Mon Mar 30, 2015 4:18 pm
by Peter
Guess you are right Sledgehammer, I forgot about Debian's old versions for a second.

@OP:
You can install the new version via apt-pinning.
This is a good guide: http://jaqque.sbih.org/kplug/apt-pinning.html

! You can leave out the testing thing, just do the unstable/sid part of it.

- Add the 'sid' repo lines to your /etc/sources.list
- Set the preferences file
- $ sudo apt-get update
- $ sudo apt-get install -t qbittorrent-nox

And that's it. Your system should download and install ONLY qBittorrent's latest version AND the deps from sid.

Re: QtLockedFile::lock(): file is not opened in Debian-7 ARM

Posted: Wed Apr 01, 2015 8:57 am
by metrolan
Wow!. Apt-pinning is fantastic.

Yesterday I was very busy at home, sorry for the late.

I did it, but, here you have the last lines of the installation, and running qBT. You can see the error again (two errors this time)
I'll try to compile this morning and trace the debug.
BTW, I'm running Deluge in the server, may this interfere?

----------------------------------------------------------8<-------------------------------------------------------------
Unpacking libtorrent-rasterbar7 (from .../libtorrent-rasterbar7_0.16.18-1_armhf.deb) ...
Preparing to replace qbittorrent-nox 2.9.8-1 (using .../qbittorrent-nox_3.1.11-1_armhf.deb) ...
Unpacking replacement qbittorrent-nox ...
Processing triggers for man-db ...
Setting up libc-dev-bin (2.19-17) ...
Setting up libc6-dev:armhf (2.19-17) ...
Setting up locales (2.19-17) ...
Installing new version of config file /etc/locale.alias ...
Generating locales (this might take a while)...
  de_DE.UTF-8... done
  en_US.UTF-8... done
Generation complete.
Setting up libgomp1:armhf (4.9.2-10) ...
Setting up gcc-4.7-base:armhf (4.7.4-3) ...
Setting up libboost-system1.55.0:armhf (1.55.0+dfsg-3) ...
Setting up libtorrent-rasterbar7 (0.16.18-1) ...
Setting up qbittorrent-nox (3.1.11-1) ...
Processing triggers for libc-bin ...
manolo@mirabox-debian:/etc/apt$ qbittorrent-nox
QtLockedFile::lock(): file is not opened
QtLockedFile::lock(): file is not opened
------------------------------------------------------------------->8----------------------------------------------------------

Re: QtLockedFile::lock(): file is not opened in Debian-7 ARM

Posted: Sun Apr 05, 2015 9:22 pm
by sledgehammer_999
Where is your TMP environment variable pointing at?

In a terminal :

Code: Select all

echo $TMP

Re: QtLockedFile::lock(): file is not opened in Debian-7 ARM

Posted: Tue Apr 07, 2015 5:24 pm
by metrolan
None!

Believe me:

Code: Select all

manolo@mirabox-debian:~$ echo $TMP

manolo@mirabox-debian:~$ 
WTF?

Re: QtLockedFile::lock(): file is not opened in Debian-7 ARM

Posted: Tue Apr 07, 2015 11:09 pm
by sledgehammer_999
My bad. Check for TMPDIR.
If it points somewhere check the permissions of that folder.
Otherwise check the permissions of /tmp

Re: QtLockedFile::lock(): file is not opened in Debian-7 ARM

Posted: Tue Apr 07, 2015 11:57 pm
by metrolan
LOL

TMPDIR is empty, too. And /tmp:

drwxr-xr-t  2 root root  160 Apr  8 01:17 tmp

So, I've tried sudo qbittorrent-nox and it works  :)

Is it necessary run qBT as sudo or root everytime?, or must I change permissions of /tmp?

Re: QtLockedFile::lock(): file is not opened in Debian-7 ARM

Posted: Wed Apr 08, 2015 6:38 am
by Peter
Check this out:
http://unix.stackexchange.com/questions ... -recursive

Maybe the image you use have something mixed up.
I also encountered weird things when I used images at hosting companies.