[Solved] mythweb not working after v31 upgrade

Have a MythTV related problem? Ask for help from other MythTV users here.

Moderator: Forum Moderators

Post Reply
tonyguadagno
Junior
Posts: 46
Joined: Sat Oct 25, 2014 4:00 pm
United States of America

[Solved] mythweb not working after v31 upgrade

Post by tonyguadagno »

Hi,
I recently upgraded from v29 to v31fixes and all is working quite well, with one exception. MythWeb is throwing this:

Code: Select all

Fatal Error

!!NoTrans: The server requested authentication method unknown to the client [#2054]

Backtrace
Array
(
[0] => Array
(
[file] => /usr/share/mythtv/mythweb/classes/Database/Query/mysqlicompat.php
[line] => 65
[function] => error
[class] => Database
[object] => Database_mysqlicompat Object
(
[dbh] =>
[error] => The server requested authentication method unknown to the client [#2054]
[err] => The server requested authentication method unknown to the client
[errno] => 2054
[last_sh] => Database_Query_mysqlicompat Object
(
[dbh] =>
[query] => Array
(
[0] => SET SESSION sql_mode = "";
)

[last_query] => SET SESSION sql_mode = "";
[warnings] => Array
(
)

[num_args_needed] => 0
[num_rows] =>
[affected_rows] =>
[insert_id] =>
[db] => Database_mysqlicompat Object
*RECURSION*
)

[fatal_errors] => 1
[query_count] => 0
[query_time] => 0
[global_name] =>
[destruct_handlers] => Array
(
)

)

[type] => ->
[args] => Array
(
)

)

[1] => Array
(
[file] => /usr/share/mythtv/mythweb/classes/Database.php
[line] => 263
[function] => execute
[class] => Database_Query_mysqlicompat
[object] => Database_Query_mysqlicompat Object
(
[dbh] =>
[query] => Array
(
[0] => SET SESSION sql_mode = "";
)

[last_query] => SET SESSION sql_mode = "";
[warnings] => Array
(
)

[num_args_needed] => 0
[num_rows] =>
[affected_rows] =>
[insert_id] =>
[db] => Database_mysqlicompat Object
(
[dbh] =>
[error] => The server requested authentication method unknown to the client [#2054]
[err] => The server requested authentication method unknown to the client
[errno] => 2054
[last_sh] => Database_Query_mysqlicompat Object
*RECURSION*
[fatal_errors] => 1
[query_count] => 0
[query_time] => 0
[global_name] =>
[destruct_handlers] => Array
(
)

)

)

[type] => ->
[args] => Array
(
[0] => Array
(
)

)

)

[2] => Array
(
[file] => /usr/share/mythtv/mythweb/classes/Database.php
[line] => 124
[function] => query
[class] => Database
[object] => Database_mysqlicompat Object
(
[dbh] =>
[error] => The server requested authentication method unknown to the client [#2054]
[err] => The server requested authentication method unknown to the client
[errno] => 2054
[last_sh] => Database_Query_mysqlicompat Object
(
[dbh] =>
[query] => Array
(
[0] => SET SESSION sql_mode = "";
)

[last_query] => SET SESSION sql_mode = "";
[warnings] => Array
(
)

[num_args_needed] => 0
[num_rows] =>
[affected_rows] =>
[insert_id] =>
[db] => Database_mysqlicompat Object
*RECURSION*
)

[fatal_errors] => 1
[query_count] => 0
[query_time] => 0
[global_name] =>
[destruct_handlers] => Array
(
)

)

[type] => ->
[args] => Array
(
[0] => SET SESSION sql_mode = "";
)

)

[3] => Array
(
[file] => /usr/share/mythtv/mythweb/includes/database.php
[line] => 44
[function] => connect
[class] => Database
[type] => ::
[args] => Array
(
[0] => mythconverg
[1] => mythtv
[2] => password
[3] => localhost
[4] =>
[5] => mysqlicompat
)

)

[4] => Array
(
[file] => /usr/share/mythtv/mythweb/includes/init.php
[line] => 43
[args] => Array
(
[0] => /usr/share/mythtv/mythweb/includes/database.php
)

[function] => require_once
)

[5] => Array
(
[file] => /usr/share/mythtv/mythweb/mythweb.php
[line] => 20
[args] => Array
(
[0] => /usr/share/mythtv/mythweb/includes/init.php
)

[function] => require_once
)

)
!!

If you choose to submit a bug report please make sure to include a brief description of what you were doing, along with the following backtrace as an attachment (please don\'t just paste the whole thing into the ticket)
    datetime:  2021-03-02 16:14:15 (EST)
    errornum:  256
  error type:  User Error
error string:  !!NoTrans: The server requested authentication method unknown to the client [#2054]

Backtrace
Array
(
    [0] => Array
        (
            [file] => /usr/share/mythtv/mythweb/classes/Database/Query/mysqlicompat.php
            [line] => 65
            [function] => error
            [class] => Database
            [object] => Database_mysqlicompat Object
                (
                    [dbh] => 
                    [error] => The server requested authentication method unknown to the client [#2054]
                    [err] => The server requested authentication method unknown to the client
                    [errno] => 2054
                    [last_sh] => Database_Query_mysqlicompat Object
                        (
                            [dbh] => 
                            [query] => Array
                                (
                                    [0] => SET SESSION sql_mode = "";
                                )

                            [last_query] => SET SESSION sql_mode = "";
                            [warnings] => Array ( )
                            [num_args_needed] => 0
                            [num_rows] => 
                            [affected_rows] => 
                            [insert_id] => 
                            [db] => Database_mysqlicompat Object
 *RECURSION*
                        )

                    [fatal_errors] => 1
                    [query_count] => 0
                    [query_time] => 0
                    [global_name] => 
                    [destruct_handlers] => Array ( )
                )

            [type] => ->
            [args] => Array ( )
        )

    [1] => Array
        (
            [file] => /usr/share/mythtv/mythweb/classes/Database.php
            [line] => 263
            [function] => execute
            [class] => Database_Query_mysqlicompat
            [object] => Database_Query_mysqlicompat Object
                (
                    [dbh] => 
                    [query] => Array
                        (
                            [0] => SET SESSION sql_mode = "";
                        )

                    [last_query] => SET SESSION sql_mode = "";
                    [warnings] => Array ( )
                    [num_args_needed] => 0
                    [num_rows] => 
                    [affected_rows] => 
                    [insert_id] => 
                    [db] => Database_mysqlicompat Object
                        (
                            [dbh] => 
                            [error] => The server requested authentication method unknown to the client [#2054]
                            [err] => The server requested authentication method unknown to the client
                            [errno] => 2054
                            [last_sh] => Database_Query_mysqlicompat Object
 *RECURSION*
                            [fatal_errors] => 1
                            [query_count] => 0
                            [query_time] => 0
                            [global_name] => 
                            [destruct_handlers] => Array ( )
                        )

                )

            [type] => ->
            [args] => Array
                (
                    [0] => Array ( )
                )

        )

    [2] => Array
        (
            [file] => /usr/share/mythtv/mythweb/classes/Database.php
            [line] => 124
            [function] => query
            [class] => Database
            [object] => Database_mysqlicompat Object
                (
                    [dbh] => 
                    [error] => The server requested authentication method unknown to the client [#2054]
                    [err] => The server requested authentication method unknown to the client
                    [errno] => 2054
                    [last_sh] => Database_Query_mysqlicompat Object
                        (
                            [dbh] => 
                            [query] => Array
                                (
                                    [0] => SET SESSION sql_mode = "";
                                )

                            [last_query] => SET SESSION sql_mode = "";
                            [warnings] => Array ( )
                            [num_args_needed] => 0
                            [num_rows] => 
                            [affected_rows] => 
                            [insert_id] => 
                            [db] => Database_mysqlicompat Object
 *RECURSION*
                        )

                    [fatal_errors] => 1
                    [query_count] => 0
                    [query_time] => 0
                    [global_name] => 
                    [destruct_handlers] => Array ( )
                )

            [type] => ->
            [args] => Array
                (
                    [0] => SET SESSION sql_mode = "";
                )

        )

    [3] => Array
        (
            [file] => /usr/share/mythtv/mythweb/includes/database.php
            [line] => 44
            [function] => connect
            [class] => Database
            [type] => ::
            [args] => Array
                (
                    [0] => mythconverg
                    [1] => mythtv
                    [2] => password
                    [3] => localhost
                    [4] => 
                    [5] => mysqlicompat
                )

        )

    [4] => Array
        (
            [file] => /usr/share/mythtv/mythweb/includes/init.php
            [line] => 43
            [args] => Array
                (
                    [0] => /usr/share/mythtv/mythweb/includes/database.php
                )

            [function] => require_once
        )

    [5] => Array
        (
            [file] => /usr/share/mythtv/mythweb/mythweb.php
            [line] => 20
            [args] => Array
                (
                    [0] => /usr/share/mythtv/mythweb/includes/init.php
                )

            [function] => require_once
        )

)
!!
    filename:  /usr/share/mythtv/mythweb/classes/Database/Query/mysqlicompat.php
  error line:  66

==========================================================================

Backtrace: 

    file:  /usr/share/mythtv/mythweb/classes/Database/Query/mysqlicompat.php
    line:  66
   class:  
function:  trigger_error
    type:  
    args:  Array
(
    [0] => The server requested authentication method unknown to the client [#2054]

Backtrace
Array
(
    [0] => Array
        (
            [file] => /usr/share/mythtv/mythweb/classes/Database/Query/mysqlicompat.php
            [line] => 65
            [function] => error
            [class] => Database
            [object] => Database_mysqlicompat Object
                (
                    [dbh] => 
                    [error] => The server requested authentication method unknown to the client [#2054]
                    [err] => The server requested authentication method unknown to the client
                    [errno] => 2054
                    [last_sh] => Database_Query_mysqlicompat Object
                        (
                            [dbh] => 
                            [query] => Array
                                (
                                    [0] => SET SESSION sql_mode = "";
                                )

                            [last_query] => SET SESSION sql_mode = "";
                            [warnings] => Array ( )
                            [num_args_needed] => 0
                            [num_rows] => 
                            [affected_rows] => 
                            [insert_id] => 
                            [db] => Database_mysqlicompat Object
 *RECURSION*
                        )

                    [fatal_errors] => 1
                    [query_count] => 0
                    [query_time] => 0
                    [global_name] => 
                    [destruct_handlers] => Array ( )
                )

            [type] => ->
            [args] => Array ( )
        )

    [1] => Array
        (
            [file] => /usr/share/mythtv/mythweb/classes/Database.php
            [line] => 263
            [function] => execute
            [class] => Database_Query_mysqlicompat
            [object] => Database_Query_mysqlicompat Object
                (
                    [dbh] => 
                    [query] => Array
                        (
                            [0] => SET SESSION sql_mode = "";
                        )

                    [last_query] => SET SESSION sql_mode = "";
                    [warnings] => Array ( )
                    [num_args_needed] => 0
                    [num_rows] => 
                    [affected_rows] => 
                    [insert_id] => 
                    [db] => Database_mysqlicompat Object
                        (
                            [dbh] => 
                            [error] => The server requested authentication method unknown to the client [#2054]
                            [err] => The server requested authentication method unknown to the client
                            [errno] => 2054
                            [last_sh] => Database_Query_mysqlicompat Object
 *RECURSION*
                            [fatal_errors] => 1
                            [query_count] => 0
                            [query_time] => 0
                            [global_name] => 
                            [destruct_handlers] => Array ( )
                        )

                )

            [type] => ->
            [args] => Array
                (
                    [0] => Array ( )
                )

        )

    [2] => Array
        (
            [file] => /usr/share/mythtv/mythweb/classes/Database.php
            [line] => 124
            [function] => query
            [class] => Database
            [object] => Database_mysqlicompat Object
                (
                    [dbh] => 
                    [error] => The server requested authentication method unknown to the client [#2054]
                    [err] => The server requested authentication method unknown to the client
                    [errno] => 2054
                    [last_sh] => Database_Query_mysqlicompat Object
                        (
                            [dbh] => 
                            [query] => Array
                                (
                                    [0] => SET SESSION sql_mode = "";
                                )

                            [last_query] => SET SESSION sql_mode = "";
                            [warnings] => Array ( )
                            [num_args_needed] => 0
                            [num_rows] => 
                            [affected_rows] => 
                            [insert_id] => 
                            [db] => Database_mysqlicompat Object
 *RECURSION*
                        )

                    [fatal_errors] => 1
                    [query_count] => 0
                    [query_time] => 0
                    [global_name] => 
                    [destruct_handlers] => Array ( )
                )

            [type] => ->
            [args] => Array
                (
                    [0] => SET SESSION sql_mode = "";
                )

        )

    [3] => Array
        (
            [file] => /usr/share/mythtv/mythweb/includes/database.php
            [line] => 44
            [function] => connect
            [class] => Database
            [type] => ::
            [args] => Array
                (
                    [0] => mythconverg
                    [1] => mythtv
                    [2] => password
                    [3] => localhost
                    [4] => 
                    [5] => mysqlicompat
                )

        )

    [4] => Array
        (
            [file] => /usr/share/mythtv/mythweb/includes/init.php
            [line] => 43
            [args] => Array
                (
                    [0] => /usr/share/mythtv/mythweb/includes/database.php
                )

            [function] => require_once
        )

    [5] => Array
        (
            [file] => /usr/share/mythtv/mythweb/mythweb.php
            [line] => 20
            [args] => Array
                (
                    [0] => /usr/share/mythtv/mythweb/includes/init.php
                )

            [function] => require_once
        )

)

    [1] => 256
)

    file:  /usr/share/mythtv/mythweb/classes/Database.php
    line:  263
   class:  Database_Query_mysqlicompat
function:  execute
    type:  ->
    args:  Array
(
    [0] => Array ( )
)

    file:  /usr/share/mythtv/mythweb/classes/Database.php
    line:  124
   class:  Database
function:  query
    type:  ->
    args:  Array
(
    [0] => SET SESSION sql_mode = "";
)

    file:  /usr/share/mythtv/mythweb/includes/database.php
    line:  44
   class:  Database
function:  connect
    type:  ::
    args:  Array
(
    [0] => mythconverg
    [1] => mythtv
    [2] => password
    [3] => localhost
    [4] => 
    [5] => mysqlicompat
)

    file:  /usr/share/mythtv/mythweb/includes/init.php
    line:  43
   class:  
function:  require_once
    type:  
    args:  Array
(
    [0] => /usr/share/mythtv/mythweb/includes/database.php
)

    file:  /usr/share/mythtv/mythweb/mythweb.php
    line:  20
   class:  
function:  require_once
    type:  
    args:  Array
(
    [0] => /usr/share/mythtv/mythweb/includes/init.php
)


==========================================================================

$_SESSION: Array
(
    [language] => English
    [date_statusbar] => %a %b %e, %Y, %I:%M %p
    [date_scheduled] => %a %b %e, %Y (%I:%M %p)
    [date_scheduled_popup] => %a %b %e, %Y
    [date_recorded] => %a %b %e, %Y (%I:%M %p)
    [date_search] => %a %b %e, %Y, %I:%M %p
    [date_listing_key] => %a %b %e, %Y, %I:%M %p
    [date_listing_jump] => %a %b %e, %Y
    [date_channel_jump] => %a %b %e, %Y
    [date_job_status] => %a %b %e, %Y, %I:%M %p
    [time_format] => %I:%M %p
)

==========================================================================

$_SERVER: Array
(
    [REDIRECT_STATUS] => 200
    [db_server] => localhost
    [db_name] => mythconverg
    [db_login] => mythtv
    [db_password] => password
    [HTTP_HOST] => myth.guadagno.org
    [HTTP_USER_AGENT] => Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0
    [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
    [HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.5
    [HTTP_ACCEPT_ENCODING] => gzip, deflate
    [HTTP_CONNECTION] => keep-alive
    [HTTP_UPGRADE_INSECURE_REQUESTS] => 1
    [HTTP_SEC_GPC] => 1
    [PATH] => /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
    [SERVER_SIGNATURE] => <address>Apache/2.4.41 (Ubuntu) Server at myth.guadagno.org Port 80</address>

    [SERVER_SOFTWARE] => Apache/2.4.41 (Ubuntu)
    [SERVER_NAME] => myth.guadagno.org
    [SERVER_ADDR] => 192.168.168.13
    [SERVER_PORT] => 80
    [REMOTE_ADDR] => 192.168.168.205
    [DOCUMENT_ROOT] => /var/www/html
    [REQUEST_SCHEME] => http
    [CONTEXT_PREFIX] => 
    [CONTEXT_DOCUMENT_ROOT] => /var/www/html
    [SERVER_ADMIN] => webmaster@localhost
    [SCRIPT_FILENAME] => /var/www/html/mythweb/mythweb.php
    [REMOTE_PORT] => 6770
    [REDIRECT_URL] => /mythweb/
    [GATEWAY_INTERFACE] => CGI/1.1
    [SERVER_PROTOCOL] => HTTP/1.1
    [REQUEST_METHOD] => GET
    [QUERY_STRING] => 
    [REQUEST_URI] => /
    [SCRIPT_NAME] => /mythweb/mythweb.php
    [PHP_SELF] => /mythweb/mythweb.php
    [REQUEST_TIME_FLOAT] => 1614719655.727
    [REQUEST_TIME] => 1614719655
    [STATUS] => 200
    [URL] => /mythweb/
    [HTTP_X_FORWARDED_PROTO] => 
    [HTTPS] => 
    [HTTP_PORT] => 80
)

==========================================================================

$constant_list["user"]: Array
(
    [ERROR] => 512
    [E_ASSERT_ERROR] => 4096
    [FATAL] => 256
    [PHP_MIN_VERSION] => 5.3
    [WARNING] => 1024
    [error_email] => 
    [gb] => 1073741824
    [hostname] => HomeMythBackend
    [http_host] => myth.guadagno.org
    [kb] => 1024
    [mb] => 1048576
    [module] => 
    [modules_path] => /usr/share/mythtv/mythweb/modules
    [root] => /mythweb/
    [root_auth_url] => http://myth.guadagno.org/mythweb/
    [root_url] => http://myth.guadagno.org/mythweb/
    [stream_url] => http://myth.guadagno.org:80//mythweb/
    [tb] => 1099511627776
)


I did some googling and found these, but the fixes did not work for me. https://bobcares.com/blog/mysql-the-ser ... he-client/

Can anyone give me a clue on how to fix this?

thanks in advance!
Last edited by tonyguadagno on Thu Mar 04, 2021 9:45 pm, edited 1 time in total.
tonyguadagno
Junior
Posts: 46
Joined: Sat Oct 25, 2014 4:00 pm
United States of America

Re: mythweb not working after .31 upgrade

Post by tonyguadagno »

Thanks to Peter I have a solution..
Add

Code: Select all

[mysqld]
default-authentication-plugin=mysql_native_password
to either
/etc/mysql/mysql.conf.d/mythtv.cnf
or
/etc/mysql/mysql.conf.d/mysqld.cnf

then, restart mysql and apache2

fixed.
Post Reply