Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-20880

Permission denied error when running qt creator 4.6.2 or 4.7.0 on Linux

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • Qt Creator 4.6.2, Qt Creator 4.7.0, Qt Creator 4.8.2
    • All Other Issues
    • None
    • Ubuntu 14.04 32-bit, Arch Linux 64-bit
    • Linux/X11

    Description

      I am on a 14.04 32-bit system.  At startup there are several errors regarding permission denied when writing .xml files:

      "Cannot overwrite file /home/ravelab/.config/QtProject/qtcreator/qtversion.xml" (in the event I had run a prior Qt version and it had left some files around) or
      "Cannot create file ..." (in the event I had cleaned out the .config directory).

      the list of files impacted are:

      • qtversion.xml
      • devices.xml
      • profiles.xml
      • toolchains.xml
      • debuggers.xml
      • cmaketools.xml
      • qnxconfigurations.xml

      I have tried completely wiping the directory: "rm -rf ~/.config/QtProject".  I have inspected the permissions and they are all okay.

      This is not a problem when compiling Qt Creator 4.2.2 against Qt 5.6.1 on the same system using the same procedure.  This is not a problem using the same exact procedure for compiling Qt 5.11.1 and Qt Creator 4.6.2/4.7.0 on similarly configured a 14.04 64-bit system.  I have not tested versions in between Qt Creator 4.2.2 and 4.6.2, nor have I tried versions other than Qt 5.11.1 or 5.6.1.  Unfortunately 4.6.2/4.7.0 are too new for using 5.6.1, and vice versa 4.2.2 does not compile using qmake from Qt 5.11.1.

      Here's what's left behind after clearing out the QtProject dir, running qtcreator, "ok" through all the errors, then exiting qtcreator, clearly showing that files can be created in this directory:

      ravelab@WorkVm:/opt/IMS/qt_creator/bin$ ls -la ~/.config/QtProject/qtcreator/
      total 56
      drwxrwxr-x 6 ravelab ravelab 4096 Jul 27 15:53 .
      drwxrwxr-x 3 ravelab ravelab 4096 Jul 27 15:53 ..
      ---------- 1 ravelab ravelab 0 Jul 27 15:53 cmaketools.xml.QWXHXE
      ---------- 1 ravelab ravelab 0 Jul 27 15:53 cmaketools.xml.thKldM
      ---------- 1 ravelab ravelab 0 Jul 27 15:53 cmaketools.xml.wzsJpw
      ---------- 1 ravelab ravelab 0 Jul 27 15:53 debuggers.xml.INdfqq
      ---------- 1 ravelab ravelab 0 Jul 27 15:53 debuggers.xml.VmJJHN
      ---------- 1 ravelab ravelab 0 Jul 27 15:53 debuggers.xml.yqNVFS
      ---------- 1 ravelab ravelab 0 Jul 27 15:53 devices.xml.cbDehu
      ---------- 1 ravelab ravelab 0 Jul 27 15:53 devices.xml.qeVznb
      ---------- 1 ravelab ravelab 0 Jul 27 15:53 devices.xml.xWWbha
      drwxrwxr-x 2 ravelab ravelab 4096 Jul 27 15:52 generic-highlighter
      -rw-r--r-- 1 ravelab ravelab 32768 Jul 27 15:53 helpcollection.qhc
      drwxrwxr-x 2 ravelab ravelab 4096 Jul 27 15:52 macros
      drwxrwxr-x 2 ravelab ravelab 4096 Jul 27 15:53 mimetypes
      ---------- 1 ravelab ravelab 0 Jul 27 15:53 profiles.xml.EVdelq
      ---------- 1 ravelab ravelab 0 Jul 27 15:53 profiles.xml.mTsqpE
      ---------- 1 ravelab ravelab 0 Jul 27 15:53 profiles.xml.UXdFdO
      drwxrwxr-x 2 ravelab ravelab 4096 Jul 27 15:53 qnx
      ---------- 1 ravelab ravelab 0 Jul 27 15:53 qtversion.xml.twPMur
      ---------- 1 ravelab ravelab 0 Jul 27 15:52 qtversion.xml.WJNSlW
      -rw-rw-r-- 1 ravelab ravelab 0 Jul 27 15:53 ssh-hostkeys
      ---------- 1 ravelab ravelab 0 Jul 27 15:53 toolchains.xml.iBQtbS
      ---------- 1 ravelab ravelab 0 Jul 27 15:53 toolchains.xml.PStUET
      ---------- 1 ravelab ravelab 0 Jul 27 15:53 toolchains.xml.rPzzek
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            con Eike Ziller
            david.diepenbrock David Diepenbrock
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes