Re: Cannot launch pgAdmin4

From: Dave Page <dpage(at)pgadmin(dot)org>
To: Laczkóczki Ákos <laczkoczki(dot)akos(at)gmail(dot)com>
Cc: pgAdmin Support <pgadmin-support(at)postgresql(dot)org>
Subject: Re: Cannot launch pgAdmin4
Date: 2016-10-18 08:49:56
Message-ID: CA+OCxowhGVb1V=jWQ5iVBZkv0_ifcS75uoJy3w=y0OzxtitjCg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

Hi

On Sun, Oct 16, 2016 at 12:23 PM, Laczkóczki Ákos
<laczkoczki(dot)akos(at)gmail(dot)com> wrote:
> I would like to inform you I have successfully fixed the issue.
>
> Probably the problem was that the name of my user home directory contains
> space and special characters. So, the exact path which pgAdmin uses for log
> and reach the pgadmin4.db was the following:
>
> c:\Users\Laczkóczki Ákos\AppData\Roaming\pgadmin4\
>
> I think it wasn't able to reach the pgadmin4.db file because after trying to
> launch pgadmin the size of the db file was 0.
>
> I have modified the config.py file as the following:
>
> if os.name == 'nt':
> DATA_DIR =
> os.path.realpath('c:/development/tools/PostgreSQL/pgadmin/data')
> else:
> DATA_DIR = os.path.realpath(os.path.expanduser('~/.pgadmin/'))
>
> So, I changed the DATA_DIR to a custom place which path doesn't contain any
> special thing and now I am able to launch pgAdmin and it seems it is working
> fine.

Good catch! Likely a unicode issue then I'd guess. Does it work if you use:

DATA_DIR = u'c:/Users/Laczkóczki Ákos/AppData/Roaming/pgadmin/'

?

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Browse pgadmin-support by date

  From Date Subject
Next Message Russell Mercer 2016-10-20 00:54:53 Pgadmin 4 view and sort table
Previous Message Dave Page 2016-10-18 08:32:25 Re: Problem createing table with citext