[GH-ISSUE #5284] SQLLite issue - NOW #3159

Closed
opened 2026-02-26 07:37:59 +03:00 by kerem · 19 comments
Owner

Originally created by @jsk01 on GitHub (Feb 6, 2026).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/5284

Issue creating a new setup with latest (v2.13.7). Upon submitting the new user there is a failure in the log related to the use of the NOW function which no longer exists in the version of sqllite used. I changed to version 2.13.6 and the new user was created.

Checklist

  • Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker image?
    • Yes
  • Are you sure you're not using someone else's docker image?
    • Yes
  • Have you searched for similar issues (both open and closed)?
    • Yes

Operating System
Docker on Synology

Originally created by @jsk01 on GitHub (Feb 6, 2026). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/5284 Issue creating a new setup with latest (v2.13.7). Upon submitting the new user there is a failure in the log related to the use of the NOW function which no longer exists in the version of sqllite used. I changed to version 2.13.6 and the new user was created. **Checklist** - Have you pulled and found the error with `jc21/nginx-proxy-manager:latest` docker image? - Yes - Are you sure you're not using someone else's docker image? - Yes - Have you searched for similar issues (both open and closed)? - Yes **Operating System** Docker on Synology
kerem 2026-02-26 07:37:59 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@syrabo commented on GitHub (Feb 7, 2026):

I'm also seeing the following in the Docker logs: SQLITE_ERROR: no such function: NOW

I can't delete a certificate or edit an entry on the web interface, let alone create one.

Version: jc21/nginx-proxy-manager:latest
2.13.7

<!-- gh-comment-id:3864338671 --> @syrabo commented on GitHub (Feb 7, 2026): I'm also seeing the following in the Docker logs: SQLITE_ERROR: no such function: NOW I can't delete a certificate or edit an entry on the web interface, let alone create one. Version: jc21/nginx-proxy-manager:latest 2.13.7
Author
Owner

@RndmJoker commented on GitHub (Feb 7, 2026):

I have the same bug. I cant create new hosts or update my ssl certificates. I alwas geht this error:

SQLITE_ERROR: no such function: NOW

Version jc21/nginx-proxy-manager:latest
2.13.7

<!-- gh-comment-id:3864983704 --> @RndmJoker commented on GitHub (Feb 7, 2026): I have the same bug. I cant create new hosts or update my ssl certificates. I alwas geht this error: SQLITE_ERROR: no such function: NOW Version jc21/nginx-proxy-manager:latest 2.13.7
Author
Owner

@redghc commented on GitHub (Feb 7, 2026):

Same error here on user register onboarding.

- ℹ  info      Creating a new user in setup mode
- ⚠  warning   insert into `user` (`avatar`, `created_on`, `email`, `is_disabled`, `modified_on`, `name`, `nickname`, `roles`) values ('//www.gravatar.com/avatar/b642b4217b34b1e8d3bd915fc65c4452?default=mm', NOW(), 'test@test.com', 0, NOW(), 'test test', 'test', '["admin"]') - SQLITE_ERROR: no such function: NOW
<!-- gh-comment-id:3865113548 --> @redghc commented on GitHub (Feb 7, 2026): Same error here on user register onboarding. ``` - ℹ info Creating a new user in setup mode - ⚠ warning insert into `user` (`avatar`, `created_on`, `email`, `is_disabled`, `modified_on`, `name`, `nickname`, `roles`) values ('//www.gravatar.com/avatar/b642b4217b34b1e8d3bd915fc65c4452?default=mm', NOW(), 'test@test.com', 0, NOW(), 'test test', 'test', '["admin"]') - SQLITE_ERROR: no such function: NOW ```
Author
Owner

@sleighton commented on GitHub (Feb 7, 2026):

sqlite3 never had a function NOW(). There's probably a UDF that got dropped or moved in the code that was there to keep the SQL statements compatible with mysql and postgres, which do have NOW().

<!-- gh-comment-id:3865190320 --> @sleighton commented on GitHub (Feb 7, 2026): sqlite3 never had a function NOW(). There's probably a UDF that got dropped or moved in the code that was there to keep the SQL statements compatible with mysql and postgres, which do have NOW().
Author
Owner

@ajoosten commented on GitHub (Feb 7, 2026):

The issue is coming from this commit: github.com/NginxProxyManager/nginx-proxy-manager@77662b4e7f

The name of the sqliteClientName is changed from sqlite3 to better-sqlite3, and now the test in backend/models/now_helper.js is failing and the result is that the Now() function is returned also for SQLite databases. I could solve this locally by changing the name back.

@jc21 can you check this? You might have overseen this consequence ...

<!-- gh-comment-id:3865710778 --> @ajoosten commented on GitHub (Feb 7, 2026): The issue is coming from this commit: https://github.com/NginxProxyManager/nginx-proxy-manager/commit/77662b4e7f15f48c5fce4e2734444cb985e3c7b7 The name of the sqliteClientName is changed from sqlite3 to better-sqlite3, and now the test in backend/models/now_helper.js is failing and the result is that the Now() function is returned also for SQLite databases. I could solve this locally by changing the name back. @jc21 can you check this? You might have overseen this consequence ...
Author
Owner

@N0tronic commented on GitHub (Feb 8, 2026):

+1

<!-- gh-comment-id:3867545351 --> @N0tronic commented on GitHub (Feb 8, 2026): +1
Author
Owner

@Shaalan15 commented on GitHub (Feb 8, 2026):

+1

<!-- gh-comment-id:3867716479 --> @Shaalan15 commented on GitHub (Feb 8, 2026): +1
Author
Owner

@mudora23 commented on GitHub (Feb 8, 2026):

Updating the config JSON file used from "client": "sqlite3" to "client": "better-sqlite3" fixes the issue. It is because isSqlite() was updated to only return true if the client name is "better-sqlite3".

<!-- gh-comment-id:3867877807 --> @mudora23 commented on GitHub (Feb 8, 2026): Updating the config JSON file used from `"client": "sqlite3"` to `"client": "better-sqlite3"` fixes the issue. It is because `isSqlite()` was updated to only return true if the client name is "better-sqlite3".
Author
Owner

@malammar commented on GitHub (Feb 9, 2026):

This feels like a regression. Unless the docs specifically mention the need for better-sqlite3.

<!-- gh-comment-id:3869818449 --> @malammar commented on GitHub (Feb 9, 2026): This feels like a regression. Unless the docs specifically mention the need for `better-sqlite3`.
Author
Owner

@robertschrs commented on GitHub (Feb 10, 2026):

Updating the config JSON file used from "client": "sqlite3" to "client": "better-sqlite3" fixes the issue. It is because isSqlite() was updated to only return true if the client name is "better-sqlite3".

Same issue on my end, "better-sqlite3" solved it. Running NPM in a docker container on a TrueNAS server.

<!-- gh-comment-id:3875167334 --> @robertschrs commented on GitHub (Feb 10, 2026): > Updating the config JSON file used from `"client": "sqlite3"` to `"client": "better-sqlite3"` fixes the issue. It is because `isSqlite()` was updated to only return true if the client name is "better-sqlite3". Same issue on my end, "better-sqlite3" solved it. Running NPM in a docker container on a TrueNAS server.
Author
Owner

@7heMech commented on GitHub (Feb 14, 2026):

Huh, it seems like I can't reproduce this issue.
Is this vaild for new installations only?

<!-- gh-comment-id:3901335963 --> @7heMech commented on GitHub (Feb 14, 2026): Huh, it seems like I can't reproduce this issue. Is this vaild for new installations only?
Author
Owner

@mudora23 commented on GitHub (Feb 14, 2026):

Huh, it seems like I can't reproduce this issue. Is this vaild for new installations only?

I remember someone reported that the issue also happens when creating additional users, which supposedly also calls NOW().

<!-- gh-comment-id:3901450622 --> @mudora23 commented on GitHub (Feb 14, 2026): > Huh, it seems like I can't reproduce this issue. Is this vaild for new installations only? I remember someone reported that the issue also happens when creating additional users, which supposedly also calls `NOW()`.
Author
Owner

@7heMech commented on GitHub (Feb 14, 2026):

Huh, it seems like I can't reproduce this issue. Is this vaild for new installations only?

I remember someone reported that the issue also happens when creating additional users, which supposedly also calls NOW().

Yes, I tried everything mentioned above and more: creating, editing and deleting on hosts, certificates (no edits here) and users on a new and existing updated instance.

<!-- gh-comment-id:3901592375 --> @7heMech commented on GitHub (Feb 14, 2026): > > Huh, it seems like I can't reproduce this issue. Is this vaild for new installations only? > > I remember someone reported that the issue also happens when creating additional users, which supposedly also calls `NOW()`. Yes, I tried everything mentioned above and more: creating, editing and deleting on hosts, certificates (no edits here) and users on a new and existing updated instance.
Author
Owner

@jsk01 commented on GitHub (Feb 14, 2026):

I had the issue on a new install. Went to previous version and got logged
in. Then updated to the latest version and had the same issue adding hosts
so I went back to the previous version. I haven't tried making the change
to the config file.

<!-- gh-comment-id:3902074329 --> @jsk01 commented on GitHub (Feb 14, 2026): I had the issue on a new install. Went to previous version and got logged in. Then updated to the latest version and had the same issue adding hosts so I went back to the previous version. I haven't tried making the change to the config file.
Author
Owner

@YTKme commented on GitHub (Feb 15, 2026):

Updating the config JSON file used from "client": "sqlite3" to "client": "better-sqlite3" fixes the issue. It is because isSqlite() was updated to only return true if the client name is "better-sqlite3".

hi @mudora23, i am encountering the same issue, but where's the config JSON file located?

<!-- gh-comment-id:3903548954 --> @YTKme commented on GitHub (Feb 15, 2026): > Updating the config JSON file used from `"client": "sqlite3"` to `"client": "better-sqlite3"` fixes the issue. It is because `isSqlite()` was updated to only return true if the client name is "better-sqlite3". hi @mudora23, i am encountering the same issue, but where's the config JSON file located?
Author
Owner

@RndmJoker commented on GitHub (Feb 16, 2026):

Huh, it seems like I can't reproduce this issue. Is this vaild for new installations only?

No i dont think so. My installation ist a few months old and it worked before.

<!-- gh-comment-id:3909745253 --> @RndmJoker commented on GitHub (Feb 16, 2026): > Huh, it seems like I can't reproduce this issue. Is this vaild for new installations only? No i dont think so. My installation ist a few months old and it worked before.
Author
Owner

@7heMech commented on GitHub (Feb 17, 2026):

Should be fixed in the latest release. @jsk01 can you confirm and if so, close the issue?

<!-- gh-comment-id:3912786345 --> @7heMech commented on GitHub (Feb 17, 2026): Should be fixed in the latest release. @jsk01 can you confirm and if so, close the issue?
Author
Owner

@jc21 commented on GitHub (Feb 17, 2026):

Interestingly, the CI builds perform complete setups using all 3 supported database types. And all passed with the better-sqlite3 change.

Is/was this only affecting users who have their own config json file in their data folder?

<!-- gh-comment-id:3917318665 --> @jc21 commented on GitHub (Feb 17, 2026): Interestingly, the CI builds perform complete setups using all 3 supported database types. And all passed with the `better-sqlite3` change. Is/was this only affecting users who have their own config json file in their `data` folder?
Author
Owner

@jc21 commented on GitHub (Feb 17, 2026):

The commit above should resolve any lingering NOW issues regardless.

<!-- gh-comment-id:3917420320 --> @jc21 commented on GitHub (Feb 17, 2026): The commit above should resolve any lingering NOW issues regardless.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-proxy-manager-NginxProxyManager#3159
No description provided.