[PR #27283] feat: When deploying and running "ubuntu/squid" on "x86_64 GNU/Linux", "ERROR: setrlimit: RLIMIT_NOFILE: (1) Operation not permitted" appears #31736

Closed
opened 2026-02-21 20:50:02 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/27283

State: closed
Merged: No


When running docker compose up -d on Linux, we encountered an issue where the "ubuntu/squid" container consistently failed to start. Checking the logs revealed the corresponding error, and we resolved the problem by modifying the ulimits configuration. It is important to note that before our modification, the container ran normally on both macOS and Ubuntu systems.

sh docker-entrypoint.sh
[ENTRYPOINT] re-create snakeoil self-signed certificate removed in the build process
[ENTRYPOINT] replacing environment variables in the template
2025/10/22 09:41:57| Creating missing swap directories
2025/10/22 09:41:57| No cache_dir stores are configured.
2025/10/22 09:41:57| Removing PID file (/run/squid.pid)
2025/10/22 09:41:57| Processing Configuration File: /etc/squid/squid.conf (depth 0)
2025/10/22 09:41:57| Processing Configuration File: /etc/squid/conf.d/debian.conf (depth 1)
2025/10/22 09:41:57| Processing Configuration File: /etc/squid/conf.d/rock.conf (depth 1)
2025/10/22 09:41:57| Created PID file (/run/squid.pid)
2025/10/22 09:41:57| ERROR: setrlimit: RLIMIT_NOFILE: (1) Operation not permitted
2025/10/22 09:41:57| ERROR: setrlimit: RLIMIT_NOFILE: (1) Operation not permitted
2025/10/22 09:41:57| Set Current Directory to /var/spool/squid
2025/10/22 09:46:24| Processing Configuration File: /etc/squid/squid.conf (depth 0)
2025/10/22 09:46:24| Processing Configuration File: /etc/squid/conf.d/debian.conf (depth 1)
2025/10/22 09:46:24| Processing Configuration File: /etc/squid/conf.d/rock.conf (depth 1)
2025/10/22 09:46:24| Created PID file (/run/squid.pid)
2025/10/22 09:46:24| ERROR: setrlimit: RLIMIT_NOFILE: (1) Operation not permitted
2025/10/22 09:46:24| ERROR: setrlimit: RLIMIT_NOFILE: (1) Operation not permitted
2025/10/22 09:46:24| Processing Configuration File: /etc/squid/squid.conf (depth 0)
2025/10/22 09:46:24| Processing Configuration File: /etc/squid/conf.d/debian.conf (depth 1)
2025/10/22 09:46:24| Processing Configuration File: /etc/squid/conf.d/rock.conf (depth 1)
2025/10/22 09:46:24| Created PID file (/run/squid.pid)
2025/10/22 09:46:24| ERROR: setrlimit: RLIMIT_NOFILE: (1) Operation not permitted
2025/10/22 09:46:24| ERROR: setrlimit: RLIMIT_NOFILE: (1) Operation not permitted
2025/10/22 09:46:24| Set Current Directory to /var/spool/squid
2025/10/22 09:46:24| Set Current Directory to /var/spool/squid
2025/10/22 09:46:24| Creating missing swap directories
2025/10/22 09:46:24| No cache_dir stores are configured.
2025/10/22 09:46:24| Removing PID file (/run/squid.pid)
2025/10/22 09:46:24| Creating missing swap directories
2025/10/22 09:46:24| No cache_dir stores are configured.
2025/10/22 09:46:24| Removing PID file (/run/squid.pid)
[ENTRYPOINT] starting squid
2025/10/22 09:46:24| Processing Configuration File: /etc/squid/squid.conf (depth 0)
2025/10/22 09:46:24| Processing Configuration File: /etc/squid/conf.d/debian.conf (depth 1)
2025/10/22 09:46:24| Processing Configuration File: /etc/squid/conf.d/rock.conf (depth 1)
2025/10/22 09:46:24| Created PID file (/run/squid.pid)
2025/10/22 09:46:24| ERROR: setrlimit: RLIMIT_NOFILE: (1) Operation not permitted
2025/10/22 09:46:24| ERROR: setrlimit: RLIMIT_NOFILE: (1) Operation not permitted
2025/10/22 09:46:24| Set Current Directory to /var/spool/squid
Killed
**Original Pull Request:** https://github.com/langgenius/dify/pull/27283 **State:** closed **Merged:** No --- When running docker compose up -d on Linux, we encountered an issue where the "ubuntu/squid" container consistently failed to start. Checking the logs revealed the corresponding error, and we resolved the problem by modifying the ulimits configuration. It is important to note that before our modification, the container ran normally on both macOS and Ubuntu systems. ```sh sh docker-entrypoint.sh [ENTRYPOINT] re-create snakeoil self-signed certificate removed in the build process [ENTRYPOINT] replacing environment variables in the template 2025/10/22 09:41:57| Creating missing swap directories 2025/10/22 09:41:57| No cache_dir stores are configured. 2025/10/22 09:41:57| Removing PID file (/run/squid.pid) 2025/10/22 09:41:57| Processing Configuration File: /etc/squid/squid.conf (depth 0) 2025/10/22 09:41:57| Processing Configuration File: /etc/squid/conf.d/debian.conf (depth 1) 2025/10/22 09:41:57| Processing Configuration File: /etc/squid/conf.d/rock.conf (depth 1) 2025/10/22 09:41:57| Created PID file (/run/squid.pid) 2025/10/22 09:41:57| ERROR: setrlimit: RLIMIT_NOFILE: (1) Operation not permitted 2025/10/22 09:41:57| ERROR: setrlimit: RLIMIT_NOFILE: (1) Operation not permitted 2025/10/22 09:41:57| Set Current Directory to /var/spool/squid 2025/10/22 09:46:24| Processing Configuration File: /etc/squid/squid.conf (depth 0) 2025/10/22 09:46:24| Processing Configuration File: /etc/squid/conf.d/debian.conf (depth 1) 2025/10/22 09:46:24| Processing Configuration File: /etc/squid/conf.d/rock.conf (depth 1) 2025/10/22 09:46:24| Created PID file (/run/squid.pid) 2025/10/22 09:46:24| ERROR: setrlimit: RLIMIT_NOFILE: (1) Operation not permitted 2025/10/22 09:46:24| ERROR: setrlimit: RLIMIT_NOFILE: (1) Operation not permitted 2025/10/22 09:46:24| Processing Configuration File: /etc/squid/squid.conf (depth 0) 2025/10/22 09:46:24| Processing Configuration File: /etc/squid/conf.d/debian.conf (depth 1) 2025/10/22 09:46:24| Processing Configuration File: /etc/squid/conf.d/rock.conf (depth 1) 2025/10/22 09:46:24| Created PID file (/run/squid.pid) 2025/10/22 09:46:24| ERROR: setrlimit: RLIMIT_NOFILE: (1) Operation not permitted 2025/10/22 09:46:24| ERROR: setrlimit: RLIMIT_NOFILE: (1) Operation not permitted 2025/10/22 09:46:24| Set Current Directory to /var/spool/squid 2025/10/22 09:46:24| Set Current Directory to /var/spool/squid 2025/10/22 09:46:24| Creating missing swap directories 2025/10/22 09:46:24| No cache_dir stores are configured. 2025/10/22 09:46:24| Removing PID file (/run/squid.pid) 2025/10/22 09:46:24| Creating missing swap directories 2025/10/22 09:46:24| No cache_dir stores are configured. 2025/10/22 09:46:24| Removing PID file (/run/squid.pid) [ENTRYPOINT] starting squid 2025/10/22 09:46:24| Processing Configuration File: /etc/squid/squid.conf (depth 0) 2025/10/22 09:46:24| Processing Configuration File: /etc/squid/conf.d/debian.conf (depth 1) 2025/10/22 09:46:24| Processing Configuration File: /etc/squid/conf.d/rock.conf (depth 1) 2025/10/22 09:46:24| Created PID file (/run/squid.pid) 2025/10/22 09:46:24| ERROR: setrlimit: RLIMIT_NOFILE: (1) Operation not permitted 2025/10/22 09:46:24| ERROR: setrlimit: RLIMIT_NOFILE: (1) Operation not permitted 2025/10/22 09:46:24| Set Current Directory to /var/spool/squid Killed ```
yindo added the pull-request label 2026-02-21 20:50:02 -05:00
yindo closed this issue 2026-02-21 20:50:02 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#31736