isis.lua:36: attempt to concatenate local 'username' (a nil value)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 65/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- lua, nginx
- Domain
- authentication, backend
Research direction
The error is raised in lua/lib/isis.lua inside log_auth_outcome, around line 36, where username is concatenated into a log string. Read authenticate_user (around line 29) and its caller in authentication.lua near line 60 to see when username can be nil. Done means the log call no longer throws when username is nil and still writes a useful entry. Run the auth path with a request that has no user to confirm.
Written by the indexing model from the issue text.
Description
About
We just spotted a little hiccup in the server logs that can be improved.
Details
2026/11/03 00:34:23 [info] 19516#0: *2925124 [lua] access.lua:144: Require authentication to "/xmlrpc.php", client: 181.224.223.7, server: patent-archive.example.org, request: "POST /xmlrpc.php HTTP/1.1", host: "server.example.net"
2026/11/03 00:34:23 [error] 19516#0: *2925124 upstream prematurely closed connection while reading response header from upstream, client: 181.224.223.7, server: patent-archive.example.org, request: "POST /xmlrpc.php HTTP/1.1", subrequest: "/api/identity/auth", upstream: "uwsgi://unix:/run/uwsgi/app/patzilla/socket:", host: "server.example.net"
2026/11/03 00:34:23 [error] 19516#0: *2925124 lua entry thread aborted: runtime error: /opt/patentsearch/nginx-auth/lua/lib/isis.lua:36: attempt to concatenate local 'username' (a nil value)
stack traceback:
coroutine 0:
/opt/patentsearch/nginx-auth/lua/lib/isis.lua: in function 'log_auth_outcome'
/opt/patentsearch/nginx-auth/lua/lib/isis.lua:29: in function 'authenticate_user'
/opt/patzilla/nginx-auth/lua/authentication.lua:60: in function </opt/patzilla/nginx-auth/lua/authentication.lua:1> while sending to client, client: 181.224.223.7, server: patent-archive.example.org, request: "POST /xmlrpc.php HTTP/1.1", host: "server.example.net"
- Dominant language
- Python
- Stars
- 123
- Forks
- 31
- Avg merge
- 3h 7m
- Merged PRs (30d)
- 71
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ip-tools/patzilla
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
ip-tools/patzilla#139 · 3 comments ·
Maintainers usually reply within 1 day
-
UI: Update BabelOpendependencies help wanted javascript
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
enhancement help wanted
Difficulty 5/5 Over a week Newbie friendliness 20/100
ip-tools/patzilla#188 · 1 comment ·
Maintainers usually reply within 1 day
-
dependencies help wanted javascript
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
ip-tools/patzilla#181 · 1 comment ·
Maintainers usually reply within 1 day
-
dependencies javascript
Difficulty 5/5 Over a week Newbie friendliness 15/100
Maintainers usually reply within 1 day
All issues in ip-tools/patzilla
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
autowarefoundation/autoware_carla_scenario#1485 ·
Maintainers usually reply within 1 day
-
needs-area-label
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 2 days
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Official-Space-AI/OpenPhysGraspGen#114 ·
Maintainers usually reply within 2 days
-
changelog investigate
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
ramnes/notion-sdk-py#441 ·
-
copy_tree splits same-file errors into charactersPossibly taken @Gambit-Checkmate claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 14 days