-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[doc] add a README doc for otbr docker for common issues
- Loading branch information
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# 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 | ||
``` |