<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>36378</bug_id>
          
          <creation_ts>2019-03-25 18:53:00 +0300</creation_ts>
          <short_desc>SSL problems after installation (can&apos;t start MySQL server after replacement of the MariaDB)</short_desc>
          <delta_ts>2019-03-26 19:50:11 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>MySQL-server</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ivan Zakharyaschev">imz</reporter>
          <assigned_to name="Николай Костригин">nickel</assigned_to>
          <cc>alexey</cc>
    
    <cc>gremlin</cc>
    
    <cc>mike</cc>
    
    <cc>nickel</cc>
    
    <cc>rider</cc>
    
    <cc>shaba</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>179920</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2019-03-25 18:53:00 +0300</bug_when>
    <thetext># service mysqld start
Adjusting environment for mysqld:                                                                                                                                                                                                                                    [ DONE ]
Starting mysqld service: 2019-03-25T15:50:53.152486Z 0 [Warning] [MY-011070] [Server] &apos;Disabling symbolic links using --skip-symbolic-links (or equivalent) is the default. Consider not using this option as it&apos; is deprecated and will be removed in a future release.
2019-03-25T15:50:53.154646Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.15-alt1) starting as process 15300
2019-03-25T15:50:53.156468Z 0 [Warning] [MY-013242] [Server] --character-set-server: &apos;utf8&apos; is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous.
2019-03-25T15:50:53.156483Z 0 [Warning] [MY-013244] [Server] --collation-server: &apos;utf8_general_ci&apos; is a collation of the deprecated character set UTF8MB3. Please consider using UTF8MB4 with an appropriate collation instead.
2019-03-25T15:50:53.598899Z 0 [Warning] [MY-010069] [Server] Failed to set up SSL because of the following SSL library error: SSL_CTX_set_default_verify_paths failed
2019-03-25T15:50:53.694466Z 0 [Warning] [MY-013245] [Server] The SSL library function CRYPTO_set_mem_functions failed. This is typically caused by the SSL library already being used. As a result the SSL memory allocation will not be instrumented.
2019-03-25T15:50:53.698699Z 1 [ERROR] [MY-011011] [Server] Failed to find valid data directory.
2019-03-25T15:50:53.700525Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed.
2019-03-25T15:50:53.700737Z 0 [ERROR] [MY-010946] [Server] Failed to start mysqld daemon. Check mysqld error log.
2019-03-25T15:50:53.700680Z 0 [ERROR] [MY-010119] [Server] Aborting
2019-03-25T15:50:53.708587Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.15-alt1)  (ALT Sisyphus).
                                                                                                                                                                                                                                                                     [FAILED]
# rpm -qa &apos;*ssl*&apos;
libssl-devel-1.1.0j-alt1.x86_64
libssl10-1.0.2p-alt2.x86_64
libssl1.1-1.1.0j-alt1.x86_64
python-module-backports.ssl_match_hostname-3.5.0.1-alt1.1.x86_64
docbook-style-dsssl-1.79-alt3.noarch
openssl-1.1.0j-alt1.x86_64
python-module-passlib-1.7.1-alt1.noarch
# rpm -qa &apos;*MySQL*&apos;
MySQL-client-8.0.15-alt1.x86_64
MySQL-server-8.0.15-alt1.x86_64
MySQL-server-control-0.2-alt1.noarch
#</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>179921</commentid>
    <comment_count>1</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2019-03-25 18:55:38 +0300</bug_when>
    <thetext>The same problem after upgrading openssl:

-bash-4.3# service mysqld start
Adjusting environment for mysqld:                                                                                                                                                                                                                                    [ DONE ]
Starting mysqld service: 2019-03-25T15:53:39.135308Z 0 [Warning] [MY-011070] [Server] &apos;Disabling symbolic links using --skip-symbolic-links (or equivalent) is the default. Consider not using this option as it&apos; is deprecated and will be removed in a future release.
2019-03-25T15:53:39.137123Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.15-alt1) starting as process 1136
2019-03-25T15:53:39.138863Z 0 [Warning] [MY-013242] [Server] --character-set-server: &apos;utf8&apos; is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous.
2019-03-25T15:53:39.138879Z 0 [Warning] [MY-013244] [Server] --collation-server: &apos;utf8_general_ci&apos; is a collation of the deprecated character set UTF8MB3. Please consider using UTF8MB4 with an appropriate collation instead.
2019-03-25T15:53:39.142767Z 0 [Warning] [MY-010068] [Server] CA certificate /var/lib/mysql/ca.pem is self signed.
2019-03-25T15:53:39.165561Z 0 [Warning] [MY-013245] [Server] The SSL library function CRYPTO_set_mem_functions failed. This is typically caused by the SSL library already being used. As a result the SSL memory allocation will not be instrumented.
2019-03-25T15:53:39.169391Z 1 [ERROR] [MY-011011] [Server] Failed to find valid data directory.
2019-03-25T15:53:39.173416Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed.
2019-03-25T15:53:39.173630Z 0 [ERROR] [MY-010946] [Server] Failed to start mysqld daemon. Check mysqld error log.
2019-03-25T15:53:39.173570Z 0 [ERROR] [MY-010119] [Server] Aborting
2019-03-25T15:53:39.188598Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.15-alt1)  (ALT Sisyphus).
                                                                                                                                                                                                                                                                     [FAILED]
