Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QtCreator Permission Denied to File

QtCreator Permission Denied to File

Scheduled Pinned Locked Moved Solved General and Desktop
qtcreatorbugpermissionsembedded linuxwindows10
8 Posts 3 Posters 5.3k Views
  • 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.
  • rafaelellinR Offline
    rafaelellinR Offline
    rafaelellin
    wrote on last edited by rafaelellin
    #1

    Hi! I have a fresh installation of Qt and im using it to program a Grayhill 3d70 touchscreen. Until now i followed Grayhill's guide, and everything went OK, except that in the 3rd of 5 step of the Deployment QtCreator pops a message saying:

    01:12:02: File transfer failed: Permission denied (C:/Users/MY_USERNAME/AppData/Local/Temp/QtCreator.WksHZu).
    
    01:12:02: Deploy step failed.
    Error while building/deploying project ghQmlDemo (kit: Qt-5.12.2-3Dxx)
    When executing step "Upload files via SFTP"
    

    I tried to change app permissions and to run it as administrator, but no luck... Any help is greatly appreciated!

    jsulmJ 1 Reply Last reply
    0
    • rafaelellinR rafaelellin

      Hi! I have a fresh installation of Qt and im using it to program a Grayhill 3d70 touchscreen. Until now i followed Grayhill's guide, and everything went OK, except that in the 3rd of 5 step of the Deployment QtCreator pops a message saying:

      01:12:02: File transfer failed: Permission denied (C:/Users/MY_USERNAME/AppData/Local/Temp/QtCreator.WksHZu).
      
      01:12:02: Deploy step failed.
      Error while building/deploying project ghQmlDemo (kit: Qt-5.12.2-3Dxx)
      When executing step "Upload files via SFTP"
      

      I tried to change app permissions and to run it as administrator, but no luck... Any help is greatly appreciated!

      jsulmJ Online
      jsulmJ Online
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @rafaelellin said in QtCreator Permission Denied to File:

      QtCreator.WksHZu

      Is it possible that this file already exists and is open?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      rafaelellinR 1 Reply Last reply
      1
      • jsulmJ jsulm

        @rafaelellin said in QtCreator Permission Denied to File:

        QtCreator.WksHZu

        Is it possible that this file already exists and is open?

        rafaelellinR Offline
        rafaelellinR Offline
        rafaelellin
        wrote on last edited by
        #3

        @jsulm I dont think so. It is a file created by Qt itself amd im not really sure about its use(i can't find it in the folder it says it is,probably it is created for a short amount of time?). The point is, that the permission thing happens and in different circumstances: when i tried to configure SSH connectivity, I found the openssh .exe files inside Windows/System32/OpenSSH I copied and pasted the exact file paths in Qt Settings, and it says the files and folders do not exist. Also, when I try to browse the System32 directory from within the Qt Settings, I can see seemingly all directories except OpenSSH(but it is clearly there, I checked many times).
        As a fix, I tried to copy the ssh .exe files on a new folder I created on my desktop, and boom, it worked fine.
        Thats the reason I suspect it has to do with application permissions. I might be wrong, but for now its my best guess and I cant solve it.

        aha_1980A 1 Reply Last reply
        1
        • rafaelellinR rafaelellin

          @jsulm I dont think so. It is a file created by Qt itself amd im not really sure about its use(i can't find it in the folder it says it is,probably it is created for a short amount of time?). The point is, that the permission thing happens and in different circumstances: when i tried to configure SSH connectivity, I found the openssh .exe files inside Windows/System32/OpenSSH I copied and pasted the exact file paths in Qt Settings, and it says the files and folders do not exist. Also, when I try to browse the System32 directory from within the Qt Settings, I can see seemingly all directories except OpenSSH(but it is clearly there, I checked many times).
          As a fix, I tried to copy the ssh .exe files on a new folder I created on my desktop, and boom, it worked fine.
          Thats the reason I suspect it has to do with application permissions. I might be wrong, but for now its my best guess and I cant solve it.

          aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi @rafaelellin,

          which Creator version is that?

          There has been some issues with deployment on Windows recently, the last I remember was https://bugreports.qt.io/browse/QTCREATORBUG-23269

          It seems your issue is related, so you might want to comment on that bugreport.

          Regards

          Qt has to stay free or it will die.

          rafaelellinR 1 Reply Last reply
          1
          • rafaelellinR Offline
            rafaelellinR Offline
            rafaelellin
            wrote on last edited by rafaelellin
            #5
            This post is deleted!
            1 Reply Last reply
            0
            • aha_1980A aha_1980

              Hi @rafaelellin,

              which Creator version is that?

              There has been some issues with deployment on Windows recently, the last I remember was https://bugreports.qt.io/browse/QTCREATORBUG-23269

              It seems your issue is related, so you might want to comment on that bugreport.

              Regards

              rafaelellinR Offline
              rafaelellinR Offline
              rafaelellin
              wrote on last edited by
              #6

              Hi @aha_1980!
              The version of the QtCreator is 4.10.2 as seen in the picture below. The bug report is about a problem a bit different than mine. It seems that their problem is that the Creator uses the same default(wrong) path every time despite told not to. My problem is that it cannot access the existing folder (I fixed this when I created a copy of the folder in my Desktop. Qt can now find the folder and use the files). I can later upload photos of the exact error messages if it helps.
              a649e0af-d508-441b-99c5-4c91dcb67a61-image.png

              aha_1980A 1 Reply Last reply
              1
              • rafaelellinR rafaelellin

                Hi @aha_1980!
                The version of the QtCreator is 4.10.2 as seen in the picture below. The bug report is about a problem a bit different than mine. It seems that their problem is that the Creator uses the same default(wrong) path every time despite told not to. My problem is that it cannot access the existing folder (I fixed this when I created a copy of the folder in my Desktop. Qt can now find the folder and use the files). I can later upload photos of the exact error messages if it helps.
                a649e0af-d508-441b-99c5-4c91dcb67a61-image.png

                aha_1980A Offline
                aha_1980A Offline
                aha_1980
                Lifetime Qt Champion
                wrote on last edited by
                #7

                Hi @rafaelellin,

                in that case you should create a new bugreport and provide the information you already gave here.

                Please post a link to the bug afterwards, so we can follow. Thanks!

                Qt has to stay free or it will die.

                rafaelellinR 1 Reply Last reply
                1
                • aha_1980A aha_1980

                  Hi @rafaelellin,

                  in that case you should create a new bugreport and provide the information you already gave here.

                  Please post a link to the bug afterwards, so we can follow. Thanks!

                  rafaelellinR Offline
                  rafaelellinR Offline
                  rafaelellin
                  wrote on last edited by
                  #8

                  @aha_1980
                  Hi again!
                  I created a bug report at https://bugreports.qt.io/browse/QTCREATORBUG-23295, lets hope that someone finds a fix. Thanks for your time!

                  1 Reply Last reply
                  2

                  • Login

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