Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mySQL fails to start
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
ONEEYEMAN
Advocate
Advocate


Joined: 01 Mar 2005
Posts: 3672

PostPosted: Fri Jan 10, 2025 4:33 am    Post subject: mySQL fails to start Reply with quote

Hi, ALL,
Code:

 * Making Convenience links for mysqlcheck multi-call binary
 * Building default configuration ...
 * Adjusting to prefix /
 *   my.cnf ...                                                                                  [ ok ]
 * Adjusting to prefix /
 *   50-distro-client.cnf ...                                                                    [ ok ]
 * Adjusting to prefix /
 *   my.cnf.ok ...                                                                               [ ok ]
>>> Completed installing dev-db/mysql-5.7.41 into /var/tmp/portage/dev-db/mysql-5.7.41/image

 * Final size of build directory: 854456 KiB (834.4 MiB)
 * Final size of installed tree:  139912 KiB (136.6 MiB)

strip: x86_64-pc-linux-gnu-strip --strip-unneeded -N __gentoo_check_ldflags__ -R .comment -R .GCC.command.line -R .note.gnu.gold-version
   /usr/lib64/mysql/plugin/ha_example.so
   /usr/bin/myisam_ftdump
   /usr/bin/myisamlog
   /usr/bin/myisamchk
   /usr/bin/myisampack
   /usr/lib64/mysql/plugin/adt_null.so
   /usr/lib64/mysql/plugin/test_security_context.so
   /usr/lib64/mysql/plugin/auth.so
   /usr/lib64/mysql/plugin/auth_test_plugin.so
   /usr/lib64/mysql/plugin/qa_auth_interface.so
   /usr/lib64/mysql/plugin/qa_auth_server.so
   /usr/lib64/mysql/plugin/qa_auth_client.so
   /usr/lib64/mysql/plugin/mysql_no_login.so
   /usr/lib64/mysql/plugin/auth_socket.so
   /usr/lib64/mysql/plugin/connection_control.so
   /usr/lib64/mysql/plugin/libdaemon_example.so
   /usr/lib64/mysql/plugin/mypluglib.so
   /usr/lib64/mysql/plugin/keyring_file.so
   /usr/lib64/mysql/plugin/validate_password.so
   /usr/lib64/mysql/plugin/replication_observers_example_plugin.so
   /usr/lib64/mysql/plugin/rewrite_example.so
   /usr/lib64/mysql/plugin/rewriter.so
   /usr/lib64/mysql/plugin/semisync_master.so
   /usr/lib64/mysql/plugin/semisync_slave.so
   /usr/lib64/mysql/plugin/libtest_session_in_thd.so
   /usr/lib64/mysql/plugin/libtest_x_sessions_init.so
   /usr/lib64/mysql/plugin/libtest_x_sessions_deinit.so
   /usr/lib64/mysql/plugin/libtest_session_detach.so
   /usr/lib64/mysql/plugin/libtest_session_info.so
   /usr/lib64/mysql/plugin/libtest_sql_complex.so
   /usr/lib64/mysql/plugin/libtest_sql_all_col_types.so
   /usr/lib64/mysql/plugin/libtest_sql_2_sessions.so
   /usr/lib64/mysql/plugin/libtest_sql_cmds_1.so
   /usr/lib64/mysql/plugin/libtest_sql_processlist.so
   /usr/lib64/mysql/plugin/libtest_sql_shutdown.so
   /usr/lib64/mysql/plugin/libtest_sql_views_triggers.so
   /usr/lib64/mysql/plugin/libtest_sql_stored_procedures_functions.so
   /usr/lib64/mysql/plugin/libtest_sql_commit.so
   /usr/lib64/mysql/plugin/libtest_sql_lock.so
   /usr/lib64/mysql/plugin/libtest_sql_sqlmode.so
   /usr/lib64/mysql/plugin/libtest_sql_replication.so
   /usr/lib64/mysql/plugin/libtest_sql_errors.so
   /usr/lib64/mysql/plugin/libtest_framework.so
   /usr/lib64/mysql/plugin/libtest_services.so
   /usr/lib64/mysql/plugin/libtest_services_threaded.so
   /usr/lib64/mysql/plugin/test_udf_services.so
   /usr/lib64/mysql/plugin/version_token.so
   /usr/bin/resolveip
   /usr/bin/replace
   /usr/bin/innochecksum
   /usr/bin/resolve_stack_dump
   /usr/lib64/libmysqlservices.a
   /usr/bin/mysql
   /usr/bin/mysql_upgrade
   /usr/bin/mysqltest
   /usr/bin/mysqlcheck
   /usr/bin/mysqlimport
   /usr/bin/mysqldump
   /usr/bin/mysqlshow
   /usr/bin/mysql_plugin
   /usr/bin/mysqlbinlog
   /usr/bin/mysqladmin
   /usr/bin/mysqlslap
   /usr/bin/mysql_config_editor
   /usr/bin/mysql_secure_installation
   /usr/bin/mysql_install_db
   /usr/bin/mysql_ssl_rsa_setup
   /usr/bin/mysql_client_test
   /usr/bin/mysqlpump
   /usr/sbin/mysqld
   /usr/bin/mysql_tzinfo_to_sql
   /usr/lib64/mysql/plugin/udf_example.so
   /usr/lib64/mysql/plugin/locking_service.so

