Bug report #18231

Updated by Jürgen Fischer about 6 years ago

DB Manager cannot access PostgreSQl resources if it's configured with Converted Config Seg option.
When trying to expand schemas it returns error

Error message:
> Erro Python: Um erro ocorreu enquanto executava o código Python: Consulte o registro de mensagens (Erro Python) para mais detalhes.

Python error:
<pre>
&gt; Um erro ocorreu enquanto executava o código Python:


&gt;
&gt;
PermissionError: [WinError 5] Access is denied: 'C:/Users/arjesus/AppData/Local/Temp/tmp_basic_{147fc7e0-e22a-4797-b33f-8b054b7af54b}.pem'
&gt; Traceback (most recent call last):
&gt; File "C:/PROGRA~1/QGIS3~1.0/apps/qgis/./python/plugins\db_manager\db_model.py", line 441, in rowCount
&gt; self._refreshIndex(parent, True)
&gt; File "C:/PROGRA~1/QGIS3~1.0/apps/qgis/./python/plugins\db_manager\db_model.py", line 490, in _refreshIndex
&gt; if item.populate():
&gt; File "C:/PROGRA~1/QGIS3~1.0/apps/qgis/./python/plugins\db_manager\db_model.py", line 167, in populate
&gt; if not connection.connect():
&gt; File "C:/PROGRA~1/QGIS3~1.0/apps/qgis/./python/plugins\db_manager\db_plugins\postgis\plugin.py", line 103, in connect
&gt; return self.connectToUri(uri)
&gt; File "C:/PROGRA~1/QGIS3~1.0/apps/qgis/./python/plugins\db_manager\db_plugins\plugin.py", line 109, in connectToUri
&gt; self.db = self.databasesFactory(self, uri)
&gt; File "C:/PROGRA~1/QGIS3~1.0/apps/qgis/./python/plugins\db_manager\db_plugins\postgis\plugin.py", line 70, in databasesFactory
&gt; return PGDatabase(connection, uri)
&gt; File "C:/PROGRA~1/QGIS3~1.0/apps/qgis/./python/plugins\db_manager\db_plugins\postgis\plugin.py", line 111, in __init__
&gt; Database.__init__(self, connection, uri)
&gt; File "C:/PROGRA~1/QGIS3~1.0/apps/qgis/./python/plugins\db_manager\db_plugins\plugin.py", line 218, in __init__
&gt; self.connector = self.connectorsFactory(uri)
&gt; File "C:/PROGRA~1/QGIS3~1.0/apps/qgis/./python/plugins\db_manager\db_plugins\postgis\plugin.py", line 114, in connectorsFactory
&gt; return PostGisDBConnector(uri)
&gt; File "C:/PROGRA~1/QGIS3~1.0/apps/qgis/./python/plugins\db_manager\db_plugins\postgis\connector.py", line 128, in __init__
&gt; os.remove(sslCAFile)
&gt; PermissionError: [WinError 5] Access is denied: 'C:/Users/arjesus/AppData/Local/Temp/tmp_basic_{147fc7e0-e22a-4797-b33f-8b054b7af54b}.pem'


&gt;
&gt;
&gt;
Versão do Python: 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 08:06:12) [MSC v.1900 64 bit (AMD64)]
&gt; Versão do QGIS: 3.0.0-Girona Girona, 001c80b0c3


&gt;
&gt;
Caminho do Python:
&gt; C:/PROGRA~1/QGIS3~1.0/apps/qgis/./python
&gt; C:/Users/arjesus/AppData/Roaming/QGIS/QGIS3\profiles\default/python
&gt; C:/Users/arjesus/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins
&gt; C:/PROGRA~1/QGIS3~1.0/apps/qgis/./python/plugins
&gt; C:\Program Files\QGIS 3.0\bin\python36.zip
&gt; C:\PROGRA~1\QGIS3~1.0\apps\Python36\DLLs
&gt; C:\PROGRA~1\QGIS3~1.0\apps\Python36\lib
&gt; C:\Program Files\QGIS 3.0\bin
&gt; C:\PROGRA~1\QGIS3~1.0\apps\Python36
&gt; C:\PROGRA~1\QGIS3~1.0\apps\Python36\lib\site-packages
&gt; C:/Users/arjesus/AppData/Roaming/QGIS/QGIS3\profiles\default/python



----------

&gt;
Access is denied: 'C:/Users/arjesus/AppData/Local/Temp/tmp_basic_{147fc7e0-e22a-4797-b33f-8b054b7af54b}.pem'
</pre>



File permission is ok for my user, i don't know why it returns denied access.

Using default basic authentication works.

Back