Falsche Berechnung von Speicherplatz  [GELÖST]

Locked
User avatar
James_Marcus
Posts: 5
Joined: Wed 26. Sep 2018, 22:21

Falsche Berechnung von Speicherplatz

Post by James_Marcus »

Hallo.

Ich habe vor kurzem auf meinen 2 Servern KeyHelp installiert, da ich eine gute Alternative zu Plesk suche. Bisher bin ich sehr zufrieden nur leider habe ich das oben genannte Problem, das die Speicherplatzberechnung der Benutzer falsch ist.

Da ich nicht am laufenden System experimentieren wollte und um eventuelle Konfigurationsfehler auszuschließen habe ich nochmals einen identischen, komplett sauberen Server installiert. Leider mit dem selben Problem.

auch das Thema viewtopic.php?f=6&t=1410&p=5311&hilit=f ... data#p5311 hat mich nicht weitergebracht.

Die Systemdaten und logs:

Ubuntu 16.04 LTS (out of the box)
KeyHelp 18.1.1 (Build 1420) - (ohne Fehler durchgelaufen)

fdisk -l

Code: Select all

Disk /dev/sda: 19.1 GiB, 20480786432 bytes, 40001536 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xc1ae76eb

Device     Boot Start      End  Sectors  Size Id Type
/dev/sda1  *     2048 40001502 39999455 19.1G 83 Linux
Festplattenbelegung laut ncdu

Code: Select all

--- /home/users/testnutzer/www -------------------------------------------------
                         /..
    6.0 MiB [##########]  17.0.0-admin-de.pdf
    4.0 KiB [          ]  index.html

repquota /

Code: Select all

*** Report for user quotas on device /dev/sda1
Block grace time: 7days; Inode grace time: 7days
                        Block limits                File limits
User            used    soft    hard  grace    used  soft  hard  grace
----------------------------------------------------------------------
root      -- 1835468       0       0          46271     0     0
daemon    --      64       0       0              4     0     0
man       --    1340       0       0            139     0     0
www-data  --      20       0       0              5     0     0
systemd-timesync --       0       0       0              1     0     0
syslog    --     340       0       0              6     0     0
_apt      --      40       0       0              3     0     0
lxd       --       4       0       0              1     0     0
keyhelp   --   93392       0       0          10135     0     0
bind      --      12       0       0              3     0     0
mysql     --  184496       0       0            285     0     0
ftp       --       4       0       0              1     0     0
postfix   --      60       0       0             49     0     0
vmail     --     172       0       0             37     0     0
clamav    --      12       0       0              5     0     0
postgrey  --     116       0       0              8     0     0
debian-spamd --      16       0       0              6     0     0
amavis    --     264       0       0             22     0     0
cat /etc/passwd

Code: Select all

root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
bin:x:2:2:bin:/bin:/usr/sbin/nologin
sys:x:3:3:sys:/dev:/usr/sbin/nologin
sync:x:4:65534:sync:/bin:/bin/sync
games:x:5:60:games:/usr/games:/usr/sbin/nologin
man:x:6:12:man:/var/cache/man:/usr/sbin/nologin
lp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin
mail:x:8:8:mail:/var/mail:/usr/sbin/nologin
news:x:9:9:news:/var/spool/news:/usr/sbin/nologin
uucp:x:10:10:uucp:/var/spool/uucp:/usr/sbin/nologin
proxy:x:13:13:proxy:/bin:/usr/sbin/nologin
www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin
backup:x:34:34:backup:/var/backups:/usr/sbin/nologin
list:x:38:38:Mailing List Manager:/var/list:/usr/sbin/nologin
irc:x:39:39:ircd:/var/run/ircd:/usr/sbin/nologin
gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/usr/sbin/nologin
nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin
systemd-timesync:x:100:102:systemd Time Synchronization,,,:/run/systemd:/bin/false
systemd-network:x:101:103:systemd Network Management,,,:/run/systemd/netif:/bin/false
systemd-resolve:x:102:104:systemd Resolver,,,:/run/systemd/resolve:/bin/false
systemd-bus-proxy:x:103:105:systemd Bus Proxy,,,:/run/systemd:/bin/false
syslog:x:104:108::/home/syslog:/bin/false
_apt:x:105:65534::/nonexistent:/bin/false
lxd:x:106:65534::/var/lib/lxd/:/bin/false
messagebus:x:107:111::/var/run/dbus:/bin/false
uuidd:x:108:112::/run/uuidd:/bin/false
dnsmasq:x:109:65534:dnsmasq,,,:/var/lib/misc:/bin/false
sshd:x:110:65534::/var/run/sshd:/usr/sbin/nologin
keyhelp:x:1000:1000::/home/keyhelp/:/bin/false
bind:x:111:115::/var/cache/bind:/bin/false
mysql:x:112:116:MySQL Server,,,:/nonexistent:/bin/false
proftpd:x:113:65534::/run/proftpd:/bin/false
ftp:x:114:65534::/srv/ftp:/bin/false
postfix:x:115:118::/var/spool/postfix:/bin/false
policyd-spf:x:116:120::/home/policyd-spf:/bin/false
dovecot:x:117:121:Dovecot mail server,,,:/usr/lib/dovecot:/bin/false
dovenull:x:118:122:Dovecot login user,,,:/nonexistent:/bin/false
vmail:x:5000:5000::/var/mail:
clamav:x:119:123::/var/lib/clamav:/bin/false
postgrey:x:120:124::/var/lib/postgrey:/bin/false
debian-spamd:x:121:125::/var/lib/spamassassin:/bin/sh
amavis:x:122:126:AMaViS system user,,,:/var/lib/amavis:/bin/sh
ntp:x:123:127::/home/ntp:/bin/false
testnutzer:x:5001:5001:added by KeyHelp:/home/users/testnutzer/:/bin/false
update.log

Code: Select all

[12-Oct-2018 09:56:01] INFO  --> add user "testnutzer"
[12-Oct-2018 09:56:01] INFO  --> startdir "/home/users/"... created
[12-Oct-2018 09:56:01] INFO  --> perform useradd... okay
[12-Oct-2018 09:56:01] INFO  --> add "keyhelp_nossh" group to user "testnutzer"... okay
[12-Oct-2018 09:56:01] INFO  --> set quota for user "testnutzer" to 1048576 Blocks... okay
[12-Oct-2018 09:56:01] INFO  --> create standard directorys
[12-Oct-2018 09:56:02] INFO  --> secure homedir
[12-Oct-2018 09:56:02] DEBUG --> created default index file
====
[12-Oct-2018 09:57:01] INFO  --> load tasks ... 3 found
[12-Oct-2018 09:57:01] DEBUG --> task type IDs: 600, 500, 700
[12-Oct-2018 09:57:01] INFO  --> create emailaccount "test1@ddc4.int" for user: "testnutzer"
[12-Oct-2018 09:57:01] DEBUG --> Bind: __construct()
[12-Oct-2018 09:57:01] DEBUG --> Bind: writeConfig()
[12-Oct-2018 09:57:01] DEBUG --> Bind: checkDirectory()
[12-Oct-2018 09:57:01] DEBUG --> Bind: directory "/etc/bind/keyhelp_domains/" already exists
[12-Oct-2018 09:57:01] DEBUG --> Bind: getNameserver()
[12-Oct-2018 09:57:01] DEBUG --> Bind: 2 nameservers found
[12-Oct-2018 09:57:01] DEBUG --> Bind: getIPs()
[12-Oct-2018 09:57:01] DEBUG --> Bind: 2 ips found
[12-Oct-2018 09:57:01] DEBUG --> Bind: generate zone file for domain "ddc4.int"
[12-Oct-2018 09:57:01] INFO  --> Bind: write zone file for domain "ddc4.int"
[12-Oct-2018 09:57:01] DEBUG --> Bind: generateKeyhelpConf()
[12-Oct-2018 09:57:01] INFO  --> Bind: write config file "named.conf.keyhelp"
[12-Oct-2018 09:57:01] DEBUG --> Bind: checkSyntax()
[12-Oct-2018 09:57:01] DEBUG --> Bind: syntax ok
[12-Oct-2018 09:57:01] INFO  --> Bind: reload bind config
[12-Oct-2018 09:57:01] DEBUG --> Apache: applyAllConfigChanges()
[12-Oct-2018 09:57:01] DEBUG --> Apache: checkDirectories()
[12-Oct-2018 09:57:01] DEBUG --> Apache: cleanAll()
[12-Oct-2018 09:57:01] DEBUG --> Apache: cleanVhosts()
[12-Oct-2018 09:57:01] DEBUG --> Apache: cleanCustomVhosts()
[12-Oct-2018 09:57:01] DEBUG --> Apache: cleanPhpFpmPools()
[12-Oct-2018 09:57:01] DEBUG --> Apache: cleanHtpasswd()
[12-Oct-2018 09:57:01] DEBUG --> Apache: getUserIdsWithModifiedDomains()
[12-Oct-2018 09:57:01] DEBUG --> Apache: we will now apply configs changes of user id "2"
[12-Oct-2018 09:57:01] DEBUG --> Apache: config data loaded for user id "2" ("testnutzer")
[12-Oct-2018 09:57:01] DEBUG --> load domain "ddc4.int"
[12-Oct-2018 09:57:01] DEBUG --> domain without ssl option
[12-Oct-2018 09:57:01] DEBUG --> load domain "www.ddc4.int"
[12-Oct-2018 09:57:01] DEBUG --> domain without ssl option
[12-Oct-2018 09:57:01] DEBUG --> Apache: add vhost container for domain "ddc4.int"
[12-Oct-2018 09:57:01] DEBUG --> Apache: add vhost container for domain "www.ddc4.int"
[12-Oct-2018 09:57:01] DEBUG --> Apache: save config to "/etc/apache2/keyhelp/vhosts/testnutzer.conf"
[12-Oct-2018 09:57:01] DEBUG --> PHP-FPM: add php-fpm pool "[testnutzer]" for domain "ddc4.int"
[12-Oct-2018 09:57:01] DEBUG --> save config to "/etc/php/7.0/fpm/keyhelp_pool/testnutzer.conf"
[12-Oct-2018 09:57:01] DEBUG --> PHP-FPM: add php-fpm pool "[testnutzer]" for domain "www.ddc4.int"
[12-Oct-2018 09:57:01] DEBUG --> save config to "/etc/php/7.0/fpm/keyhelp_pool/testnutzer.conf"
[12-Oct-2018 09:57:01] DEBUG --> Apache: reloadApache()
[12-Oct-2018 09:57:01] DEBUG --> Apache: syntax ok
[12-Oct-2018 09:57:01] DEBUG --> Apache: reloading apache
[12-Oct-2018 09:57:02] DEBUG --> Apache: reloadPhpFpm()
[12-Oct-2018 09:57:02] DEBUG --> PHP-FPM (php7.0-fpm): syntax ok
[12-Oct-2018 09:57:02] DEBUG --> PHP-FPM (php7.0-fpm): reloading php-fpm
====
[12-Oct-2018 09:58:01] INFO  --> load tasks ... 1 found
[12-Oct-2018 09:58:01] DEBUG --> task type IDs: 400
[12-Oct-2018 09:58:01] INFO  --> CRON_CREATE_FTP_DIRECTORY
[12-Oct-2018 09:58:01] DEBUG --> params: "idUser" => string (1) "2" | "idFtpUser" => integer 1
[12-Oct-2018 09:58:01] INFO  --> User: testnutzer | FtpUser: testnutzer_ftp1 | HomeDirectory: /home/users/testnutzer/www/
[12-Oct-2018 09:58:01] INFO  --> success
====
diskspace.log

Code: Select all

====
[12-Oct-2018 11:01:01] DEBUG --> users loaded
[12-Oct-2018 11:01:01] INFO  --> select user "testnutzer"
[12-Oct-2018 11:01:01] ERROR --> webspace: failed to collect data
[12-Oct-2018 11:01:01] INFO  -->   webspace: 0 B
[12-Oct-2018 11:01:02] DEBUG -->     email account "test1@ddc4.int": 40.00 KB
[12-Oct-2018 11:01:02] INFO  -->   email: 40.00 KB
[12-Oct-2018 11:01:02] INFO  -->   databases: 0 B
[12-Oct-2018 11:01:02] INFO  -->   summary: 40.00 KB / 1.00 GB - 0.00 %
====
nikko
Posts: 914
Joined: Fri 15. Apr 2016, 16:11

Re: Falsche Berechnung von Speicherplatz

Post by nikko »

Falsch heißt was? Wird überall 0 (null) angezeigt? Oder zu wenig? Oder zu viel? Beim User? Oder gesamt?
...Ich tippe auf 0... :-)
Welche Virtualisierung? Oder dedizierte Maschine?
Versuche mal als erstes ein Reboot und löse danach die entsprechenden Cronjobs im Panel manuell aus. Und schau mal bitte, ob im Panel-Log was steht.
The software said: Requires Win Vista®, 7®, 8® or better. And so I installed Linux.
User avatar
James_Marcus
Posts: 5
Joined: Wed 26. Sep 2018, 22:21