>>> Installing (1 of 1) dev-db/mysql-5.7.41::gentoo
 *
 * If you are upgrading major versions, you should run the
 * mysql_upgrade tool.
 *
 *
 * This version of mysql reorganizes the configuration from a single my.cnf
 * to several files in /etc/mysql/mysql.d.
 * Please backup any changes you made to /etc/mysql/my.cnf
 * and add them as a new file under /etc/mysql/mysql.d with a .cnf extension.
 * You may have as many files as needed and they are read alphabetically.
 * Be sure the options have the appropriate section headers, i.e. [mysqld].
 *

>>> Completed (1 of 1) dev-db/mysql-5.7.41::gentoo

 * Messages for package dev-db/mysql-5.7.41:

 * If you are upgrading major versions, you should run the
 * mysql_upgrade tool.
 * This version of mysql reorganizes the configuration from a single my.cnf
 * to several files in /etc/mysql/mysql.d.
 * Please backup any changes you made to /etc/mysql/my.cnf
 * and add them as a new file under /etc/mysql/mysql.d with a .cnf extension.
 * You may have as many files as needed and they are read alphabetically.
 * Be sure the options have the appropriate section headers, i.e. [mysqld].

 * GNU info directory index is up-to-date.

 * IMPORTANT: config file '/etc/portage/package.keywords' needs updating.
 * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
 * sections of the emerge man page to learn how to update config files.
