Falsche Berechnung von Speicherplatz
Posted: Fri 12. Oct 2018, 11:16
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
Festplattenbelegung laut ncdu
repquota /
cat /etc/passwd
update.log
diskspace.log
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
Code: Select all
--- /home/users/testnutzer/www -------------------------------------------------
/..
6.0 MiB [##########] 17.0.0-admin-de.pdf
4.0 KiB [ ] index.html
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
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
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
====
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 %
====