Re: Can't start 4.6

From: Aditya Toshniwal <aditya(dot)toshniwal(at)enterprisedb(dot)com>
To: Durumdara <durumdara(at)gmail(dot)com>
Cc: Khushboo Vashi <khushboo(dot)vashi(at)enterprisedb(dot)com>, pgAdmin Support <pgadmin-support(at)postgresql(dot)org>
Subject: Re: Can't start 4.6
Date: 2019-05-14 05:04:44
Message-ID: CAM9w-_=UuBJBwFfCYXDHV9MRnhh8SLga7TsFG7DSth1TJmkYUQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

Hi,

On Mon, May 13, 2019 at 7:17 PM Durumdara <durumdara(at)gmail(dot)com> wrote:

> Hello!
>
> Aditya Toshniwal <aditya(dot)toshniwal(at)enterprisedb(dot)com> ezt írta (időpont:
> 2019. máj. 13., H, 8:55):
>
>> Hi,
>>
>> On Mon, May 13, 2019 at 12:21 PM Durumdara <durumdara(at)gmail(dot)com> wrote:
>>
>>> Hello!
>>>
>>> I tried to find any files with "pgadm*.log" in all drives.
>>>
>> The files start with a "." dot. Try search again with ".pgAdmin*"
>>
>>>
>>>
> Firstly the new version didn't like "t:\" path.
>
> Traceback (most recent call last):
> File "D:/Programok/pgAdmin 4/v4/web/pgAdmin4.py", line 97, in <module>
> app = create_app()
> File "D:\Programok\pgAdmin 4\v4\web\pgadmin\__init__.py", line 241, in
> create_app
> create_app_data_directory(config)
> File "D:\Programok\pgAdmin 4\v4\web\pgadmin\setup\data_directory.py",
> line 24, in create_app_data_directory
> os.chmod(os.path.dirname(config.SQLITE_PATH), 0o700)
> OSError: [WinError 87] A paraméter nem megfelelő: 't:\\'
>
> ----
>
> Then I replaced with "/", but it is also problematic.
>
> SQLITE_PATH = 't:/pgadmin4.db'
>
> File "D:\Programok\pgAdmin 4\v4\web\pgadmin\setup\data_directory.py",
> line 24, in create_app_data_directory
> os.chmod(os.path.dirname(config.SQLITE_PATH), 0o700)
> OSError: [WinError 87] A paraméter nem megfelelő: 't:/'
>
> -----
>
> Traceback (most recent call last):
> File "D:/Programok/pgAdmin 4/v4/web/pgAdmin4.py", line 97, in <module>
> app = create_app()
> File "D:\Programok\pgAdmin 4\v4\web\pgadmin\__init__.py", line 241, in
> create_app
> create_app_data_directory(config)
> File "D:\Programok\pgAdmin 4\v4\web\pgadmin\setup\data_directory.py",
> line 24, in create_app_data_directory
> os.chmod(os.path.dirname(config.SQLITE_PATH), 0o700)
> OSError: [WinError 87] A paraméter nem megfelelő: 't:\\'
>
> -----
>
> The config local is:
>
> import logging
>
> CONSOLE_LOG_LEVEL = logging.DEBUG
> FILE_LOG_LEVEL = logging.DEBUG
>
> # Log format.
> CONSOLE_LOG_FORMAT = '%(asctime)s: %(levelname)s\t%(name)s:\t%(message)s'
> FILE_LOG_FORMAT = '%(asctime)s: %(levelname)s\t%(name)s:\t%(message)s'
>
> # Log file name
> #LOG_FILE = 't:/pgadmin4.log'
> LOG_FILE = 'd:/temp/pgadmin4.log'
>
> *SQLITE_PATH = 't:\\pgadmin4.db'*
>

> ----
>
> How can I define the path to work as needed?
>
> All versions before 4.6 work with these format. What I can do?
>
Try creating a directory under "t:" and set sqlite path to that directory.
I suspect it is failing when it is trying to give permissions.

>
> Thanks!
>
> dd
>

--
Thanks and Regards,
Aditya Toshniwal
Software Engineer | EnterpriseDB India | Pune
"Don't Complain about Heat, Plant a TREE"

In response to

Responses

Browse pgadmin-support by date

  From Date Subject
Next Message Aditya Toshniwal 2019-05-14 05:09:34 Re: backing up Query Editor files
Previous Message Michael Shapiro 2019-05-13 14:47:58 Re: default role privileges