It sounds like you still need the scheduler application and still the requirement stands that you need to use a remote Postgres server if the application is deployed to a SOAR App Host.
It is this database where the schedules you define are stored. If it was possible to write to a database inside the pod/container then the database would be deleted and recreated on each application restart, losing your schedules. The pod can be restarted often which is why the remote database is a requirement.
Original Message:
Sent: Fri June 05, 2026 09:37 AM
From: Radomír Franěk
Subject: app-fn_scheduler database configuration
Srry my usecase
Playbook:
function REST API Call create Incident (SOAR) in HelpDesk system -> Script postprocess write to Notes (SOAR) detail about created INC in Helpdesk.
My idea was Scheduler call run to playbook for get information from Helpdesk and write to Notes (SOAR)
I need call to every hour: when changed detail (priority,desc and status) in Inc (Helpdesk) then write information to Notes (SOAR)
------------------------------
Radomír Franěk
------------------------------
Original Message:
Sent: Fri June 05, 2026 09:28 AM
From: BEN WILLIAMS
Subject: app-fn_scheduler database configuration
Hi Radomír,
I don't understand. The REST API application doesn't use a database. Can you explain the problem?
------------------------------
BEN WILLIAMS
------------------------------
Original Message:
Sent: Fri June 05, 2026 07:56 AM
From: Radomír Franěk
Subject: app-fn_scheduler database configuration
H Ben,
thanks for your answer.
Is diferrent solution for call from my playbook to other system (Call REST API)? I cant use db, now
------------------------------
Radomír Franěk
------------------------------
Original Message:
Sent: Thu June 04, 2026 09:00 AM
From: BEN WILLIAMS
Subject: app-fn_scheduler database configuration
Hi Radomír,
Are you using a SOAR App Host? If you are, then the message is still the same, you must use db_url.
Remember that containers are ephemeral meaning that if the container or in this case the pods is restarted the SQLite database will be removed losing the data. Using db_url is the only solution for an App Host. If the pod is restarted it will simply reconnect to the remote Postgres server on startup with no data loss.
------------------------------
BEN WILLIAMS
------------------------------
Original Message:
Sent: Thu June 04, 2026 06:04 AM
From: Radomír Franěk
Subject: app-fn_scheduler database configuration
Hi,
Do you have solution for problem with create:
datastore_dir
I have tried some solution but I have still problem:
The last test failed
Error: unable to open database file
------------------------------
Radomír Franěk
------------------------------
Original Message:
Sent: Thu May 08, 2025 03:44 AM
From: Mohamad islam Hamadieh
Subject: app-fn_scheduler database configuration
Hi Mark ,
I have tried both creating in /tmp (from apphost ssh) and /etc/rescircuits/ (from app config GUI)
I tried inputting both directories and files in datastore_dir = with no luck.
also I have done chmod 777 on both the files and directories
some examples I used :
datastore_dir =/tmp/test.sqlite(where test.sqlite is a directory)
datastore_dir =/tmp/file.sqlite(where file.sqlite is a file)
datastore_dir = /etc/rescircuits/test.sqlite
datastore_dir = /etc/rescircuits/test
datastore_dir = /etc/rescircuits/test/test.sqlite
it always returns the same error :
return self.loaded_dbapi.connect(*cargs, **cparams) sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) unable to open database file (Background on this error at: https://sqlalche.me/e/20/e3q8)
also tried DEBUG log level its returning the same error
------------------------------
Mohamad islam Hamadieh
I post SOAR content and tips on linkedIn , follow me :)
https://linkedin.com/in/mohamadislam
------------------------------
Original Message:
Sent: Mon May 05, 2025 07:47 AM
From: Mark Scherfling
Subject: app-fn_scheduler database configuration
Hi Mohamad,
Can yo share what your app.config file looks like? It should contain the setting `datastore_dir` to reference the directory which the sqlite file will reside, such as /tmp.
------------------------------
Mark Scherfling
------------------------------
Original Message:
Sent: Mon May 05, 2025 06:37 AM
From: Mohamad islam Hamadieh
Subject: app-fn_scheduler database configuration
Hi all ,
In my scenario , I don't care if the schedules got deleted once a restart is performed.
Still Im not able to get an app host version to work with sqlite , I have tried creating the file from the GUI and referencing it in the app with no luck.
If anyone have that working, I would appreciate the help, thanks.
------------------------------
Mohamad islam Hamadieh
I post SOAR content and tips on linkedIn , follow me :)
https://linkedin.com/in/mohamadislam