Skip to content

[BUG] No file gunicorn.ctl #3212

Description

@BylgakovAN

What happened?

Hei!
The ui.log constantly reports "Control server error: [Errno 13] Permission denied."

[UI] [6213] [❌] - Control server error: [Errno 13] Permission denied

I added information about this error to the /usr/share/bunkerweb/deps/python/gunicorn/ctl/server.py file (sorry if it's incorrect).

    def _run_loop(self):
        """Run the asyncio event loop in background thread."""
        try:
            asyncio.run(self._serve())
        except PermissionError:
            if self.arbiter.log:
                self.arbiter.log.error(f"""Permission denied: {self.socket_path}""")
        except Exception·as·e:
            if self.arbiter.log:
                self.arbiter.log.error("Control·server·error:·%s", e)

It turned out that the file doesn't exist. gunicorn.ctl

[2026-02-20 11:22:17 +0000] [UI] [81509] [ℹ ] - Temporary UI is stopped
[2026-02-20 11:22:17 +0000] [UI] [81509] [ℹ ] - UI is ready
[2026-02-20 11:22:17 +0000] [UI] [81509] [ℹ ] - Listening at:  (81509)
[2026-02-20 11:22:17 +0000] [UI] [81509] [ℹ ] - Using worker: gthread
[2026-02-20 11:22:17 +0000] [UI] [81509] [❌] - Permission denied: /usr/share/bunkerweb/ui/gunicorn.ctl
[2026-02-20 11:22:17 +0000] [UI] [81518] [ℹ ] - Booting worker with pid: 81518
[2026-02-20 11:22:52 +0000] [API.CALLER] [81518] [ℹ ] - Successfully sent API request to http://127.0.0.1:5000/metrics/errors

Is this how it should be? The file really doesn't exist.

ls -alFi /usr/share/bunkerweb/ui/
total 164
1050907 dr-xr-x--- 4 root nginx 4096 Feb 19 08:50 ./
1050893 dr-xr-x--- 18 root nginx 4096 Feb 19 08:50 ../
1050911 dr-xr-x--- 6 root nginx 4096 Feb 19 08:50 app/
1050910 -r-xr-x--- 1 root nginx 4306 Feb 13 20:13 entrypoint.sh*
1050909 -r-xr-x--- 1 root nginx 55666 Feb 13 20:13 main.py*
1051945 -r--r----- 1 root nginx 299 Feb 13 20:13 requirements.in
1050908 -r--r----- 1 root nginx 77211 Feb 13 20:13 requirements.txt
1051939 -r-xr-x--- 1 root nginx 3624 Feb 13 20:13 temp.py*
1051940 dr-xr-x--- 2 root nginx 4096 Feb 19 08:50 utils/

How to fix??
Thanks for your help

How to reproduce?

The error appears immediately after installation.

Configuration file(s) (yaml or .env)

Relevant log output

BunkerWeb version

1.6.9~rc1

What integration are you using?

Linux

Linux distribution (if applicable)

Ubuntu 24.04.4 LTS

Removed private data

  • I have removed all private data from the configuration file and the logs

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions