Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. "Cannot create file", "Cannot save session" - unknown error, macOS
QtWS25 Last Chance

"Cannot create file", "Cannot save session" - unknown error, macOS

Scheduled Pinned Locked Moved Solved Installation and Deployment
4 Posts 4 Posters 2.1k 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.
  • W Offline
    W Offline
    wawo9193
    wrote on 8 Apr 2019, 15:25 last edited by wawo9193 4 Aug 2019, 15:27
    #1

    Hi,

    I'm having a hard time
    with my qt creator that I've tried googling the error message with no avail.

    error message:
    Cannot create file /Users/"username"/.config/QtProject/qtcreator/devices.xml: Unknown error

    which is weird because the functionality of the creator works fine, and I am able push the create
    project button and start making windows with the build working successfully. The error message will
    just pop up multiple times in a row all the time and sometimes the message will say the same thing but instead
    of "cannot create file", it will say "cannot save session" which makes me wonder if I need to change
    my file path config. I've already tried sudo mkdir -p /Users/"username"/... in the terminal
    I've also found the Qt creator files in finder-->go-->go to files-->"username"directory and I'm not sure what I'm looking for with all of the installed files so I haven't done anything to those.

    Thank you for any advice

    J 1 Reply Last reply 8 Apr 2019, 17:32
    0
    • W wawo9193
      8 Apr 2019, 15:25

      Hi,

      I'm having a hard time
      with my qt creator that I've tried googling the error message with no avail.

      error message:
      Cannot create file /Users/"username"/.config/QtProject/qtcreator/devices.xml: Unknown error

      which is weird because the functionality of the creator works fine, and I am able push the create
      project button and start making windows with the build working successfully. The error message will
      just pop up multiple times in a row all the time and sometimes the message will say the same thing but instead
      of "cannot create file", it will say "cannot save session" which makes me wonder if I need to change
      my file path config. I've already tried sudo mkdir -p /Users/"username"/... in the terminal
      I've also found the Qt creator files in finder-->go-->go to files-->"username"directory and I'm not sure what I'm looking for with all of the installed files so I haven't done anything to those.

      Thank you for any advice

      J Offline
      J Offline
      JonB
      wrote on 8 Apr 2019, 17:32 last edited by JonB 4 Aug 2019, 17:34
      #2

      @wawo9193
      Possibility: be careful with sudo mkdir -p /Users/"username"/..., because of sudo (you should not have used/needed to use that) you may get permissions on directories which do not allow your username read, or more likely write, access? Have a look at just how much of /Users/"username"/.config/QtProject/qtcreator/devices.xml path exists, and what permissions you have on final file/directory?

      1 Reply Last reply
      2
      • B Offline
        B Offline
        bgourlay
        wrote on 11 Mar 2020, 01:47 last edited by
        #3

        I know this is an older post but I just ran into the same issue and was able to solve it. At least in my case, the problem was that I did not have permissions for the /Users/"username"/.config folder. In terminal I just used:

        sudo chown -R <username> .config

        And then when prompted, enter my system password.

        Here's the stack exchange post that gave me the tip:
        https://apple.stackexchange.com/questions/320682/ownership-of-the-config-folder-in-home-directory

        Hope this helps someone in the future!

        J 1 Reply Last reply 28 Oct 2021, 08:16
        3
        • B bgourlay
          11 Mar 2020, 01:47

          I know this is an older post but I just ran into the same issue and was able to solve it. At least in my case, the problem was that I did not have permissions for the /Users/"username"/.config folder. In terminal I just used:

          sudo chown -R <username> .config

          And then when prompted, enter my system password.

          Here's the stack exchange post that gave me the tip:
          https://apple.stackexchange.com/questions/320682/ownership-of-the-config-folder-in-home-directory

          Hope this helps someone in the future!

          J Offline
          J Offline
          Jagudo
          wrote on 28 Oct 2021, 08:16 last edited by
          #4

          @bgourlay In my case, windows, the .config folder was set in read only mode.
          Just changed to read-write and the problem was gone.

          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