error creating new user  [SOLVED]

Have you discovered a bug? Tell us about it.
Chalipa
Posts: 22
Joined: Sun 19. Mar 2023, 04:03

error creating new user

Post by Chalipa »

I'm sure the cause of the problem is within KeyHelp
(Problems not related to KeyHelp belong in the Offtopic forum)


Server operating system + version
Debian 11.7 (64-bit)


Server virtualization technology used
KVM


KeyHelp version + build number
23.1.1 (Build 3016)


Problem description / error messages
Whenever I try to create a new user, it says
key1.png
An error occurred.

and in System Status -> Event Logs it says
key2.png
Expected result
add user

Actual result
adding user with error

Steps to reproduce


Additional information

It does not say, what exactly the error is. How Can I resolve this?
User avatar
Alexander
Keyweb AG
Posts: 3842
Joined: Wed 20. Jan 2016, 02:23

Re: error creating new user

Post by Alexander »

Hello,

please check "General -> System Status -> Logs -> Processing of tasks (update.log)" around 2023-08-20 03:52:00.

I guess it has something to do with Quota on your system.

Did any errors occur during the installation?
Mit freundlichen Grüßen / Best regards
Alexander Mahr

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Chalipa
Posts: 22
Joined: Sun 19. Mar 2023, 04:03

Re: error creating new user

Post by Chalipa »

Hi,

Thank you for replying. There were no errors during installation.

I get the following in the log

[20-Aug-2023 03:52:02] ERROR | setquota: Mountpoint (or device) / not found or has no quota enabled.
setquota: Not all specified mountpoints are using quota.

How can i fix this?
User avatar
Alexander
Keyweb AG
Posts: 3842
Joined: Wed 20. Jan 2016, 02:23

Re: error creating new user

Post by Alexander »

Hello,

Please upload the content of /var/log/keyhelp/install.log

Please upload the content of your /etc/fstab
Mit freundlichen Grüßen / Best regards
Alexander Mahr

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Chalipa
Posts: 22
Joined: Sun 19. Mar 2023, 04:03

Re: error creating new user

Post by Chalipa »

Hi again,

/var/log/keyhelp/install.log

Code: Select all

================================================================================
  Placeholders
================================================================================

  install.ssh_keys =
  install.nagios =
  install.midnight_commander =
  install.server_setup =
  install.server_setup_dev =
  install.hide_lts_notice = 1
  install.hostname =
  general.preferred_protocol = ipv4
  system.email = root@***HOSTNAME***
  server.domain = ***HOSTNAME***
  server.alias = ***IP_0*** ***IP_1***
  server.current_hostname = ***HOSTNAME***
  server.timezone = Europe/Stockholm
  server.fstab = # /etc/fstab: static file system information.
UUID=ce1e50b7-51ad-4707-a483-8003a82ef2a1     /     xfs     defaults,usrquota,grpquota     0     0
  # /boot/efi was on /dev/vda2 during installation
  UUID=9D15-2D5E  /boot/efi       vfat    umask=0077      0       1
  /dev/sr0        /media/cdrom0   udf,iso9660 user,noauto     0       0
  /dev/sr1        /media/cdrom1   udf,iso9660 user,noauto     0       0
  encryption.base = ***KH_ENCRYPTION_BASE***
  webserver.log_format_with_logio = %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O
  webserver.log_format_without_logio = %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" 0 0
  webserver.http_port = 80
  webserver.https_port = 443
  webserver.redirect_url_domain_not_found = https://***HOSTNAME***/index.php?page=domain_not_found
  dir.home = /home/keyhelp
  dir.keyhelp = /home/keyhelp/www/keyhelp
  dir.webmail = /home/keyhelp/www/webmail
  dir.roundcube = /home/keyhelp/www/roundcube
  dir.rainloop = /home/keyhelp/www/rainloop
dir.snappymail = /home/keyhelp/www/snappymail
  dir.db-administration = /home/keyhelp/www/db-administration
  dir.phpmyadmin = /home/keyhelp/www/phpmyadmin
  dir.adminer = /home/keyhelp/www/adminer
  dir.statistics = /home/keyhelp/www/keyhelp.webstats
  dir.acme_challenge = /home/keyhelp/www/.well-known/acme-challenge
  dir.autoconfig = /home/keyhelp/www/keyhelp/misc/emailconfig
  email.enable_virus_checks = 1
  dovecot.imap_login_process_limit = 100
  dovecot.max_userip_connections = 10
  dovecot.enforce_quota = 1
  postfix.inet_protocols = ipv4
  avscan.virus_signatures_type = good
  clamav.signatures_for_config =
  php.version = 7.4
  db.tuning_file = tuning.cnf
  db.setup.username = root
  db.setup.password = ***DB_SETUP_PASS***
  db.root.username = root
  db.root.password = ***DB_SETUP_PASS***
  db.keyhelp.host = localhost
  db.keyhelp.username = keyhelp
  db.keyhelp.password = ***DB_KH_PASS***
  db.keyhelp.database = keyhelp
  db.keyhelp_root.host = localhost
  db.keyhelp_root.username = keyhelp_root
  db.keyhelp_root.password = ***DB_KH_ROOT_PASS***
  bind.rname = root.***HOSTNAME***.
  bind.serial = 2023080600
  bind.name_servers.0 = ns.***HOSTNAME***.
  bind.name_servers.1 = ns2.***HOSTNAME***.
  bind.glue_records.0.ns = ns
  bind.glue_records.0.class = A
  bind.glue_records.0.ip = ***IP_0***
