mysql-service-type is not starting

  • Open
  • quality assurance status badge
Details
One participant
  • Dmitry
Owner
unassigned
Submitted by
Dmitry
Severity
normal
D
D
Dmitry wrote on 18 Dec 2024 18:46
(address . bug-guix@gnu.org)
6azr2lea2enq4vnnvbmptiyyc56ts2yh7c7lzxkcasasfuknj2@jb2dsmlzsynr
I'm trying to use a simple system with `mysql-service-type` with "guix system container", but I found out that `mysql-service-type` is not starting.

$> guix system container mysql-test-system.scm


system file: cat mysql-test-system.scm
(use-modules (gnu)
(gnu services)
(gnu services shepherd))

(use-service-modules databases)
(operating-system
(locale "en_US.utf8")
(timezone "Europe/Berlin")
(host-name "example.org")
(services (append %base-services
(list
(service mysql-service-type))))
(bootloader (bootloader-configuration
(bootloader grub-efi-bootloader)
(targets (list "/boot/efi"))
(keyboard-layout keyboard-layout)))
(file-systems %base-file-systems))



ERROR: cat /var/log/mysqld.log
2024-12-18 18:01:51 chown: cannot access '/auth_pam_tool_dir/auth_pam_tool': No such file or directory
2024-12-18 18:01:51 Couldn't set an owner to '/auth_pam_tool_dir/auth_pam_tool'.
2024-12-18 18:01:51 It must be root, the PAM authentication plugin doesn't work otherwise..
2024-12-18 18:01:51
2024-12-18 18:01:51 chown: cannot access '/auth_pam_tool_dir': No such file or directory
2024-12-18 18:01:51 Cannot change ownership of the '/auth_pam_tool_dir' directory
2024-12-18 18:01:51 to the 'mysql' user. Check that you have the necessary permissions and try again.
2024-12-18 18:01:51
2024-12-18 18:01:51 Installing MariaDB/MySQL system tables in '/var/lib/mysql' ...
2024-12-18 18:01:51 2024-12-18 18:01:51 0 [ERROR] mariadbd: Can't create/write to file '/var/lib/mysql/aria_log_control' (Errcode: 13 "Permission denied")
2024-12-18 18:01:51 2024-12-18 18:01:51 0 [ERROR] mariadbd: Got error 'Can't create file' when trying to use aria control file '/var/lib/mysql/aria_log_control'
2024-12-18 18:01:51 2024-12-18 18:01:51 0 [ERROR] Plugin 'Aria' init function returned error.
2024-12-18 18:01:51 2024-12-18 18:01:51 0 [ERROR] Plugin 'Aria' registration as a STORAGE ENGINE failed.
2024-12-18 18:01:51 2024-12-18 18:01:51 0 [ERROR] Failed to initialize plugins.
2024-12-18 18:01:51 2024-12-18 18:01:51 0 [ERROR] Aborting
2024-12-18 18:01:51 2024-12-18 18:01:51 0 [ERROR] InnoDB: Cannot open '/var/lib/mysql/ib_buffer_pool.incomplete' for writing: Permission denied
2024-12-18 18:01:51 cat: write error: Broken pipe
2024-12-18 18:01:51 cat: write error: Broken pipe
2024-12-18 18:01:51
2024-12-18 18:01:51 Installation of system tables failed! Examine the logs in
2024-12-18 18:01:51 /var/lib/mysql for more information.
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 74960@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 74960
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch