Warp daemon not connectable due to InsufficientResources("Failed to inc rease the number of allowed open FDs: EPERM: Operation not permitted"))

I, logined as root, installed Cloudflare WARP on Ubuntu 18.04 following the official instructions on https://developers.cloudflare.com/warp-client/get-started/linux, and everything goes well until warp-cli connect, which gives prompt like no response from daemon.

At the mean time, /var/log/syslog is rapidly inflating with logs like:

Mar 12 11:16:44 open-poke-3 warp-svc[1735]: 2023-03-12T15:16:44.310Z  INFO main_loop: warp::warp: Initiate WARP proxy connection
Mar 12 11:16:44 open-poke-3 warp-svc[1735]: 2023-03-12T15:16:44.310Z DEBUG main_loop: warp::warp: Connect finished Err(InsufficientResources("Failed to inc
rease the number of allowed open FDs: EPERM: Operation not permitted"))
Mar 12 11:16:44 open-poke-3 warp-svc[1735]: 2023-03-12T15:16:44.310Z  WARN main_loop: warp::warp_service: Tunnel failed to start error=InsufficientResource
s("Failed to increase the number of allowed open FDs: EPERM: Operation not permitted")
Mar 12 11:16:44 open-poke-3 warp-svc[1735]: 2023-03-12T15:16:44.313Z DEBUG main_loop: warp::warp_service: Entering main loop arm arm="tunnel_taskset_errors
_fut"
Mar 12 11:16:44 open-poke-3 warp-svc[1735]: 2023-03-12T15:16:44.313Z DEBUG main_loop: warp::warp_service: Entering main loop arm arm="status_change"
Mar 12 11:16:44 open-poke-3 warp-svc[1735]: 2023-03-12T15:16:44.313Z  INFO main_loop: warp::warp_service: WARP status: Disconnected
Mar 12 11:16:44 open-poke-3 warp-svc[1735]: 2023-03-12T15:16:44.313Z DEBUG main_loop: warp::warp_service::ipc_handlers: Sending IPC status update: Disconne
cted
Mar 12 11:16:44 open-poke-3 warp-svc[1735]: 2023-03-12T15:16:44.313Z DEBUG main_loop: warp::warp_service::ipc_handlers: Ipc Broadcast ResponseStatus: Disco
nnected
Mar 12 11:16:44 open-poke-3 warp-svc[1735]: 2023-03-12T15:16:44.313Z DEBUG main_loop: warp::warp_service: Entering main loop arm arm="conn_error"
Mar 12 11:16:44 open-poke-3 warp-svc[1735]: 2023-03-12T15:16:44.313Z DEBUG main_loop: warp::warp_service: Reconnecting on connection error
Mar 12 11:16:44 open-poke-3 warp-svc[1735]: 2023-03-12T15:16:44.313Z  INFO main_loop: firewall: Firewall stopped
Mar 12 11:16:44 open-poke-3 warp-svc[1735]: 2023-03-12T15:16:44.313Z  INFO main_loop: firewall: Firewall stopped
Mar 12 11:16:44 open-poke-3 warp-svc[1735]: 2023-03-12T15:16:44.313Z  INFO main_loop: warp::warp_service: captive_portal_fw_until: Indefinitely
Mar 12 11:16:44 open-poke-3 warp-svc[1735]: 2023-03-12T15:16:44.315Z DEBUG main_loop: warp::warp: Using auto fallback: true
Mar 12 11:16:44 open-poke-3 warp-svc[1735]: 2023-03-12T15:16:44.316Z DEBUG main_loop: warp::warp: Current Network: IPv4: [eth0; 65.49.194.177; Ethernet]; D
NS servers:;   1.1.1.1:53;   1.0.0.1:53;   74.82.42.42:53;
Mar 12 11:16:44 open-poke-3 warp-svc[1735]: 2023-03-12T15:16:44.316Z  INFO main_loop: warp::warp: Initiate WARP proxy connection
Mar 12 11:16:44 open-poke-3 warp-svc[1735]: 2023-03-12T15:16:44.316Z DEBUG main_loop: warp::warp: Connect finished Err(InsufficientResources("Failed to inc
rease the number of allowed open FDs: EPERM: Operation not permitted"))
Mar 12 11:16:44 open-poke-3 warp-svc[1735]: 2023-03-12T15:16:44.316Z  WARN main_loop: warp::warp_service: Tunnel failed to start error=InsufficientResource
s("Failed to increase the number of allowed open FDs: EPERM: Operation not permitted")
Mar 12 11:16:44 open-poke-3 warp-svc[1735]: 2023-03-12T15:16:44.316Z DEBUG main_loop: warp::warp_service: Entering main loop arm arm="tunnel_taskset_errors
_fut"
Mar 12 11:16:44 open-poke-3 warp-svc[1735]: 2023-03-12T15:16:44.316Z DEBUG main_loop: warp::warp_service: Entering main loop arm arm="status_change"
Mar 12 11:16:44 open-poke-3 warp-svc[1735]: 2023-03-12T15:16:44.316Z  INFO main_loop: warp::warp_service: WARP status: Disconnected
Mar 12 11:16:44 open-poke-3 warp-svc[1735]: 2023-03-12T15:16:44.316Z DEBUG main_loop: warp::warp_service::ipc_handlers: Sending IPC status update: Disconne
cted
Mar 12 11:16:44 open-poke-3 warp-svc[1735]: 2023-03-12T15:16:44.316Z DEBUG main_loop: warp::warp_service::ipc_handlers: Ipc Broadcast ResponseStatus: Disco
nnected
Mar 12 11:16:44 open-poke-3 warp-svc[1735]: 2023-03-12T15:16:44.316Z DEBUG main_loop: warp::warp_service: Entering main loop arm arm="conn_error"
Mar 12 11:16:44 open-poke-3 warp-svc[1735]: 2023-03-12T15:16:44.316Z DEBUG main_loop: warp::warp_service: Reconnecting on connection error
Mar 12 11:16:44 open-poke-3 warp-svc[1735]: 2023-03-12T15:16:44.316Z  INFO main_loop: firewall: Firewall stopped

I HAVE to use systemctl stop warp-svc.service to stop the daemon, otherwise the whole disk could be used up very soon.

Since the log mentions the number of allowed open FDs, I have tried to set the ulimit as:

core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 3919
max locked memory       (kbytes, -l) 16384
max memory size         (kbytes, -m) unlimited
open files                      (-n) 65535
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 65535
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

and cat /proc/sys/fs/nr_open shows 1048576.

Please help me finish the whole set up. Thanks.

try my solution HERE