bind.glue_records.1.ns = ns2
  bind.glue_records.1.class = AAAA
  bind.glue_records.1.ip = ***IP_1***
  bind.ips_v4.0 = ***IP_0***
  bind.ips_v6.0 = ***IP_1***
  admin.username = keyadmin
  admin.password = ***KH_ADMIN_PASS***
  admin.email = admin@domain.com
  phpmyadmin.password = ***PMA_PASS***
  phpmyadmin.blowfishsecret = ***PMA_CRYPT***
  roundcube.product_name = KeyHelp Webmail
  roundcube.support_url =
  roundcube.password = ***RC_PASS***
  roundcube.plugins = 'managesieve','password','markasjunk','keyhelp_sync_identities'
  roundcube.plugins_db = managesieve, password, markasjunk, keyhelp_sync_identities
  roundcube.skin = elastic
  roundcube.logo =
  roundcube.logo_login =
  roundcube.logo_favicon =
  roundcube.24_byte_des_key = ***RC_CRYPT***
  roundcube.pw_length = 8
  rainloop.product_name = KeyHelp Webmail
  rainloop.password = ***RL_PASS***
  rainloop.language = en
  snappymail.product_name = KeyHelp Webmail

The error I get there:

Code: Select all

perl: warning: Please check that your locale settings:
                LANGUAGE = (unset),
                LC_ALL = (unset),
                LC_CTYPE = "UTF-8",
                LC_TERMINAL = "iTerm2",
                LANG = "en_US.UTF-8"


and

/etc/fstab

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).
#
# systemd generates mount units based on this file, see systemd.mount(5).
# Please run 'systemctl daemon-reload' after making changes here.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/vda3 during installation
UUID=ce1e50b7-51ad-4707-a483-8003a82ef2a1     /     xfs     defaults,usrquota,grpquota     0     0
# /boot/efi was on /dev/vda2 during installation
UUID=9D15-2D5E  /boot/efi       vfat    umask=0077      0       1
/dev/sr0        /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/sr1        /media/cdrom1   udf,iso9660 user,noauto     0       0
User avatar
Jolinar
Community Moderator
Posts: 3610
Joined: Sat 30. Jan 2016, 07:11
Location: Weimar (Thüringen)
Contact:

Re: error creating new user

Post by Jolinar »

This is not the complete content of /var/log/keyhelp/install.log
Wenn jemand inkompetent ist, dann kann er nicht wissen, daß er inkompetent ist. (David Dunning)

Data Collector für Community Support
___
Ich verwende zwei verschiedene Schriftfarben in meinen Beiträgen /
I use two different font colors in my posts:
  • In dieser Farbe schreibe ich als Moderator und gebe moderative Hinweise oder begründe moderative Eingriffe /
    In this color, I write as a moderator and provide moderative guidance or justify moderative interventions
  • In dieser Farbe schreibe ich als Community Mitglied und teile meine private Meinung und persönlichen Ansichten mit /
    In this color, I write as a community member and share my personal opinions and views
User avatar
Florian
Keyweb AG
Posts: 1261
Joined: Wed 20. Jan 2016, 02:28

Re: error creating new user

Post by Florian »

Hallo,

some images for virtual servers do not include the mod_quotav2 modules.

Run the command

Code: Select all

quotaon /
If you get the error:

Code: Select all

quotaon: Quota format not supported in kernel
Install the package linux-image-extra-virtual

Code: Select all

apt-get install linux-image-extra-virtual
Mit freundlichen Grüßen / Best regards
Florian Cheno

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Chalipa
Posts: 22
Joined: Sun 19. Mar 2023, 04:03

Re: error creating new user

Post by Chalipa »

Jolinar wrote: Tue 22. Aug 2023, 14:49 This is not the complete content of /var/log/keyhelp/install.log
It's 3522 lines of logs, shall i paste them all?

Florian wrote: Tue 22. Aug 2023, 14:58 Hallo,

some images for virtual servers do not include the mod_quotav2 modules.

Run the command

Code: Select all

quotaon /
If you get the error:

Code: Select all

quotaon: Quota format not supported in kernel
Install the package linux-image-extra-virtual

Code: Select all

apt-get install linux-image-extra-virtual
Hi,

I get:

Code: Select all

