A
A
artbotva2020-05-30 08:48:07
SQLite
artbotva, 2020-05-30 08:48:07

Why can't a dotnet application running as a service on Ubuntu 16.04 open a SQLite database?

There is an application written in dotnet that runs as a service in Ubuntu 16.04, the settings are as follows:
5ed1f2765b97a765039332.png

The folder with the TestBot.dll file contains the SQlite database that the application accesses. For some reason, when the application starts, it does not see this database (it cannot open it), and this is only relevant when it starts as a service, during normal startup: dotnet TestBot.dllthe application works fine and sees the database.

What could be the reason for such a problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Korotenko, 2020-05-30
@artbotva

user www-data has rights to read the database?
ls -la /var/myapp

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question