Re: Falsche Berechnung von Speicherplatz

Post by James_Marcus »

Oh sorry, das wichtigste habe ich vergessen...

Das Problem ist das bei den Benutzern der belegte Speicherplatz mit 0 angegeben wird, obwohl Daten per FTP übertragen wurden. Der belebte Speicherplatz sollte eigentlich ca. 6 MB anzeigen.

Ein Reboot hat nichts gebracht, auch ein manuelles Anstoßen der Cronjobs hat nichts gebracht. Die Virtualisierungssoftware ist KVM.
Attachments
Unbenannt.PNG
Unbenannt.PNG (14.11 KiB) Viewed 5199 times
Last edited by James_Marcus on Fri 12. Oct 2018, 14:49, edited 1 time in total.
User avatar
Martin
Posts: 984
Joined: Wed 20. Jan 2016, 00:43

Re: Falsche Berechnung von Speicherplatz

Post by Martin »

Hallo,

ist es korrekt das die Platte nur 20GB groß ist oder liegt /home ggf. auf einer anderen Partition?
Viele Grüße,
Martin
User avatar
James_Marcus
Posts: 5
Joined: Wed 26. Sep 2018, 22:21

Re: Falsche Berechnung von Speicherplatz

Post by James_Marcus »

Ja die Platte ist nur 20 GB groß und alles liegt auf einer Partition.