quotaon /
quotaon: Mountpoint (or device) / not found or has no quota enabled
User avatar
Jolinar
Community Moderator
Posts: 3610
Joined: Sat 30. Jan 2016, 07:11
Location: Weimar (Thüringen)
Contact:

Re: error creating new user

Post by Jolinar »

Chalipa wrote: Tue 22. Aug 2023, 15:52 It's 3522 lines of logs, shall i paste them all?
You could attach it as a file attachment to your post...
Wenn jemand inkompetent ist, dann kann er nicht wissen, daß er inkompetent ist. (David Dunning)

Data Collector für Community Support
___
Ich verwende zwei verschiedene Schriftfarben in meinen Beiträgen /
I use two different font colors in my posts:
  • In dieser Farbe schreibe ich als Moderator und gebe moderative Hinweise oder begründe moderative Eingriffe /
    In this color, I write as a moderator and provide moderative guidance or justify moderative interventions
  • In dieser Farbe schreibe ich als Community Mitglied und teile meine private Meinung und persönlichen Ansichten mit /
    In this color, I write as a community member and share my personal opinions and views
User avatar
24unix
Posts: 1643
Joined: Sun 21. Jun 2020, 17:16
Location: Kollmar
Contact:

Re: error creating new user

Post by 24unix »

Chalipa wrote: Tue 22. Aug 2023, 15:52 It's 3522 lines of logs, shall i paste them all?
Pasted stuff, even if marked as code, is hard to read if it is long text.

Save it into a *txt file and attach it.

However, you need to enable quota.

Jolinar was faster … however, I already typed it …
mfg Micha
--
If Bill Gates had a nickel for every time Windows crashed …
… oh wait, he does.
User avatar
Florian
Keyweb AG
Posts: 1261
Joined: Wed 20. Jan 2016, 02:28

Re: error creating new user

Post by Florian »

Hallo,

regarding the fstab you are using xfs filesystem. The quota handling is different to ext4
Mit freundlichen Grüßen / Best regards
Florian Cheno

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Chalipa
Posts: 22
Joined: Sun 19. Mar 2023, 04:03

Re: error creating new user

Post by Chalipa »

24unix wrote: Tue 22. Aug 2023, 15:58
Chalipa wrote: Tue 22. Aug 2023, 15:52 It's 3522 lines of logs, shall i paste them all?
Pasted stuff, even if marked as code, is hard to read if it is long text.

Save it into a *txt file and attach it.

However, you need to enable quota.

Jolinar was faster … however, I already typed it …

Getting permission error, downloading it.

How do i convert it to txt?
User avatar
Jolinar
Community Moderator
Posts: 3610
Joined: Sat 30. Jan 2016, 07:11
Location: Weimar (Thüringen)
Contact:

Re: error creating new user

Post by Jolinar »

Chalipa wrote: Tue 22. Aug 2023, 16:09 How do i convert it to txt?
You can simply rename the file.
Wenn jemand inkompetent ist, dann kann er nicht wissen, daß er inkompetent ist. (David Dunning)

Data Collector für Community Support
___
Ich verwende zwei verschiedene Schriftfarben in meinen Beiträgen /
I use two different font colors in my posts:
  • In dieser Farbe schreibe ich als Moderator und gebe moderative Hinweise oder begründe moderative Eingriffe /
    In this color, I write as a moderator and provide moderative guidance or justify moderative interventions
  • In dieser Farbe schreibe ich als Community Mitglied und teile meine private Meinung und persönlichen Ansichten mit /
    In this color, I write as a community member and share my personal opinions and views
User avatar
Alexander
Keyweb AG
Posts: 3842
Joined: Wed 20. Jan 2016, 02:23

Re: error creating new user

Post by Alexander »

Regarding the XFS file system - read the link below for 'How to setup quota in combination with a XFS file system'.
Or switch to ext4 file system straight away (recommended).

It's from the German area of this forum, but I prepared a Google Translate link for you:

https://community-keyhelp-de.translate. ... r_pto=wapp

Jolinar wrote: Tue 22. Aug 2023, 16:12
Chalipa wrote: Tue 22. Aug 2023, 16:09 How do i convert it to txt?
You can simply rename the file.
@Chalipa, because of this statement, i would recommend you are asking your provider or a more experienced person, to help you with the above link / switch.
Mit freundlichen Grüßen / Best regards
Alexander Mahr

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
User avatar
Florian
Keyweb AG
Posts: 1261
Joined: Wed 20. Jan 2016, 02:28

Re: error creating new user  [SOLVED]

Post by Florian »

Hallo,

OK I tested it. It works like discussed in the other thread

1. Open /etc/default/grub

2. Change the line

Code: Select all

GRUB_CMDLINE_LINUX=""
to

Code: Select all

GRUB_CMDLINE_LINUX="rootflags=usrquota,grpquota"
3. run update-grub

4. reboot
Mit freundlichen Grüßen / Best regards
Florian Cheno

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Post Reply