Skip to content

Commit

Permalink
[doc] add a README doc for otbr docker for common issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Irving-cl committed Dec 16, 2024
1 parent 92dcb0a commit 7d10cff
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions etc/docker/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# OT BR Docker

## Troubleshooting
### rsyslog cannot start
If `rsyslog` cannot start successfully (don't have response) during otbr docker image booting-up:
```
+ sudo service rsyslog status
* rsyslogd is not running
+ sudo service rsyslog start
* Starting enhanced syslogd rsyslogd
```

This is caused by the high limit number of file descriptors (`LimitNOFILE`). The program of `rsyslog` will take a long time to run a for loop to close all open file descriptors when this limit is high (for example, `1073741816`).

To solve this issue, add the following configuration to `/etc/docker/daemon.json`:
```
"default-ulimits": {
"nofile": {
"Name": "nofile",
"Hard": 1024,
"Soft": 1024
},
"nproc": {
"Name": "nproc",
"Soft": 65536,
"Hard": 65536
}
}
```
And then reload & restart the docker service:
```
sudo systemctl daemon-reload
sudo systemctl restart docker
```

0 comments on commit 7d10cff

Please sign in to comment.