Wenn es hilft, kann ich euch die Zugangsdaten zum Server per PN schicken...
User avatar
Martin
Posts: 984
Joined: Wed 20. Jan 2016, 00:43

Re: Falsche Berechnung von Speicherplatz

Post by Martin »

Hallo,

welches Dateisystem kommt hier zum Einsatz? Wie sieht die /etc/fstab aktuell aus?
Kann über ein Rettungssystem einmal ein quotacheck -u / durchgeführt werden? In obiger Ausgabe von repquota / scheinen die Usernamen zu fehlen.

Direkter Support auf dem Server ist uns aktuell leider nur bei Keyweb Kunden möglich, hier wäre dann ein entsprechendes Ticket zu öffnen.

Mit freundlichen Grüßen
Martin Dannehl
Viele Grüße,
Martin
User avatar
James_Marcus
Posts: 5
Joined: Wed 26. Sep 2018, 22:21

Re: Falsche Berechnung von Speicherplatz

Post by James_Marcus »

Hallo. Das Dateisystem ist ext4.

Ja interessanterweise stehen die Benutzer nicht in "repquota /" aber bei "cat /etc/passwd" sind sie gelistet.

Code: Select all

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda1 during installation
UUID=a80893ee-4fad-4595-a978-ddf5a9325f40     /     ext4     discard,errors=remount-ro,usrquota,grpquota     0     1
/dev/fd0        /media/floppy0  auto    rw,user,noauto,exec,utf8 0       0
Bezüglich dem Rettungssystem muss ich mich noch schlau machen...
User avatar
James_Marcus
Posts: 5
Joined: Wed 26. Sep 2018, 22:21

Re: Falsche Berechnung von Speicherplatz  [GELÖST]

Post by James_Marcus »

Hallo.

Ich kann jetzt zwar nicht genau sagen, wieso, aber der Server hat nachgerechnet und jetzt stimmt alles...

Trotzdem danke für eure Mühe!
Locked