os_unix.c:36136: (2)

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

os_unix.c:36136: (2)

wei1.z
What is the meaning of this line?

01-11 14:40:59.733 10011  2864  2877 E SQLiteLog: (14) os_unix.c:36136: (2)
open(<db file>) -

db file cannot be found, or permission issue ?

Thanks a lot!



--
Sent from: http://sqlite.1065341.n5.nabble.com/
_______________________________________________
sqlite-users mailing list
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
Reply | Threaded
Open this post in threaded view
|

Re: os_unix.c:36136: (2)

Richard Hipp-3
On 1/11/18, wei1.z <[hidden email]> wrote:
> What is the meaning of this line?
>
> 01-11 14:40:59.733 10011  2864  2877 E SQLiteLog: (14) os_unix.c:36136: (2)
> open(<db file>) -
>
> db file cannot be found, or permission issue ?

It means that SQLite could not open a file either because that file
does not exist or because you do not have appropriate permissions to
open that file.

--
D. Richard Hipp
[hidden email]
_______________________________________________
sqlite-users mailing list
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
Reply | Threaded
Open this post in threaded view
|

Re: os_unix.c:36136: (2)

Rowan Worth-2
In reply to this post by wei1.z
On 12 January 2018 at 07:21, wei1.z <[hidden email]> wrote:

> What is the meaning of this line?
>
> 01-11 14:40:59.733 10011  2864  2877 E SQLiteLog: (14) os_unix.c:36136: (2)
> open(<db file>) -
>
> db file cannot be found, or permission issue ?
>

To decipher this in future, the first number in parens is the sqlite error
code. (14) is SQLITE_CANTOPEN. The second number in parens is the unix
errno; (2) is ENOENT. If you check the man page for the open syscall,
you'll see that ENOENT is returned if the requested file doesn't exist.

For a permission issue you would see (14) os_unix.c:36136: (13) open(<db
file>) -  errno 13 is EACCES.

-Rowan
_______________________________________________
sqlite-users mailing list
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users