-bash-4.3# rpm -qa &apos;*ssl*&apos;
libssl10-1.0.2r-alt2.x86_64
libssl-devel-1.1.1b-alt1.x86_64
libssl1.1-1.1.1b-alt1.x86_64
python-module-backports.ssl_match_hostname-3.5.0.1-alt1.1.x86_64
docbook-style-dsssl-1.79-alt3.noarch
python-module-passlib-1.7.1-alt1.noarch
openssl-1.1.1b-alt1.x86_64
-bash-4.3#</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>179993</commentid>
    <comment_count>2</comment_count>
    <who name="Николай Костригин">nickel</who>
    <bug_when>2019-03-26 12:05:53 +0300</bug_when>
    <thetext>Can&apos;t reproduce on systemd virtual machine: neither systemd unit nor SysVInit script fail to start.
There are similar warnings in the log file but server stays operational for both upgrade and new installation usecase.
I&apos;ll try to analyse warning sources.

Was it a brand new installation or an upgrade?
Do you use SysVinit machine?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>180004</commentid>
    <comment_count>3</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2019-03-26 13:47:01 +0300</bug_when>
    <thetext>(In reply to comment #2)

&gt; Was it a brand new installation or an upgrade?

It was a new installation after mariadb. It replaced mariadb.

&gt; Do you use SysVinit machine?

Yes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>180033</commentid>
    <comment_count>4</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2019-03-26 18:00:51 +0300</bug_when>
    <thetext>Probably, the error is:

2019-03-25T15:53:39.169391Z 1 [ERROR] [MY-011011] [Server] Failed to find valid data directory.

It is specified by the datadir config parameter.

Probably, it is missing after installation of the package.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>180036</commentid>
    <comment_count>5</comment_count>
    <who name="Николай Костригин">nickel</who>
    <bug_when>2019-03-26 19:08:01 +0300</bug_when>
    <thetext>(В ответ на комментарий №4)
&gt; Probably, the error is:
&gt; 
&gt; 2019-03-25T15:53:39.169391Z 1 [ERROR] [MY-011011] [Server] Failed to find valid
&gt; data directory.
&gt; 
&gt; It is specified by the datadir config parameter.
&gt; 
&gt; Probably, it is missing after installation of the package.

In my case, when installing MySQL instead of previously installed MariaDB, I get the following(for systemd machine):

2019-03-26T15:21:10.981325Z 1 [ERROR] [MY-012530] [InnoDB] Unknown redo log format (103). Please follow the instructions at http://dev.mysql.com/doc/refman/8.0/en/ upgrading-downgrading.html.
2019-03-26T15:21:10.981349Z 1 [ERROR] [MY-012930] [InnoDB] Plugin initialization aborted with error Generic error.
2019-03-26T15:21:11.582280Z 1 [ERROR] [MY-011013] [Server] Failed to initialize DD Storage Engine.
2019-03-26T15:21:11.582590Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed.
2019-03-26T15:21:11.582865Z 0 [ERROR] [MY-010119] [Server] Aborting

And something like yours logs for SysV.

I guess the bug name should be changed to something like &quot;Data directory/format problems after drop in replacement of MariaDB by MySQL&quot;
All SSL issues mentioned in logs are warnings.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>180040</commentid>
    <comment_count>6</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2019-03-26 19:50:11 +0300</bug_when>
    <thetext>Что вы мучаетесь ? Современный MySQL не является 100% заменой современной MariaDB. Гарантированно работающая миграция возможна только через полный дамп содержимого базы и импорт.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>