sqlite trying to access /var/tmp
Michael Hall
mhall119 at ubuntu.com
Tue Sep 27 13:25:23 UTC 2016
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.
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
>
>
More information about the Snapcraft
mailing list