Cannot connect to a postgresql database

Murray Cumming murrayc at murrayc.com
Tue Dec 15 10:32:43 UTC 2015


On Tue, 2015-12-15 at 08:30 +0100, Alexander Larsson wrote:
> On mån, 2015-12-14 at 23:50 +0100, Murray Cumming wrote:
> > I've managed to build a Glom package with xdg-app, though I'm not
> > ready
> > to put it in a repo yet. Here is the manifest:
> > https://git.gnome.org/browse/glom/tree/glom-xdg-app-builder
> > 
> > This builds all kinds of funky dependencies, including boost,
> > postgresql and mysql.
> > 
> > There is one problem which I'll mention just in case you know
> > immediately what's happening. It looks like the postgresql client
> > API
> > is hanging when trying to connect to the postgresql server (which
> > Glom
> > starts an instance of). I think it's using a TCP connection.
> > 
> > Is inter-process TCP communication something that should work in
> > the
> > xdg-app environment?
> 
> Did you give the app network access (--share=network)?
> You may also need ipc access (--share=ipc), although its mainly for
> old
> systemV shared memory, so probably not needed.

Thanks. That fixed it. Maybe it would be worthwhile to allow
interprocess TCP connections but not remote TCP connections.

I was already using --shared=ipc, just because I copy/pasted from
another manifest. But that wasn't necessary.




-- 
Murray Cumming
murrayc at murrayc.com
www.murrayc.com






More information about the xdg-app mailing list