N950 Harmattan deployment - Error while 'Deploy Debian package via SFTP upload'



  • Hi,

    Using:
    QtCreator 2.3.0
    SDK113
    N950
    Windows

    I cannot deply the application, I get the error:

    Error while building project N950Test (target: Harmattan)
    When executing build step 'Deploy Debian package via SFTP upload'

    Any hints?

    Detailed log here:

    @
    Running build steps for project N950Test...
    Configuration unchanged, skipping qmake step.
    Starting: "C:\temp\qt\qtsdk113\madde\bin\make.exe" -w
    make: Entering directory /c/temp/Qt/workspace/N950Test' make: Nothing to be done forfirst'.
    make: Leaving directory `/c/temp/Qt/workspace/N950Test'
    The process "C:\temp\qt\qtsdk113\madde\bin\make.exe" exited normally.
    Package up to date.
    Installing package to sysroot ...
    Preparing SFTP connection...
    Starting upload...
    Successfully uploaded package file.
    Installing package to device...
    dpkg: status database area is locked by another process
    aegis-installing n950test (from '')
    Deployment failed.
    Error while building project N950Test (target: Harmattan)
    When executing build step 'Deploy Debian package via SFTP upload'
    @


  • Moderators

    You seem to have some package manager open on the phone already which is blocking the new one from accessing the package database. Please make sure all other package managers are closed when deploying debian packages to the phone.



  • Well , I have similar errors when trying to upload a debian package from QtCreator, seems to be a problem with sftp connection. Below follows the compile output:

    @11:06:04: Package created.
    11:06:04: Installing package to sysroot ...
    Package 'untitled' installed.

    11:06:04: Preparing SFTP connection...
    11:06:04: Starting upload...
    11:06:04: Failed to upload package: Failure
    11:06:04: Deploy step failed.
    Error while building project untitled (target: Harmattan)
    When executing build step 'Deploy Debian package via SFTP upload'@

    Any advices?



  • In connection to my previous post, I should say that I have already tried to setup the N950 connection using usb and also wlan connection. As regards usb I tried to setup using a key certificate and also using a Password type connection. Nothing of them seems to work.



  • A workaround on this problem of mine is to manual upload the files using sftp ex.

    @sftp -P 22 developer@192.168.2.15
    put /path/to/MyApp.deb /home/developer@

    and then install the package from N950 ( login as root):

    @dpkg -i /home/developer/MyApp.deb@

    Obviously this is very inconvenient..



  • I can deploy without problems from Qt Creator on Mac OS X to N950 most of the time. However from time to time I also get the error you mention: usually after accessing the Nokia store...The easiest fix is to just restart the phone, and then it will work ok again, but it looks like this is not the problem in your case.



  • Hi simon here again,

    While testing and deploying for the last couple of months / weeks I realized that this happens when I have an update / application manager opened on N950. That is what the message:

    @dpkg: status database area is locked by another process@

    means, my suspicion at least ;-)

    Than close update manager on N950 and I unplug and plug in USB again to N950. After that it works again. I also sometimes go to qtcreator tools and test the connection to be sure.
    So sometimes it helps reading the output messages carefully ;)

    I hope it will help you as well
    cheers
    simon:)



  • Hi Simon thanks for your help, though in my case there is no current locking.. The problem in my case is more probably related to an error on connecting to the N950 device using sftp connection..

    I think I have to setup again from outside Qtcreator. I ll post again if any progress achieved.



  • Hey, did you find answer to this, since I'm now getting the same error?
    @ 11:06:04: Package created.
    11:06:04: Installing package to sysroot ...
    Package 'untitled' installed.

    11:06:04: Preparing SFTP connection...
    11:06:04: Starting upload...
    11:06:04: Failed to upload package: Failure
    11:06:04: Deploy step failed.
    Error while building project untitled (target: Harmattan)
    When executing build step 'Deploy Debian package via SFTP upload'
    

    @



  • Hi,
    I also experienced this error. In my case the problem was related to the file size of the debian package - if it was too big (everything above 3MB caused the error!) this message appeared and also as soon as it appeared for the first time, no other qt projects could be deployed to the device until I restarted the phone!

    A notification warning about the little remaining data storage appeared on the phone after trying to install the deb package, however, I had plenty of storage left in each memory category (in particular I had more than 1GB left for applications, application data and user data categories, and the test application was only 3 MB).

    Maybe you have the same file size issue?



  • The problem disappeared after updating QtCreator to version 2.4.0 through the QtSDK Maintenance tool !



  • I am using 2.4 too but still having the issue..



  • I am also experiencing file size problem where in a notification about device memory comes up. Any one solved it?



  • No I dont have a solution yet.


  • Moderators

    Please "report a bug":http://bugreports.qt.nokia.com/ about the file size problem.



  • Having the same problem, with my N9 - no matter what I do, I simply cannot deploy the .deb file to the device using Qt Creator. (Started "another thread":http://developer.qt.nokia.com/forums/viewthread/13599/ on this, before I realised that this one was dealing with the same problem).

    Any help appreciated...




  • Moderators

    Copying the resolution in the above link as posted by "lostdev":http://www.developer.nokia.com/Community/Discussion/member.php?818895-lostdev :

    bq.
    I almost forgot to tell that I found the cause of this problem. It seems that Qt Creator use /tmp as temporary folder into which it places .deb archive before installation. However, /tmp space is very limited on Harmattan, so, if there is a large .deb file, it can not be completely copied to this folder over sftp, and that's it. The quick fix is to make a symlink with name of .deb file in /tmp pointed to the file with the same name but in different folder (e.g. /var/tmp):
    Code:
    ln -s /var/tmp/file.deb /tmp/file.deb
    and voila - Qt Creator will upload, install and run application without any issue.



  • thanks mlong for adding this post.



  • Great, it works!
    But it seems like the link is deleted when the installation is completed, so I have to create the link manually every time I want to deploy...

    Is there no other way to solve this, like increasing the size of /tmp, or making Qt Creator not use /tmp?



  • Thanks for the solution!

    Is there no way to clear /tmp? Why did it work before but no more?

    Found some more info about the problem, and it seems like it will be fixed in Qt Creator 2.5:
    "http://blog.beford.org/2012/02/07/fix-for-failed-to-upload-package-failure-on-qtcreator/":http://blog.beford.org/2012/02/07/fix-for-failed-to-upload-package-failure-on-qtcreator/


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.