Hello!

Aditya Toshniwal <aditya.toshni...@enterprisedb.com> ezt írta (időpont:
2019. máj. 13., H, 8:55):

> Hi,
>
> On Mon, May 13, 2019 at 12:21 PM Durumdara <durumd...@gmail.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?

Thanks!

dd

Reply via email to