RE: Can't add a server pgadmin4-1.6

From: "Lazaro Garcia" <lazaro3487(at)gmail(dot)com>
To: "'Dave Page'" <dpage(at)pgadmin(dot)org>, "'Murtuza Zabuawala'" <murtuza(dot)zabuawala(at)enterprisedb(dot)com>
Cc: "'Melvin Davidson'" <melvin6925(at)yahoo(dot)com>, "'PgAdmin Support'" <pgadmin-support(at)postgresql(dot)org>
Subject: RE: Can't add a server pgadmin4-1.6
Date: 2017-07-14 14:43:14
Message-ID: 003701d2fcaf$938e0440$baaa0cc0$@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

I need to install a pgadmin central server for managing some databases. Who is the best approach, from source behind a http server or using the python Wheel?

The documentation for installing pgadmin with apache server does not have anything related with nodejs and yarn. The source tarball has all dependencies or is really necessary install nodejs and yarn??

Regards.

De: Dave Page [mailto:dpage(at)pgadmin(dot)org]
Enviado el: viernes, 14 de julio de 2017 10:07 a. m.
Para: Murtuza Zabuawala
CC: Lazaro Garcia; Melvin Davidson; PgAdmin Support
Asunto: Re: Can't add a server pgadmin4-1.6

On 14 Jul 2017, at 14:48, Murtuza Zabuawala <murtuza(dot)zabuawala(at)enterprisedb(dot)com <mailto:murtuza(dot)zabuawala(at)enterprisedb(dot)com> > wrote:

Hi,

We have changed the way we bundle & server the javascript files in pgAdmin4.

It is advisable that as end user you should use python wheel and not the actual source code,

Download: https://www.postgresql.org/ftp/pgadmin/pgadmin4/v1.6/pip/

If you still want to use source then you need to install nodejs <https://nodejs.org/en/> , then yarn <https://yarnpkg.com/en/> package manager.

then by going in to ../pgadmin4/web directory execute following commands,

1) yarn install
2) yarn run bundler

You can now run python pgadmin4.py

That is already done for the source tarball. I did test it before we built 1.6.

--

Regards,

Murtuza Zabuawala
EnterpriseDB: <http://www.enterprisedb.com/> http://www.enterprisedb.com
The Enterprise PostgreSQL Company

On Fri, Jul 14, 2017 at 7:05 PM, Lazaro Garcia <lazaro3487(at)gmail(dot)com <mailto:lazaro3487(at)gmail(dot)com> > wrote:

Thanks for responses, these are the steps I followed, the same steps for other versions works well and are in the documentation: https://www.pgadmin.org/docs/pgadmin4/dev/server_deployment.html

1. Download the source.

2. Install the requirements:

pip install -r /var/www/vhosts/pgadmin4/requirements.txt

3. Create config_local.py

touch /var/www/vhosts/pgadmin4/web/config_local.py

4. Install pgadmin4

python /var/www/vhosts/pgadmin4/web/setup.py

5. Configure apache server with new site(pgadmin4)

Open pgadmin4 in the browser, but after login I cannot add any server and the browser console shows errors because some files are missing.

Regards.

De: Murtuza Zabuawala [mailto:murtuza(dot)zabuawala(at)enterprisedb(dot)com <mailto:murtuza(dot)zabuawala(at)enterprisedb(dot)com> ]
Enviado el: jueves, 13 de julio de 2017 11:39 p. m.
Para: Lazaro Garcia
CC: Melvin Davidson; PgAdmin Support
Asunto: Re: Can't add a server pgadmin4-1.6

Hello,

Could you please let us know the exact steps you followed?

--

Regards,

Murtuza Zabuawala
EnterpriseDB: <http://www.enterprisedb.com/> http://www.enterprisedb.com
The Enterprise PostgreSQL Company

On Fri, Jul 14, 2017 at 1:51 AM, Lazaro Garcia <lazaro3487(at)gmail(dot)com <mailto:lazaro3487(at)gmail(dot)com> > wrote:

Yes, but the button do nothing. Could the downloaded package be incomplete?

Download link: https://www.postgresql.org/ftp/pgadmin/pgadmin4/v1.6/source/

The browser console register this error:

Error: Module name "pgadmin.node.server" has not been loaded yet for context: _ http://requirejs.org/docs/errors.html#notloaded

require.min.js (línea 8, col 252)

POST http://dev.pamint.co.cu/misc/ping

404 Not Found

16ms

jquery-....min.js (línea 4)

"NetworkError: 404 Not Found - http://dev.pamint.co.cu/misc/ping"

ping

POST http://dev.pamint.co.cu/settings/store

404 Not Found

0ms

jquery-....min.js (línea 4)

"NetworkError: 404 Not Found - http://dev.pamint.co.cu/settings/store"

Regards.

De: Melvin Davidson [mailto:melvin6925(at)yahoo(dot)com <mailto:melvin6925(at)yahoo(dot)com> ]
Enviado el: jueves, 13 de julio de 2017 03:53 p. m.
Para: Lazaro Garcia
CC: PgAdmin Support
Asunto: Re: Can't add a server pgadmin4-1.6

>can´t see the way for adding a server.

Hmm, on bottom right of the image you sent, there is a big icon

that says "Add New Server". Have you tried clicking on that?

Melvin Davidson 🎸
Cell 720-320-0155
I reserve the right to fantasize. Whether or not you
wish to share my fantasy is entirely up to you. <http://us.i1.yimg.com/us.yimg.com/i/mesg/tsmileys2/01.gif>
<http://www.youtube.com/unusedhero/videos> www.youtube.com/unusedhero/videos
Folk Alley - All Folk - 24 Hours a day
<http://www.folkalley.com> www.folkalley.com

_____

On Thursday, July 13, 2017, 3:12:24 PM EDT, Lazaro Garcia < <mailto:lazaro3487(at)gmail(dot)com> lazaro3487(at)gmail(dot)com> wrote:

I have installed pgadmin4 1.6 from source over apache in an Ubuntu Server. But a can´t see the way for adding a server. Is this a bug??

Regards.

In response to

Responses

Browse pgadmin-support by date

  From Date Subject
Next Message Dave Page 2017-07-14 16:31:23 Re: Can't add a server pgadmin4-1.6
Previous Message Murtuza Zabuawala 2017-07-14 14:15:43 Re: Can't add a server pgadmin4-1.6