Re: Fedora 29 startup issue

From: Fahar Abbas <fahar(dot)abbas(at)enterprisedb(dot)com>
To: Dave Page <dpage(at)pgadmin(dot)org>
Cc: Devrim GÜNDÜZ <devrim(at)gunduz(dot)org>, pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: Fedora 29 startup issue
Date: 2018-11-01 11:34:12
Message-ID: CAJFwRrP1Mcj5EtKxQ5NPcTEXj7vtwPoY0cY0x7H2bORC7LeBzA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

On Thu, Nov 1, 2018 at 4:25 PM Dave Page <dpage(at)pgadmin(dot)org> wrote:

>
>
> On Thu, Nov 1, 2018 at 10:28 AM Fahar Abbas <fahar(dot)abbas(at)enterprisedb(dot)com>
> wrote:
>
>>
>>
>> On Thu, Nov 1, 2018 at 3:23 PM Dave Page <dpage(at)pgadmin(dot)org> wrote:
>>
>>>
>>>
>>> On Thu, Nov 1, 2018 at 10:17 AM Fahar Abbas <
>>> fahar(dot)abbas(at)enterprisedb(dot)com> wrote:
>>>
>>>> I am facing issue on Centos 7.4(by default python is 2.7) while Devrim
>>>> facing issue on Fedora 29 with Python 3.7.
>>>>
>>>
>>> OK, well I need Devrim's logs to try to solve Devrim's problem. Yours
>>> may be entirely different.
>>>
>>> If you try to run pgAdmin.py from the command line, what is the output?
>>>
>> [root(at)localhost bin]# pwd
>> /usr/pgadmin4/bin
>> [root(at)localhost bin]# ./pgadmin4-web-setup.sh
>> Traceback (most recent call last):
>> File "/usr/lib/python2.7/site-packages/pgadmin4-web/setup.py", line 15,
>> in <module>
>> from pgadmin.model import db, Version, SCHEMA_VERSION as
>> CURRENT_SCHEMA_VERSION
>> File
>> "/usr/lib/python2.7/site-packages/pgadmin4-web/pgadmin/__init__.py", line
>> 33, in <module>
>> from pgadmin.utils.session import create_session_interface,
>> pga_unauthorised
>> File
>> "/usr/lib/python2.7/site-packages/pgadmin4-web/pgadmin/utils/session.py",
>> line 26, in <module>
>> import config
>> File "/usr/lib/python2.7/site-packages/pgadmin4-web/config.py", line
>> 121, in <module>
>> if builtins.SERVER_MODE is None:
>> AttributeError: 'module' object has no attribute 'SERVER_MODE'
>> Error setting up server mode. Please examine the output above.
>>
>
> Did this system have an older version installed?
>
nope it's a fresh system.

