Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. N950 Harmattan deployment - Error while 'Deploy Debian package via SFTP upload'
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Mobile and Embedded
21 Posts 11 Posters 12.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    simonbolek
    wrote on last edited by
    #1

    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 for first'.
    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'
    @

    cheers
    simon:)

    http://arcom-ivi.de

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • G Offline
        G Offline
        geronik
        wrote on last edited by
        #3

        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?

        1 Reply Last reply
        0
        • G Offline
          G Offline
          geronik
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          0
          • G Offline
            G Offline
            geronik
            wrote on last edited by
            #5

            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..

            1 Reply Last reply
            0
            • D Offline
              D Offline
              deion
              wrote on last edited by
              #6

              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.

              1 Reply Last reply
              0
              • S Offline
                S Offline
                simonbolek
                wrote on last edited by
                #7

                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:)

                cheers
                simon:)

                http://arcom-ivi.de

                1 Reply Last reply
                0
                • G Offline
                  G Offline
                  geronik
                  wrote on last edited by
                  #8

                  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.

                  1 Reply Last reply
                  0
                  • J Offline
                    J Offline
                    jkosonen
                    wrote on last edited by
                    #9

                    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'
                    

                    @

                    1 Reply Last reply
                    0
                    • F Offline
                      F Offline
                      feldifux
                      wrote on last edited by
                      #10

                      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?

                      Founder of Felgo SDK - http://felgo.com/qt

                      Felgo simplifies

                      • Mobile App Dev with Qt esp. iOS & Android
                      • Game Development with Qt

                      What others say

                      Felgo scored #1 in Cross-Platform App Development Tools Report - see why: https://goo.gl/rgp3rq

                      1 Reply Last reply
                      0
                      • G Offline
                        G Offline
                        geronik
                        wrote on last edited by
                        #11

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

                        1 Reply Last reply
                        0
                        • F Offline
                          F Offline
                          feldifux
                          wrote on last edited by
                          #12

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

                          Founder of Felgo SDK - http://felgo.com/qt

                          Felgo simplifies

                          • Mobile App Dev with Qt esp. iOS & Android
                          • Game Development with Qt

                          What others say

                          Felgo scored #1 in Cross-Platform App Development Tools Report - see why: https://goo.gl/rgp3rq

                          1 Reply Last reply
                          0
                          • S Offline
                            S Offline
                            srikanth_trulyit
                            wrote on last edited by
                            #13

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

                            1 Reply Last reply
                            0
                            • F Offline
                              F Offline
                              feldifux
                              wrote on last edited by
                              #14

                              No I dont have a solution yet.

                              Founder of Felgo SDK - http://felgo.com/qt

                              Felgo simplifies

                              • Mobile App Dev with Qt esp. iOS & Android
                              • Game Development with Qt

                              What others say

                              Felgo scored #1 in Cross-Platform App Development Tools Report - see why: https://goo.gl/rgp3rq

                              1 Reply Last reply
                              0
                              • T Offline
                                T Offline
                                tobias.hunger
                                wrote on last edited by
                                #15

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

                                1 Reply Last reply
                                0
                                • L Offline
                                  L Offline
                                  ludde
                                  wrote on last edited by
                                  #16

                                  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...

                                  1 Reply Last reply
                                  0
                                  • M Offline
                                    M Offline
                                    mekid
                                    wrote on last edited by
                                    #17

                                    http://www.developer.nokia.com/Community/Discussion/showthread.php?232047-How-to-deploy-to-Harmattan-N950-getting-failure.

                                    1 Reply Last reply
                                    0
                                    • M Offline
                                      M Offline
                                      mlong
                                      wrote on last edited by
                                      #18

                                      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.

                                      Software Engineer
                                      My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

                                      1 Reply Last reply
                                      0
                                      • M Offline
                                        M Offline
                                        mekid
                                        wrote on last edited by
                                        #19

                                        thanks mlong for adding this post.

                                        1 Reply Last reply
                                        0
                                        • L Offline
                                          L Offline
                                          ludde
                                          wrote on last edited by
                                          #20

                                          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?

                                          1 Reply Last reply
                                          0

                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Search
                                          • Get Qt Extensions
                                          • Unsolved