Nextcloud Snap in LXC container - nextcloud.mysqldump pipe problem

Sep 15, 2019
41
0
26
Hello together,
I've nextcloud snap in an unprivileged lxc container up and running. No I was playing around with the nextcloud snap CLI.
When issuing the following command:

nextcloud.mysqldump --databases nextcloud > /tmp/nextclouddump.txt

I got the following error:

Got errno 32 on write

When issuing

nextcloud.mysqldump --databases nextcloud

The dump is printed on the console. So I guess the problem is with the redirection inside of lxc.
Could please somebody point me in the right direction how to write the output to a file?

Any help or hint is highly appreciated!

Thanks!

Chris
 
Is the container disk full, has not enough free space for full dump ?

Personally i set up ssh in the container and run mysqldump over ssh on the hypoervisor.

But thats just because i use ansible, should work with pct cli as well.
 
Hi H4R0,
thanks for the answer.
the disk is only to 18% full and the out of the box nextcloud snap database shouldn't eat up the remaining 14 Gbyte of remaining space.

I run the nextcloud.mysqldump of the snap over ssh.

I guess it is some kind of rights issue of snapd on an unprivileged lxc container.