>
>
>>
>>
>>>
>>>
>>>>
>>>> On Thu, Nov 1, 2018 at 3:09 PM Dave Page <dpage(at)pgadmin(dot)org> wrote:
>>>>
>>>>>
>>>>>
>>>>> On Thu, Nov 1, 2018 at 10:08 AM Fahar Abbas <
>>>>> fahar(dot)abbas(at)enterprisedb(dot)com> wrote:
>>>>>
>>>>>> Hi Dave,
>>>>>>
>>>>>> On Thu, Nov 1, 2018 at 3:04 PM Dave Page <dpage(at)pgadmin(dot)org> wrote:
>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Thu, Nov 1, 2018 at 9:58 AM Devrim Gündüz <devrim(at)gunduz(dot)org>
>>>>>>> wrote:
>>>>>>>
>>>>>>>>
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> Fedora 29, Python 3.7. When I run:
>>>>>>>>
>>>>>>>> /usr/pgadmin4/runtime/pgAdmin4
>>>>>>>>
>>>>>>>> Getting:
>>>>>>>>
>>>>>>>> An error occurred initialising the application server:
>>>>>>>> Failed to locate pgAdmin4.py, terminating server thread.
>>>>>>>>
>>>>>>>> $ cat /etc/xdg/pgadmin/pgadmin4.conf
>>>>>>>> ApplicationPath="/usr/lib/python3.7/site-packages/pgadmin4-web/"
>>>>>>>>
>>>>>>>> PythonPath="/usr/lib/python3.7/site-packages:/usr/lib64/python3.7/site-packages"
>>>>>>>>
>>>>>>>>
>>>>>>>> What am I missing?
>>>>>>>>
>>>>>>>
>>>>>>> What does the startup log say? Look for ~/.pgAdmin4.startup.log
>>>>>>>
>>>>>> 01.11.2018 15:05:55 Checking for system tray...
>>>>>> 01.11.2018 15:05:55 Starting pgAdmin4 server...
>>>>>> 01.11.2018 15:05:55 Creating server object, port:55183,
>>>>>> key:b3ef7ca8-a755-4284-8b8d-2d82b810ef30,
>>>>>> logfile:/root/.pgAdmin4.5793612742908622588.log
>>>>>> 01.11.2018 15:05:55 Python Path:
>>>>>> /usr/lib/python2.7/site-packages:/usr/lib64/python2.7/site-packages
>>>>>> 01.11.2018 15:05:55 Python Home:
>>>>>> 01.11.2018 15:05:55 Initializing Python...
>>>>>> 01.11.2018 15:05:55 Python initialized.
>>>>>> 01.11.2018 15:05:55 Adding new additional path elements
>>>>>> 01.11.2018 15:05:55 Redirecting stderr...
>>>>>> 01.11.2018 15:05:55 stderr redirected successfully.
>>>>>> 01.11.2018 15:05:55 Initializing server...
>>>>>> 01.11.2018 15:05:55 Webapp Path:
>>>>>> /usr/lib/python2.7/site-packages/pgadmin4-web/pgAdmin4.py
>>>>>> 01.11.2018 15:05:55 Server initialized.
>>>>>> 01.11.2018 15:05:55 Starting Server Thread...
>>>>>> 01.11.2018 15:05:55 Open the application code and run it.
>>>>>> 01.11.2018 15:05:55 Set the port number, key and force SERVER_MODE off
>>>>>> 01.11.2018 15:05:55 PyRun_SimpleFile launching application server...
>>>>>> 01.11.2018 15:05:56 Application Server URL:
>>>>>> http://127.0.0.1:55183/?key=b3ef7ca8-a755-4284-8b8d-2d82b810ef30
>>>>>> 01.11.2018 15:05:56 The server should be up, we'll attempt to connect
>>>>>> and get a response. Ping the server
>>>>>> 01.11.2018 15:06:04 Failed to launch the application server, server
>>>>>> thread exiting.
>>>>>> 01.11.2018 15:06:26 Attempt to connect one more time in case of a
>>>>>> long network timeout while looping
>>>>>>
>>>>>
>>>>> The PythonPath and WebappPath don't match what Devrim says he's using.
>>>>> Is that from the same system?
>>>>>
>>>>> --
>>>>> Dave Page
>>>>> Blog: http://pgsnake.blogspot.com
>>>>> Twitter: @pgsnake
>>>>>
>>>>> EnterpriseDB UK: http://www.enterprisedb.com
>>>>> The Enterprise PostgreSQL Company
>>>>>
>>>>
>>>>
>>>> --
>>>> Fahar Abbas
>>>> QMG
>>>> EnterpriseDB Corporation
>>>> Phone Office: +92-51-835-8874
>>>> Phone Direct: +92-51-8466803
>>>> Mobile: +92-333-5409707
>>>> Skype ID: *live:fahar.abbas*
>>>> Website: www.enterprisedb.com
>>>>
>>>
>>>
>>> --
>>> Dave Page
>>> Blog: http://pgsnake.blogspot.com
>>> Twitter: @pgsnake
>>>
>>> EnterpriseDB UK: http://www.enterprisedb.com
>>> The Enterprise PostgreSQL Company
>>>
>>
>>
>> --
>> Fahar Abbas
>> QMG
>> EnterpriseDB Corporation
>> Phone Office: +92-51-835-8874
>> Phone Direct: +92-51-8466803
>> Mobile: +92-333-5409707
>> Skype ID: *live:fahar.abbas*
>> Website: www.enterprisedb.com
>>
>
>
> --
> Dave Page
> Blog: http://pgsnake.blogspot.com
> Twitter: @pgsnake
>
> EnterpriseDB UK: http://www.enterprisedb.com
> The Enterprise PostgreSQL Company
>

--
Fahar Abbas
QMG
EnterpriseDB Corporation
Phone Office: +92-51-835-8874
Phone Direct: +92-51-8466803
Mobile: +92-333-5409707
Skype ID: *live:fahar.abbas*
Website: www.enterprisedb.com

In response to

Browse pgadmin-hackers by date

  From Date Subject
Next Message Dave Page 2018-11-01 11:58:48 Re: Fedora 29 startup issue
Previous Message Dave Page 2018-11-01 11:25:15 Re: Fedora 29 startup issue