Closed lanzi69 closed 1 year ago
What's your partitioning structure like on the NAS? In particular, which partition is your NC data Docker volume located on?
The output of a du -shx
from within your NC data directory and a df -h
would also be informative.
Also I'd be curious to know what the free space reported under the Disk heading under Admin->System in the NC Web UI is.
There's one large logical volume /dev/vg1000/lv
over the hole available disc space and this volume is named /volume1
.
These are the results of du -shx
root@nextcloud(pts/1):/volume1/Nextcloud# du -shx
572G .
... and df -h
root@nextcloud(pts/1):/volume1/Nextcloud# df -h /volume1
Filesystem Size Used Avail Use% Mounted on
/dev/vg1000/lv 3.6T 2.4T 1.3T 65% /volume1
Here's a screenshot from the Web-UI:
same issue here
the "files" app says Your storage is full, files cannot be updated or synced anymore!
and in the settings :
same issue here after updating to NC 26.0.1 (from 25.0.6)
I have a 1TB drive for the data directory - about 15 GB are in use. After updating to 26.0.1 i get the warning "Your storage is full, files cannot be updated or synced anymore!". In the web-UI under admin/system/disk, free space shows 24 MB left.
After uploading a file with 500 MB in size, free space switched to a value like -177253 B and the warning message disappeared.
Any chance these Synology NAS units are 32-bit?
@steve7403 Are you running on a NAS as well?
@joshtrichards I am running NextcloudPi on an Odroid HC1 which is 32 Bit. Maybe this is an issue with 32 Bit systems?
32bits here but not Synology.
After re-scanning all files the Web-UI now shows the correct size of used space (meanwhile 209,1 GB) but the "storage is full ..." message still appears.
This is the result of the cli command php occ files:scan lanzi
:
http@nextcloud(pts/1):/volume1/web$ nc-php occ files:scan lanzi
Starting scan for user 1 out of 1 (lanzi)
+---------+-------+--------------+
| Folders | Files | Elapsed time |
+---------+-------+--------------+
| 8075 | 98366 | 01:30:26 |
+---------+-------+--------------+
I'm running Nextcloud on a Synology DS216j with an ARMv7 (32Bit) based CPU (Marvell Armada 385 88F6820 Dual-Core 1,0 GHz).
To re-enable syncing I moved about 157 GB to an external folder.
Now my account uses about 52 GB and after re-login the Web-UI shows a message "Your storage is almost full (96%)".
I'm having a similar issue on 32 bit Raspberry Pi 4 with Nextcloud 26.0.0 : https://github.com/nextcloud/server/pull/35734#issuecomment-1541906964
Did you have a patched version including this? https://github.com/nextcloud/server/pull/35734#issuecomment-1483758053
@lapineige I don't have applied this patch. But after upgrading NC to version 25.0.1 it was not possible to access files anymore. I got the message "folder not found". I changed line 355 in the file (#34905):
/var/www/nextcloud/apps/dav/lib/Connector/Sabre/FilesPlugin.php
from $propFind->handle(self::SIZE_PROPERTYNAME, function () use ($node): ?int {
to $propFind->handle(self::SIZE_PROPERTYNAME, function () use ($node) { return $node->getSize();
and file access was working again. No Problems then until updating to 26.0.1.
Looks very much like a similar issue to https://github.com/nextcloud/server/pull/35734. A float becoming an int and everything breaks.
Did you have quota enabled ?
No Problems then until updating to 26.0.1.
What's the content of that line in FilesPlugin.php now ?
Strange, I didn't have this issue on my RPi 2 with NC26 when it was in beta, but I still had it on NC25, even after #35734 was merged. Hence I opened #37877 to backport a bunch of related fixes from NC26.
I'll see if I can replicate it now on NC 26.0.1, respectively NC 27 (I'm testing the next beta already), probably another commit broke it again. Devs are quite fast in applying types to mute CI warnings, and do not have 32-bit in mind when doing so 🙈.
My PR contains mentions a hesitation about changing return types in stable NC releases. But I think there is no way around it, otherwise things stay clearly broken for 32-bit.
@lapineige No, i don't use quota.
The content of the line in FilesPlugin.php is unchanged, so as i modified it.
edit: sorry, i made a mistake. I looked in FilesPlugin.php of my NC 25.0.6 before upgrading. Here is the correct content of the line in FilesPlugin.php after the upgrade to NC 26.0.1:
$propFind->handle(self::SIZE_PROPERTYNAME, function () use ($node): int|float { return $node->getSize();
And if you set a quota ?
For my part migrating from 26.0.0 to 26.0.1 doesn't change anything regarding this issue.
Does this fixes it ?
diff --git a/lib/private/Files/Storage/Local.php b/lib/private/Files/Storage/Local.php
index ee86fe356f7..9af29550662 100644
--- a/lib/private/Files/Storage/Local.php
+++ b/lib/private/Files/Storage/Local.php
@@ -422,7 +422,7 @@ class Local extends \OC\Files\Storage\Common {
if ($space === false || is_null($space)) {
return \OCP\Files\FileInfo::SPACE_UNKNOWN;
}
- return (int)$space;
+ return $space;
}
public function search($query) {
@come-nc Yes, free disk space shows the right size with this change.
Many thanks!
It doesn't change anything visually. I realize now that I no longer have this error message, I don't know why.
I have this error (I don't use a quota):
[PHP] Error: disk_free_space(): No such file or directory at /var/www/nextcloud/lib/private/Files/Storage/Local.php#421
GET /ocs/v2.php/cloud/users/details?offset=0&limit=25&search= from IP by USER at TIME
Hi,
I have same problem in my nextcloud. How I can fix this trouble?
I'm getting this as well after upgrading to 28.0.2
I'm getting this as well after upgrading to 28.0.2
Well, the devs of nextcloud dont reply this! LMAO
The issue should have been fixed with Nextcloud 27. Are you sure that you really still have space on the storage, and are you running your Nextcloud server on a 32-bit system?
We use AWS S3 as file storage, local disk storage is at 48%. Running no ubuntu 64-bit
Then please open a new issue, since your's is unrelated to this one, which affected 32-bit servers only and was fixed, as mentioned.
Well, the devs of nextcloud dont reply this! LMAO
This is perfectly expected when replying on an old, solved, closed issue. In general, as long as you are not 100% sure that the same bug (with same underlying reason) reappeared, or even when, open a new issue, filling the bug report template. Then you have much better chance to get attention, and we directly have the required information rather than needing to ask, to verify it really is unrelated.
Então abra um novo problema, já que o seu não tem relação com este, que afetou apenas servidores de 32 bits e foi corrigido, conforme referência.
Bem, os desenvolvedores do nextcloud não responderam isso! rindo muito
Isso é perfeitamente esperado ao responder sobre um problema antigo, resolvido e encerrado. Em geral, desde que você não tenha 100% de certeza de que o mesmo bug (com o mesmo motivo subjacente) reapareceu, ou mesmo quando, abra um novo problema, preenchendo o modelo de relatório de bug. Assim, você terá muito mais chances de chamar a atenção e receberemos diretamente as informações possíveis, em vez de precisar perguntar, para verificar se realmente não há relação.
I'm running Nextcloud on Ubuntu SNAP is 64bits, I have 50% space used and the user appears with "unlimited quota" as insufficient space
Issue has been reported here: #43280 The culprit commit has already been identified: #42591 Should be fixed soon.
⚠️ This issue respects the following points: ⚠️
Bug description
Hey there,
my Nextcloud Hub 4 (26.0.1) is running on a Synology NAS containing 4 TB of disc space (about 2 TB free).
Last weekend I updated from 24.0.2 to 26.0.1 and after that the web-frontend said, I'm using 97% of my available storage.
My user is configured with unlimited storage quota and meanwhile the frontend shows the above "storage is full" message.
It displays a usage of 64.3 GB but in a Linux shell on the NAS the "du -sh" command says, that in fact there are 205 GB used.
Rgds Lanzi
Steps to reproduce
Expected behavior
No error or warning to storage issues, because there's unlimited quota an lot's of free space on disc.
Installation method
Community Manual installation with Archive
Nextcloud Server version
26
Operating system
Other
PHP engine version
PHP 8.0
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Updated to a major version (ex. 22.2.3 to 23.0.1)
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
https://help.nextcloud.com/t/ihr-speicher-ist-voll-daher-konnen-keine-dateien-mehr-aktualisiert-oder-synchronisiert-werden/125051/26