Inside a docker container, Nextcloud will usually write its logs to stdout.
You can check the logs using docker logs command.
docker logs --follow CONTAINER
where CONTAINER is your Nextcloud's container name or ID (find out with docker ps).
Docker also captures the logs and saves it to a json file with additional information (timestamp, etc). You can find ...
I found it by installing locate:
sudo apt install locate
Then I updated the db:
And the last thing was to locate the file itself:
$ locate nextcloud.log
log-all should be hyphenated and after allow. The correct command is
sudo ufw allow log-all proto tcp from x.x.x.x to any port 22
replacing x.x.x.x with the intended IP.
The syntax is documented on the man page.
ufw [--dry-run] [rule] [delete] [insert NUM] [prepend] allow|deny|reject|limit [in|out [on
INTERFACE]] [log|log-all] [proto PROTOCOL]...
I got bitten by this when I tried to configure fail2ban on a "minimal" Ubuntu 20.04 LTS image. On Ubuntu fail2ban looks for authentication events in /var/log/auth.log. However, in the "minimal" image only the systemd "journal" facility is available, the file auth.log is missing and then fail2ban won't start. To get the good old ...
Try in /var/log/apache2/nextcloud.log assuming you're using an Apache LAMP stack.
You can also set where the logs will be by adding a TransferLog section to your Apache virtual host file usually located in /etc/apache2/sites-available/. Also see this great setup guide which covers most everything:
It went that my computer was broken : two memories sticks and one DIMM support on the motherboard were badly working and had to be removed or disabled.
The message :
next->prev should be fff f 8e7ab9011680
but was fff b 8e7ab9011680
hinted me to such failure. Because a pointer changing it's value by a single bit and this one being a very high value one, ...
I believe it depends on the distro, but on RHEL and Fedora, the file created in your home directory is created during each login, and if it already exists, it is moved to the .old file, overwriting the file if it exists. It is used for the lifetime of the login session and closed when you log out.
With GNU grep that support PCRE (Perl-compatible regular expressions):
grep -Pzo '.*\[BEGINX\](.|\n)*?\[First-string-i-search-for\](.|\n)*?\[ENDX\].*\n' infile
grep -Pzo '.*BEGINNING(.|\n)*?MIDDLE(.|\n)*?END.*\n' infile