sqlite trying to access /var/tmp
Jamie Strandboge
jamie at canonical.com
Tue Sep 27 15:29:34 UTC 2016
On Tue, 2016-09-27 at 09:25 -0400, Michael Hall wrote:
> Set SQLITE_TMPDIR=/tmp and it should be happy.
>
> TMPDIR isn't explicitly set in the snap's runtime environment, which is
> why sqlite falls back to /var/tmp
>
> /tmp is mounted into your snap's runtime, and sqlite will try
> SQLITE_TMPDIR before TMPDIR, so setting that ensures that it won't
> impact anything other than sqlite.
>
Hmmm, we used to export TMPDIR but it seems that it was dropped when moving to
snap reexec. Can you file a bug so that sqlite users don't have to worry about
SQLITE_TMPDIR unless they want to?
I think the bug is simply: 'please set TMPDIR=/tmp when launching snaps'
Thanks!
>
> Michael Hall
> mhall119 at ubuntu.com
>
> On 09/26/2016 08:15 PM, Leo Arias wrote:
> >
> > Hello,
> >
> > I'm trying to snap mapbox
> > studio: https://gist.github.com/elopio/d4e84e0d921151a68445a15d8dbc6ced
> >
> > It's failing when I try to create a map because sqlite tries to write to
> > /var/tmp. According to [1], sqlite uses $TMPDIR before trying to use
> > /var/tmp, so this is weird.
> >
> > Is anybody around with more sqlite knowledge who can help me?
> >
> > pura vida.
> >
> > [1] https://www.sqlite.org/tempfiles.html
> >
> > --
> > ¡paz y baile!
> > http://www.ubuntu.com
> >
> >
--
Jamie Strandboge | http://www.canonical.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/snapcraft/attachments/20160927/1e4d0958/attachment.sig>
More information about the Snapcraft
mailing list