Re: sqlite trying to access /var/tmp

2016-09-28 Thread Alberto Mardegan
On 27/09/2016 19:19, Leo Arias wrote: > Thanks Michael. That worked. Now it gets stuck somewhere and runs out of > memory, but I doubt that's the fault of the snap. It might be a totally different issue, but IIRC I also happened to see "out of memory" issues in my projects using SQLite, while in f

Re: sqlite trying to access /var/tmp

2016-09-27 Thread Leo Arias
Thanks Michael. That worked. Now it gets stuck somewhere and runs out of memory, but I doubt that's the fault of the snap. Jamie, here is the bug: https://bugs.launchpad.net/snappy/+bug/1628193 I also found this related bug from a year ago: https://bugs.launchpad.net/snappy/+bug/1504187 pura vid

Re: sqlite trying to access /var/tmp

2016-09-27 Thread Jamie Strandboge
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

Re: sqlite trying to access /var/tmp

2016-09-27 Thread Michael Hall
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

sqlite trying to access /var/tmp

2016-09-26 Thread Leo Arias
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 wit