WaylandGnome /home/igor/dbhandler/Debug # emerge --config =dev-db/mysql-5.7.41
/usr/lib/python3.11/site-packages/portage/package/ebuild/_config/KeywordsManager.py:86: UserWarning: /etc/portage/package.keywords is deprecated, use /etc/portage/package.accept_keywords instead
  warnings.warn(


Configuring pkg...


 * Detected settings:
 * ==================
 * MySQL User:            mysql
 * MySQL Group:            mysql
 * MySQL DATA directory:      /var/lib/mysql
 * MySQL TMP directory:         /tmp
 * PID DIR:            /run/mysqld
 * Install db log:         /tmp/install_db.132111251.log
 * Install server log:         /tmp/install_mysqld.111139211.log
 * Trying to get password for mysql 'root' user from 'mysql' section ...
 * Trying to get password for mysql 'root' user from 'client' section ...

 * No password for mysql 'root' user was specified via environment
 * variable MYSQL_ROOT_PASSWORD and no password was found in config
 * file like '/root/.my.cnf'.
 * To continue please provide a password for the mysql 'root' user
 * now on console:
 * NOTE: Please avoid ["'\_%] characters in the password!
    >
 * Retype the password
    >

 * Initializing mysql data directory: /usr/sbin/mysqld --loose-skip-host-cache --loose-skip-name-resolve --loose-skip-networking --loose-skip-slave-start --loose-skip-federated --loose-skip-ssl --loose-skip-log-bin --loose-skip-relay-log --loose-skip-slow-query-log --loose-skip-external-locking --loose-skip-log-slave-updates --initialize-insecure --init-file='/tmp/tz.125623213.sql' --basedir='/usr' --datadir='/var/lib/mysql' --tmpdir='/tmp' --log-error='/tmp/install_db.132111251.log' --user=mysql
/var/tmp/portage/dev-db/mysql-5.7.41/temp/environment: line 3774: /tmp/install_db.132111251.log: Permission denied
 * ERROR: dev-db/mysql-5.7.41::gentoo failed (config phase):
 *   Failed to initialize mysql data directory. Please review '/tmp/install_db.132111251.log'!
 *
 * Call stack:
 *     ebuild.sh, line 136:  Called pkg_config
 *   environment, line 3777:  Called die
 * The specific snippet of code:
 *           die "Failed to initialize ${PN} data directory. Please review '${mysql_install_log}'!";
 *
 * If you need support, post the output of `emerge --info '=dev-db/mysql-5.7.41::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-db/mysql-5.7.41::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-db/mysql-5.7.41/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-db/mysql-5.7.41/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-db/mysql-5.7.41/empty'
 * S: '/var/tmp/portage/dev-db/mysql-5.7.41/work/mysql-5.7.41'

WaylandGnome /home/igor/dbhandler/Debug # rc-service mysql start
 * Checking mysqld configuration for mysql ...                                                    [ ok ]
 * Starting mysql ...
 * You don't appear to have a server package installed yet.
 * ERROR: mysql failed to start
WaylandGnome /home/igor/dbhandler/Debug #


What could be the issue?

It seems to compile and install OK, but configuring/starting fails...

Thank you.
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2623

PostPosted: Fri Jan 10, 2025 4:56 am    Post subject: Reply with quote

It would be nice if you look at what portage tells you, if not to try to figure it out on your own, at least to help your helpers:

Code:
 * ERROR: dev-db/mysql-5.7.41::gentoo failed (config phase):
 *   Failed to initialize mysql data directory. Please review '/tmp/install_db.132111251.log'!


Best Regards,
Georgi
Back to top
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1841
Location: Germany

PostPosted: Fri Jan 10, 2025 6:31 am    Post subject: Reply with quote

Quote:
/var/tmp/portage/dev-db/mysql-5.7.41/temp/environment: line 3774: /tmp/install_db.132111251.log: Permission denied


As which user do you run the emerge command? And please tell us the exact command you did use.
_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2623

PostPosted: Fri Jan 10, 2025 9:48 am    Post subject: Reply with quote

Banana wrote:
Quote:
/var/tmp/portage/dev-db/mysql-5.7.41/temp/environment: line 3774: /tmp/install_db.132111251.log: Permission denied


As which user do you run the emerge command? And please tell us the exact command you did use.


To my knowledge, it should run under mysql user, so I suspect incorrect permissions on /tmp.

Best Regards,
Georgi
Back to top
View user's profile Send private message
ONEEYEMAN
Advocate
Advocate


Joined: 01 Mar 2005
Posts: 3672

PostPosted: Sat Jan 11, 2025 5:40 am    Post subject: Reply with quote

Hi,
logrusx wrote:

It would be nice if you look at what portage tells you, if not to try to figure it out on your own, at least to help your helpers:

Code:

 * ERROR: dev-db/mysql-5.7.41::gentoo failed (config phase):
 *   Failed to initialize mysql data directory. Please review '/tmp/install_db.132111251.log'!


Best Regards,
Georgi


Code:

WaylandGnome /home/igor/wx_copy # ls -la /tmp/
total 3252
drwxrwxrwt 11 root    root       4096 Jan 10 23:02 .
drwxr-xr-x 21 root    root       4096 Aug 21  2021 ..
srwxrwxrwx  1 igor    igor          0 Nov 16 20:02 dbus-eIgntLHEHI
srwxr-xr-x  1 igor    igor          0 Jan 10 23:02 dbus-HYfsw2T1
srw-rw-rw-  1 root    root          0 Nov 16 20:02 dbus-UKItl7V9
srw-rw-rw-  1 root    root          0 Nov 16 20:02 dbus-yflt0M4U
drwx------  2 igor    igor       4096 Dec  4 21:14 dhcpcd-igor
drwxrwxrwt  2 root    root       4096 Nov 16 20:01 .font-unix
-rw-------  1 igor    igor          1 Dec 12 21:54 garbage0yyrfS
-rw-------  1 igor    igor       1806 Dec 12 22:45 garbagejUwP3J
-rw-------  1 igor    igor       1806 Dec 12 21:54 garbageloGVlM
-rw-------  1 igor    igor          2 Dec 12 22:45 garbageqBb0Xk
-rw-------  1 igor    igor         42 Dec 12 22:45 garbager5B2br
-rw-------  1 igor    igor          1 Dec 12 22:45 garbagesVQFmz
-rw-------  1 igor    igor          6 Dec 12 22:45 garbageU66hEm
-rw-------  1 igor    igor          2 Dec 12 21:54 garbageWwaFAj
-rw-------  1 igor    igor         42 Dec 12 21:54 garbagex5pvUh
-rw-------  1 igor    igor          6 Dec 12 21:54 garbagexGFlFz
drwxrwxrwt  2 root    root       4096 Nov 16 20:02 .ICE-unix
-rw-r--r--  1 mysql   root          0 Jan  9 22:28 install_db.132111251.log
-rw-r--r--  1 mysql   root          0 Jan  9 20:37 install_db.361811321.log
-rw-r--r--  1 mysql   root          0 Jan  9 22:28 install_mysqld.111139211.log
-rw-r--r--  1 mysql   root          0 Jan  9 20:37 install_mysqld.511323115.log
drwxrwxr-x  2 portage portage    4096 Nov 16 20:01 portage
drwx------  2 igor    igor       4096 Nov 16 20:02 ssh-XXXXXXyKGW0K
drwx------  2 igor    igor       4096 Dec 20 12:13 Temp-204e4dce-7ae7-4061-98a7-02c745548045
-rw-r--r--  1 root    root    1620537 Jan  9 22:28 tz.125623213.sql
-rw-r--r--  1 root    root    1620537 Jan  9 20:37 tz.151231311.sql
drwx------  2 igor    igor       4096 Nov 29 09:23 .vbox-igor-ipc
srwxr-xr-x  1 root    root          0 Nov 16 20:02 wpa_ctrl_1707-1
drwxrwxrwt  2 root    root       4096 Nov 16 20:02 .X11-unix
drwxrwxrwt  2 root    root       4096 Nov 16 20:01 .XIM-unix
WaylandGnome /home/igor/wx_copy #


Looks like the file is not created...

Thank you.
Back to top
View user's profile Send private message
ONEEYEMAN
Advocate
Advocate


Joined: 01 Mar 2005
Posts: 3672

PostPosted: Sat Jan 11, 2025 5:44 am    Post subject: Reply with quote

Hi,
Banana wrote:

Quote:
/var/tmp/portage/dev-db/mysql-5.7.41/temp/environment: line 3774: /tmp/install_db.132111251.log: Permission denied


As which user do you run the emerge command? And please tell us the exact command you did use.


I ran it under "root".
And the command was:

emerge --config =dev-db/mysql-5.7.41

Thank you.
Back to top
View user's profile Send private message
ONEEYEMAN
Advocate
Advocate


Joined: 01 Mar 2005
Posts: 3672

PostPosted: Sat Jan 11, 2025 5:48 am    Post subject: Reply with quote

Hi,
logrusx wrote:

Banana wrote:

Quote:

/var/tmp/portage/dev-db/mysql-5.7.41/temp/environment: line 3774: /tmp/install_db.132111251.log: Permission denied


As which user do you run the emerge command? And please tell us the exact command you did use.


To my knowledge, it should run under mysql user, so I suspect incorrect permissions on /tmp.

Best Regards,
Georgi


WiKi setup guide doesn't say anything about running it under any user other than root...

Thank you.
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2623

PostPosted: Sat Jan 11, 2025 6:33 am    Post subject: Reply with quote

ONEEYEMAN wrote:
Hi,
logrusx wrote:

Banana wrote:

Quote:

/var/tmp/portage/dev-db/mysql-5.7.41/temp/environment: line 3774: /tmp/install_db.132111251.log: Permission denied


As which user do you run the emerge command? And please tell us the exact command you did use.


To my knowledge, it should run under mysql user, so I suspect incorrect permissions on /tmp.

Best Regards,
Georgi


WiKi setup guide doesn't say anything about running it under any user other than root...

Thank you.


MySQL runs under myself. Of course you should run emerge as root. Check if myself user can write to /tmp.
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3877
Location: Rasi, Finland

PostPosted: Sat Jan 11, 2025 10:26 am    Post subject: Reply with quote

Does /var/tmp/portage/dev-db/mysql-5.7.41/temp/build.log exist? If it does, please paste its contents. Maybe it'll reveal more.
_________________
..: Zucca :..

My gentoo installs:
init=/sbin/openrc-init
-systemd -logind -elogind seatd

Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2623

PostPosted: Sat Jan 11, 2025 10:48 am    Post subject: Reply with quote

Zucca wrote:
Does /var/tmp/portage/dev-db/mysql-5.7.41/temp/build.log exist? If it does, please paste its contents. Maybe it'll reveal more.


This is the emerge --config where MySQL is initially configured. The portage temp for should already be cleaned up as the package is already emerged.

Best Regards,
Georgi
Back to top
View user's profile Send private message
ONEEYEMAN
Advocate
Advocate


Joined: 01 Mar 2005
Posts: 3672

PostPosted: Sat Jan 11, 2025 11:20 pm    Post subject: Reply with quote

Hi,
Zucca wrote:

Does /var/tmp/portage/dev-db/mysql-5.7.41/temp/build.log exist? If it does, please paste its contents. Maybe it'll reveal more.


Yes - it does exist:

Code:

WaylandGnome /home/igor/dbhandler/Debug # ls -la /var/tmp/portage/dev-db/mysql-5.7.41/temp/build.log
-rw-rw---- 1 portage portage 2676 Jan  9 22:28 /var/tmp/portage/dev-db/mysql-5.7.41/temp/build.log


And this is its contents:

Code:

WaylandGnome /home/igor/dbhandler/Debug # cat /var/tmp/portage/dev-db/mysql-5.7.41/temp/build.log

 * Detected settings:
 * ==================
 * MySQL User:            mysql
 * MySQL Group:            mysql
 * MySQL DATA directory:      /var/lib/mysql
 * MySQL TMP directory:         /tmp
 * PID DIR:            /run/mysqld
 * Install db log:         /tmp/install_db.132111251.log
 * Install server log:         /tmp/install_mysqld.111139211.log
 * Trying to get password for mysql 'root' user from 'mysql' section ...
 * Trying to get password for mysql 'root' user from 'client' section ...

 * No password for mysql 'root' user was specified via environment
 * variable MYSQL_ROOT_PASSWORD and no password was found in config
 * file like '/root/.my.cnf'.
 * To continue please provide a password for the mysql 'root' user
 * now on console:
 * NOTE: Please avoid ["'\_%] characters in the password!
    >
 * Retype the password
    >

 * Initializing mysql data directory: /usr/sbin/mysqld --loose-skip-host-cache --loose-skip-name-resolve --loose-skip-networking --loose-skip-slave-start --loose-skip-federated --loose-skip-ssl --loose-skip-log-bin --loose-skip-relay-log --loose-skip-slow-query-log --loose-skip-external-locking --loose-skip-log-slave-updates --initialize-insecure --init-file='/tmp/tz.125623213.sql' --basedir='/usr' --datadir='/var/lib/mysql' --tmpdir='/tmp' --log-error='/tmp/install_db.132111251.log' --user=mysql
/var/tmp/portage/dev-db/mysql-5.7.41/temp/environment: line 3774: /tmp/install_db.132111251.log: Permission denied
 * ERROR: dev-db/mysql-5.7.41::gentoo failed (config phase):
 *   Failed to initialize mysql data directory. Please review '/tmp/install_db.132111251.log'!
 *
 * Call stack:
 *     ebuild.sh, line 136:  Called pkg_config
 *   environment, line 3777:  Called die
 * The specific snippet of code:
 *           die "Failed to initialize ${PN} data directory. Please review '${mysql_install_log}'!";
 *
 * If you need support, post the output of `emerge --info '=dev-db/mysql-5.7.41::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-db/mysql-5.7.41::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-db/mysql-5.7.41/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-db/mysql-5.7.41/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-db/mysql-5.7.41/empty'
 * S: '/var/tmp/portage/dev-db/mysql-5.7.41/work/mysql-5.7.41'
WaylandGnome /home/igor/dbhandler/Debug #


Thank you.
Back to top
View user's profile Send private message
ONEEYEMAN
Advocate
Advocate


Joined: 01 Mar 2005
Posts: 3672

PostPosted: Sat Jan 11, 2025 11:25 pm    Post subject: Reply with quote

logrusx wrote:

Banana wrote:

Quote:

/var/tmp/portage/dev-db/mysql-5.7.41/temp/environment: line 3774: /tmp/install_db.132111251.log: Permission denied


As which user do you run the emerge command? And please tell us the exact command you did use.


To my knowledge, it should run under mysql user, so I suspect incorrect permissions on /tmp.

Best Regards,
Georgi


I think everything here is good, right:

Code:

WaylandGnome /home/igor/dbhandler/Debug # ls -la /
total 202248
drwxr-xr-x  21 root root      4096 Aug 21  2021 .
drwxr-xr-x  21 root root      4096 Aug 21  2021 ..
drwxr-xr-x   2 root root      4096 Apr  3  2024 bin
drwxr-xr-x   3 root root      4096 Jun 16  2024 boot
drwxr-xr-x  16 root root      3580 Dec  5 23:11 dev
drwxr-xr-x  79 root root      4096 Jan  9 21:39 etc
drwxr-xr-x   3 root root      4096 Aug 16  2021 home
drwxr-xr-x  12 root root      4096 Jun 24  2024 lib
drwxr-xr-x   6 root root      4096 Dec  8 11:35 lib64
drwx------   2 root root     16384 Aug  9  2021 lost+found
drwxr-xr-x   2 root root      4096 Aug  8  2021 media
drwxr-xr-x   4 root root      4096 Aug 29  2021 mnt
-rw-r--r--   1 root root      9865 Aug 21  2021 modules_loaded
drwxr-xr-x   2 root root      4096 Aug  8  2021 opt
dr-xr-xr-x 283 root root         0 Nov 16 14:01 proc
drwx------   6 root root      4096 Jan 11 16:49 root
drwxr-xr-x  20 root root       680 Dec  8 11:48 run
drwxr-xr-x   2 root root      4096 Jun 24  2024 sbin
-rw-r--r--   1 root root 207004312 Aug  9  2021 stage3-amd64-openrc-20210808T170546Z.tar.xz
dr-xr-xr-x  13 root root         0 Nov 16 14:01 sys
drwxrwxrwt  11 root root      4096 Jan 11 16:45 tmp
drwxr-xr-x  12 root root      4096 Aug  8  2021 usr
drwxr-xr-x  10 root root      4096 Dec  8 11:48 var
WaylandGnome /home/igor/dbhandler/Debug #



Thank you.
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2623

PostPosted: Sun Jan 12, 2025 6:03 am    Post subject: Reply with quote

Well, I'm out of ideas. But I think it's worth posting your emerge info. I know I can find it from one of your other threads but I'm on using my phone right now and don't feel like digging for it.

Best Regards,
Georgi
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2623

PostPosted: Sun Jan 12, 2025 6:04 am    Post subject: Reply with quote

logrusx wrote:
Zucca wrote:
Does /var/tmp/portage/dev-db/mysql-5.7.41/temp/build.log exist? If it does, please paste its contents. Maybe it'll reveal more.


This is the emerge --config where MySQL is initially configured. The portage temp for should already be cleaned up as the package is already emerged.

Best Regards,
Georgi


I stand corrected. I didn't think emerge would use the same temp for that too .

Best Regards,
Georgi
Back to top
View user's profile Send private message
ONEEYEMAN
Advocate
Advocate


Joined: 01 Mar 2005
Posts: 3672

PostPosted: Sun Jan 12, 2025 6:56 am    Post subject: Reply with quote

Hi.
As requested:

Code:

WaylandGnome /home/igor/wx_copy # emerge --info
Portage 3.0.61 (python 3.11.8-final-0, default/linux/amd64/17.1/desktop/gnome, gcc-13, glibc-2.38-r10, 6.6.21-gentoo x86_64)
=================================================================
System uname: Linux-6.6.21-gentoo-x86_64-AMD_FX-9800P_RADEON_R7,_12_COMPUTE_CORES_4C+8G-with-glibc2.38
KiB Mem:     7603552 total,    482232 free
KiB Swap:   16777212 total,  16389360 free
Timestamp of repository gentoo: Sun, 24 Mar 2024 04:00:00 +0000
Head commit of repository gentoo: abf0318b44807782dcb9a636e321b9304e3df955
sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.41 p5) 2.41.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.71-r6::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.28.3::gentoo
dev-build/libtool:         2.4.7-r2::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.3.2::gentoo
dev-lang/perl:             5.38.2-r2::gentoo
dev-lang/python:           3.11.8_p1::gentoo, 3.12.2_p1::gentoo
dev-lang/rust:             1.75.0-r1::gentoo
sys-apps/baselayout:       2.14-r2::gentoo
sys-apps/openrc:           0.53::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.41-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           17.0.6::gentoo
sys-devel/gcc:             13.2.1_p20240210::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/lld:             17.0.6::gentoo
sys-devel/llvm:            17.0.6::gentoo
sys-kernel/linux-headers:  6.6::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r10::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts:

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE @BINARY-REDISTRIBUTABLE PUEL PUEL-11"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j5"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac acl acpi alsa amd64 branding bzip2 cairo cdda cdr cli colord crypt dbus dri dts dvd dvdr eds elogind encode evo exif flac fortran gdbm gif gnome gnome-keyring gnome-online-accounts gnome-shell gpm gstreamer gtk gui iconv icu introspection ipv6 jpeg keyring lcms libnotify libtirpc mad mng mp3 mp4 mpeg multilib nautilus ncurses networkmanager nls ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio readline sdl seccomp sound spell split-usr ssl startup-notification svg sysprof test-rust tiff tracker truetype udev udisks unicode upower usb vorbis vpx vulkan wxwidgets x264 xattr xcb xft xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS



Thank you.
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2623

PostPosted: Sun Jan 12, 2025 6:39 pm    Post subject: Reply with quote

What happens if you try to run emerge --config =dev-db/mysql-5.7.41 again? Check the system logs as well, there might be a clue there. Also, is it absolutely necessary to use MySQL 5.x?

Best Regards,
Georgi
Back to top
View user's profile Send private message
ONEEYEMAN
Advocate
Advocate


Joined: 01 Mar 2005
Posts: 3672

PostPosted: Sat Jan 18, 2025 12:36 am    Post subject: Reply with quote

Hi,
I tried it again and it failed again with the same error.
/var/log/mysql directory is empty.

No other files were updated in /var/log.

Thank you.
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2623

PostPosted: Sat Jan 18, 2025 5:30 am    Post subject: Reply with quote

There's something deeper going on here for which I'm clueless. Maybe I'll try to compile it in the beginning of next week and see if I have the same issue.

Best Regards,
Georgi
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum