PPP users stay connected while it disconnect from Gateway
Posted: 25 Feb 2021, 08:25
dears,
we have strange problem when gateway reboot or disconnect for any cause , users in HSNM still and stay connected
and this cause maximum session for the user ,
we update the interim update to 300 , also decrease it in mikrotik , update pppoe network interface , check all setting but still have problem
note : we use external database
see error below
rror! Query error: MySQL server has gone away (2006) Query: SELECT CASE WHEN UpdateExpiration = 1 OR ToDate IS NULL THEN 0 WHEN (ToDate > NOW()) THEN 0 ELSE 1 END AS Expired FROM HsUsersTransactions WHERE HsUsersID = 36126 ORDER BY HsUserTransactionsID DESC LIMIT 0, 1 (::functions::users ::db->query)
2021-02-24 14:09:24 admin Error! Query error: MySQL server has gone away (2006) Query: SELECT 1, callingstationid FROM radacct WHERE radacct.HsUsersID = 36126 AND radacct.acctterminatecause = '' LIMIT 0, 1 (::functions::users ::db->query)
2021-02-24 14:09:24 admin Error! Query error: MySQL server has gone away (2006) Query: SELECT HsManagers.HsRetailersID, HsManagers.HsManagersID, HsUsers.LastName, HsUsers.FirstName, HsUsers.UserName, HsUsers.Locked, HsUsers.HsProductID, HsProducts.HsProductsPolicyID, HsUsers.ExternalAuthType, HsUsers.HsUserTransactionsID, HsUsers.CreationDate FROM HsUsers LEFT JOIN HsProducts ON HsProducts.HsProductID = HsUsers.HsProductID INNER JOIN HsDomainsData ON HsDomainsData.HsDomainsDataID = HsUsers.HsDomainsDataID INNER JOIN HsManagers ON HsManagers.HsManagersID = HsDomainsData.HsManagersID WHERE HsUsers.HsUsersID = 36126 (::functions::users ::db->query)
2021-02-24 14:09:24 admin Error! Query error: MySQL server has gone away (2006) Query: SELECT CASE WHEN UpdateExpiration = 1 OR ToDate IS NULL THEN 0 WHEN (ToDate > NOW()) THEN 0 ELSE 1 END AS Expired FROM HsUsersTransactions WHERE HsUsersID = 36127 ORDER BY HsUserTransactionsID DESC LIMIT 0, 1 (::functions::users ::db->query)
2021-02-24 14:09:24 admin Error! Query error: MySQL server has gone away (2006) Query: SELECT 1, callingstationid FROM radacct WHERE radacct.HsUsersID = 36127 AND radacct.acctterminatecause = '' LIMIT 0, 1 (::functions::users ::db->query)
2021-02-24 14:09:24 admin Error! Query error: MySQL server has gone away (2006) Query: SELECT HsManagers.HsRetailersID, HsManagers.HsManagersID, HsUsers.LastName, HsUsers.FirstName, HsUsers.UserName, HsUsers.Locked, HsUsers.HsProductID, HsProducts.HsProductsPolicyID, HsUsers.ExternalAuthType, HsUsers.HsUserTransactionsID, HsUsers.CreationDate FROM HsUsers LEFT JOIN HsProducts ON HsProducts.HsProductID = HsUsers.HsProductID INNER JOIN HsDomainsData ON HsDomainsData.HsDomainsDataID = HsUsers.HsDomainsDataID INNER JOIN HsManagers ON HsManagers.HsManagersID = HsDomainsData.HsManagersID WHERE HsUsers.HsUsersID = 36127 (::functions::users ::db->query)
2021-02-24 14:09:24 admin Error! Query error: MySQL server has gone away (2006) Query: SELECT CASE WHEN UpdateExpiration = 1 OR ToDate IS NULL THEN 0 WHEN (ToDate > NOW()) THEN 0 ELSE 1 END AS Expired FROM HsUsersTransactions WHERE HsUsersID = 36128 ORDER BY HsUserTransactionsID DESC LIMIT 0, 1 (::functions::users ::db->query)
2021-02-24 14:09:24 admin Error! Query error: MySQL server has gone away (2006) Query: SELECT 1, callingstationid FROM radacct WHERE radacct.HsUsersID = 36128 AND radacct.acctterminatecause = '' LIMIT 0, 1 (::functions::users ::db->query)
2021-02-24 14:09:24 admin Error! Query error: MySQL server has gone away (2006) Query: SELECT HsManagers.HsRetailersID, HsManagers.HsManagersID, HsUsers.LastName, HsUsers.FirstName, HsUsers.UserName, HsUsers.Locked, HsUsers.HsProductID, HsProducts.HsProductsPolicyID, HsUsers.ExternalAuthType, HsUsers.HsUserTransactionsID, HsUsers.CreationDate FROM HsUsers LEFT JOIN HsProducts ON HsProducts.HsProductID = HsUsers.HsProductID INNER JOIN HsDomainsData ON HsDomainsData.HsDomainsDataID = HsUsers.HsDomainsDataID INNER JOIN HsManagers ON HsManagers.HsManagersID = HsDomainsData.HsManagersID WHERE HsUsers.HsUsersID = 36128 (::functions::users ::db->query)
2021-02-24 14:09:24 admin Error! Query error: MySQL server has gone away (2006) Query: SELECT CASE WHEN UpdateExpiration = 1 OR ToDate IS NULL THEN 0 WHEN (ToDate > NOW()) THEN 0 ELSE 1 END AS Expired FROM HsUsersTransactions WHERE HsUsersID = 36129 ORDER BY HsUserTransactionsID DESC LIMIT 0, 1 (::functions::users ::db->query)
2021-02-24 14:09:24 admin Error! Query error: MySQL server has gone away (2006) Query: SELECT 1, callingstationid FROM radacct WHERE radacct.HsUsersID = 36129 AND radacct.acctterminatecause = '' LIMIT 0, 1 (::functions::users ::db->query)
2021-02-24 14:09:24 admin Error! Query error: MySQL server has gone away (2006) Query: SELECT HsManagers.HsRetailersID, HsManagers.HsManagersID, HsUsers.LastName, HsUsers.FirstName, HsUsers.UserName, HsUsers.Locked, HsUsers.HsProductID, HsProducts.HsProductsPolicyID, HsUsers.ExternalAuthType, HsUsers.HsUserTransactionsID, HsUsers.CreationDate FROM HsUsers LEFT JOIN HsProducts ON HsProducts.HsProductID = HsUsers.HsProductID INNER JOIN HsDomainsData ON HsDomainsData.HsDomainsDataID = HsUsers.HsDomainsDataID INNER JOIN HsManagers ON HsManagers.HsManagersID = HsDomainsData.HsManagersID WHERE HsUsers.HsUsersID = 36129 (::functions::users ::db->query)
2021-02-24 14:09:24 admin Error! Query error: MySQL server has gone away (2006) Query: SELECT CASE WHEN UpdateExpiration = 1 OR ToDate IS NULL THEN 0 WHEN (ToDate > NOW()) THEN 0 ELSE 1 END AS Expired FROM HsUsersTransactions WHERE HsUsersID = 36130 ORDER BY HsUserTransactionsID DESC LIMIT 0, 1 (::functions::users ::db->query)
2021-02-24 14:09:24 admin Error! Query error: MySQL server has gone away (2006) Query: SELECT 1, callingstationid FROM radacct WHERE radacct.HsUsersID = 36130 AND radacct.acctterminatecause = '' LIMIT 0, 1 (::functions::users ::db->query)
2021-02-24 14:09:24 admin Error! Query error: MySQL server has gone away (2006) Query: SELECT HsManagers.HsRetailersID, HsManagers.HsManagersID, HsUsers.LastName, HsUsers.FirstName, HsUsers.UserName, HsUsers.Locked, HsUsers.HsProductID, HsProducts.HsProductsPolicyID, HsUsers.ExternalAuthType, HsUsers.HsUserTransactionsID, HsUsers.CreationDate FROM HsUsers LEFT JOIN HsProducts ON HsProducts.HsProductID = HsUsers.HsProductID INNER JOIN HsDomainsData ON HsDomainsData.HsDomainsDataID = HsUsers.HsDomainsDataID INNER JOIN HsManagers ON HsManagers.HsManagersID = HsDomainsData.HsManagersID WHERE HsUsers.HsUsersID = 36130 (::functions::users ::db->query)
2021-02-24 14:09:24 admin Error! Query error: MySQL server has gone away (2006) Query: SELECT CASE WHEN UpdateExpiration = 1 OR ToDate IS NULL THEN 0 WHEN (ToDate > NOW()) THEN 0 ELSE 1 END AS Expired FROM HsUsersTransactions WHERE HsUsersID = 36131 ORDER BY HsUserTransactionsID DESC LIMIT 0, 1 (::functions::users ::db->query)
2021-02-24 14:09:24 admin Error! Query error: MySQL server has gone away (2006) Query: SELECT 1, callingstationid FROM radacct WHERE radacct.HsUsersID = 36131 AND radacct.acctterminatecause = '' LIMIT 0, 1 (::functions::users ::db->query)
2021-02-24 14:09:24 admin Error! Query error: MySQL server has gone away (2006) Query: SELECT HsManagers.HsRetailersID, HsManagers.HsManagersID, HsUsers.LastName, HsUsers.FirstName, HsUsers.UserName, HsUsers.Locked, HsUsers.HsProductID, HsProducts.HsProductsPolicyID, HsUsers.ExternalAuthType, HsUsers.HsUserTransactionsID, HsUsers.CreationDate FROM HsUsers LEFT JOIN HsProducts ON HsProducts.HsProductID = HsUsers.HsProductID INNER JOIN HsDomainsData ON HsDomainsData.HsDomainsDataID = HsUsers.HsDomainsDataID INNER JOIN HsManagers ON HsManagers.HsManagersID = HsDomainsData.HsManagersID WHERE HsUsers.HsUsersID = 36131 (::functions::users ::db->query)
2021-02-24 14:09:24 admin Error! Query error: MySQL server has gone away (2006) Query: SELECT CASE WHEN UpdateExpiration = 1 OR ToDate IS NULL THEN 0 WHEN (ToDate > NOW()) THEN 0 ELSE 1 END AS Expired FROM HsUsersTransactions WHERE HsUsersID = 36132 ORDER BY HsUserTransactionsID DESC LIMIT 0, 1 (::functions::users ::db->query)
2021-02-24 14:09:24 admin Error! Query error: MySQL server has gone away (2006) Query: SELECT 1, callingstationid FROM radacct WHERE radacct.HsUsersID = 36132 AND radacct.acctterminatecause = '' LIMIT 0, 1 (::functions::users ::db->query)
2021-02-24 14:09:24 admin Error! Query error: MySQL server has gone away (2006) Query: SELECT HsManagers.HsRetailersID, HsManagers.HsManagersID, HsUsers.LastName, HsUsers.FirstName, HsUsers.UserName, HsUsers.Locked, HsUsers.HsProductID, HsProducts.HsProductsPolicyID, HsUsers.ExternalAuthType, HsUsers.HsUserTransactionsID, HsUsers.CreationDate FROM HsUsers LEFT JOIN HsProducts ON HsProducts.HsProductID = HsUsers.HsProductID INNER JOIN HsDomainsData ON HsDomainsData.HsDomainsDataID = HsUsers.HsDomainsDataID INNER JOIN HsManagers ON HsManagers.HsManagersID = HsDomainsData.HsManagersID WHERE HsUsers.HsUsersID = 36132 (::functions::users ::db->query)
we have strange problem when gateway reboot or disconnect for any cause , users in HSNM still and stay connected
and this cause maximum session for the user ,
we update the interim update to 300 , also decrease it in mikrotik , update pppoe network interface , check all setting but still have problem
note : we use external database
see error below
rror! Query error: MySQL server has gone away (2006) Query: SELECT CASE WHEN UpdateExpiration = 1 OR ToDate IS NULL THEN 0 WHEN (ToDate > NOW()) THEN 0 ELSE 1 END AS Expired FROM HsUsersTransactions WHERE HsUsersID = 36126 ORDER BY HsUserTransactionsID DESC LIMIT 0, 1 (::functions::users ::db->query)
2021-02-24 14:09:24 admin Error! Query error: MySQL server has gone away (2006) Query: SELECT 1, callingstationid FROM radacct WHERE radacct.HsUsersID = 36126 AND radacct.acctterminatecause = '' LIMIT 0, 1 (::functions::users ::db->query)
2021-02-24 14:09:24 admin Error! Query error: MySQL server has gone away (2006) Query: SELECT HsManagers.HsRetailersID, HsManagers.HsManagersID, HsUsers.LastName, HsUsers.FirstName, HsUsers.UserName, HsUsers.Locked, HsUsers.HsProductID, HsProducts.HsProductsPolicyID, HsUsers.ExternalAuthType, HsUsers.HsUserTransactionsID, HsUsers.CreationDate FROM HsUsers LEFT JOIN HsProducts ON HsProducts.HsProductID = HsUsers.HsProductID INNER JOIN HsDomainsData ON HsDomainsData.HsDomainsDataID = HsUsers.HsDomainsDataID INNER JOIN HsManagers ON HsManagers.HsManagersID = HsDomainsData.HsManagersID WHERE HsUsers.HsUsersID = 36126 (::functions::users ::db->query)
2021-02-24 14:09:24 admin Error! Query error: MySQL server has gone away (2006) Query: SELECT CASE WHEN UpdateExpiration = 1 OR ToDate IS NULL THEN 0 WHEN (ToDate > NOW()) THEN 0 ELSE 1 END AS Expired FROM HsUsersTransactions WHERE HsUsersID = 36127 ORDER BY HsUserTransactionsID DESC LIMIT 0, 1 (::functions::users ::db->query)
2021-02-24 14:09:24 admin Error! Query error: MySQL server has gone away (2006) Query: SELECT 1, callingstationid FROM radacct WHERE radacct.HsUsersID = 36127 AND radacct.acctterminatecause = '' LIMIT 0, 1 (::functions::users ::db->query)
2021-02-24 14:09:24 admin Error! Query error: MySQL server has gone away (2006) Query: SELECT HsManagers.HsRetailersID, HsManagers.HsManagersID, HsUsers.LastName, HsUsers.FirstName, HsUsers.UserName, HsUsers.Locked, HsUsers.HsProductID, HsProducts.HsProductsPolicyID, HsUsers.ExternalAuthType, HsUsers.HsUserTransactionsID, HsUsers.CreationDate FROM HsUsers LEFT JOIN HsProducts ON HsProducts.HsProductID = HsUsers.HsProductID INNER JOIN HsDomainsData ON HsDomainsData.HsDomainsDataID = HsUsers.HsDomainsDataID INNER JOIN HsManagers ON HsManagers.HsManagersID = HsDomainsData.HsManagersID WHERE HsUsers.HsUsersID = 36127 (::functions::users ::db->query)
2021-02-24 14:09:24 admin Error! Query error: MySQL server has gone away (2006) Query: SELECT CASE WHEN UpdateExpiration = 1 OR ToDate IS NULL THEN 0 WHEN (ToDate > NOW()) THEN 0 ELSE 1 END AS Expired FROM HsUsersTransactions WHERE HsUsersID = 36128 ORDER BY HsUserTransactionsID DESC LIMIT 0, 1 (::functions::users ::db->query)
2021-02-24 14:09:24 admin Error! Query error: MySQL server has gone away (2006) Query: SELECT 1, callingstationid FROM radacct WHERE radacct.HsUsersID = 36128 AND radacct.acctterminatecause = '' LIMIT 0, 1 (::functions::users ::db->query)
2021-02-24 14:09:24 admin Error! Query error: MySQL server has gone away (2006) Query: SELECT HsManagers.HsRetailersID, HsManagers.HsManagersID, HsUsers.LastName, HsUsers.FirstName, HsUsers.UserName, HsUsers.Locked, HsUsers.HsProductID, HsProducts.HsProductsPolicyID, HsUsers.ExternalAuthType, HsUsers.HsUserTransactionsID, HsUsers.CreationDate FROM HsUsers LEFT JOIN HsProducts ON HsProducts.HsProductID = HsUsers.HsProductID INNER JOIN HsDomainsData ON HsDomainsData.HsDomainsDataID = HsUsers.HsDomainsDataID INNER JOIN HsManagers ON HsManagers.HsManagersID = HsDomainsData.HsManagersID WHERE HsUsers.HsUsersID = 36128 (::functions::users ::db->query)
2021-02-24 14:09:24 admin Error! Query error: MySQL server has gone away (2006) Query: SELECT CASE WHEN UpdateExpiration = 1 OR ToDate IS NULL THEN 0 WHEN (ToDate > NOW()) THEN 0 ELSE 1 END AS Expired FROM HsUsersTransactions WHERE HsUsersID = 36129 ORDER BY HsUserTransactionsID DESC LIMIT 0, 1 (::functions::users ::db->query)
2021-02-24 14:09:24 admin Error! Query error: MySQL server has gone away (2006) Query: SELECT 1, callingstationid FROM radacct WHERE radacct.HsUsersID = 36129 AND radacct.acctterminatecause = '' LIMIT 0, 1 (::functions::users ::db->query)
2021-02-24 14:09:24 admin Error! Query error: MySQL server has gone away (2006) Query: SELECT HsManagers.HsRetailersID, HsManagers.HsManagersID, HsUsers.LastName, HsUsers.FirstName, HsUsers.UserName, HsUsers.Locked, HsUsers.HsProductID, HsProducts.HsProductsPolicyID, HsUsers.ExternalAuthType, HsUsers.HsUserTransactionsID, HsUsers.CreationDate FROM HsUsers LEFT JOIN HsProducts ON HsProducts.HsProductID = HsUsers.HsProductID INNER JOIN HsDomainsData ON HsDomainsData.HsDomainsDataID = HsUsers.HsDomainsDataID INNER JOIN HsManagers ON HsManagers.HsManagersID = HsDomainsData.HsManagersID WHERE HsUsers.HsUsersID = 36129 (::functions::users ::db->query)
2021-02-24 14:09:24 admin Error! Query error: MySQL server has gone away (2006) Query: SELECT CASE WHEN UpdateExpiration = 1 OR ToDate IS NULL THEN 0 WHEN (ToDate > NOW()) THEN 0 ELSE 1 END AS Expired FROM HsUsersTransactions WHERE HsUsersID = 36130 ORDER BY HsUserTransactionsID DESC LIMIT 0, 1 (::functions::users ::db->query)
2021-02-24 14:09:24 admin Error! Query error: MySQL server has gone away (2006) Query: SELECT 1, callingstationid FROM radacct WHERE radacct.HsUsersID = 36130 AND radacct.acctterminatecause = '' LIMIT 0, 1 (::functions::users ::db->query)
2021-02-24 14:09:24 admin Error! Query error: MySQL server has gone away (2006) Query: SELECT HsManagers.HsRetailersID, HsManagers.HsManagersID, HsUsers.LastName, HsUsers.FirstName, HsUsers.UserName, HsUsers.Locked, HsUsers.HsProductID, HsProducts.HsProductsPolicyID, HsUsers.ExternalAuthType, HsUsers.HsUserTransactionsID, HsUsers.CreationDate FROM HsUsers LEFT JOIN HsProducts ON HsProducts.HsProductID = HsUsers.HsProductID INNER JOIN HsDomainsData ON HsDomainsData.HsDomainsDataID = HsUsers.HsDomainsDataID INNER JOIN HsManagers ON HsManagers.HsManagersID = HsDomainsData.HsManagersID WHERE HsUsers.HsUsersID = 36130 (::functions::users ::db->query)
2021-02-24 14:09:24 admin Error! Query error: MySQL server has gone away (2006) Query: SELECT CASE WHEN UpdateExpiration = 1 OR ToDate IS NULL THEN 0 WHEN (ToDate > NOW()) THEN 0 ELSE 1 END AS Expired FROM HsUsersTransactions WHERE HsUsersID = 36131 ORDER BY HsUserTransactionsID DESC LIMIT 0, 1 (::functions::users ::db->query)
2021-02-24 14:09:24 admin Error! Query error: MySQL server has gone away (2006) Query: SELECT 1, callingstationid FROM radacct WHERE radacct.HsUsersID = 36131 AND radacct.acctterminatecause = '' LIMIT 0, 1 (::functions::users ::db->query)
2021-02-24 14:09:24 admin Error! Query error: MySQL server has gone away (2006) Query: SELECT HsManagers.HsRetailersID, HsManagers.HsManagersID, HsUsers.LastName, HsUsers.FirstName, HsUsers.UserName, HsUsers.Locked, HsUsers.HsProductID, HsProducts.HsProductsPolicyID, HsUsers.ExternalAuthType, HsUsers.HsUserTransactionsID, HsUsers.CreationDate FROM HsUsers LEFT JOIN HsProducts ON HsProducts.HsProductID = HsUsers.HsProductID INNER JOIN HsDomainsData ON HsDomainsData.HsDomainsDataID = HsUsers.HsDomainsDataID INNER JOIN HsManagers ON HsManagers.HsManagersID = HsDomainsData.HsManagersID WHERE HsUsers.HsUsersID = 36131 (::functions::users ::db->query)
2021-02-24 14:09:24 admin Error! Query error: MySQL server has gone away (2006) Query: SELECT CASE WHEN UpdateExpiration = 1 OR ToDate IS NULL THEN 0 WHEN (ToDate > NOW()) THEN 0 ELSE 1 END AS Expired FROM HsUsersTransactions WHERE HsUsersID = 36132 ORDER BY HsUserTransactionsID DESC LIMIT 0, 1 (::functions::users ::db->query)
2021-02-24 14:09:24 admin Error! Query error: MySQL server has gone away (2006) Query: SELECT 1, callingstationid FROM radacct WHERE radacct.HsUsersID = 36132 AND radacct.acctterminatecause = '' LIMIT 0, 1 (::functions::users ::db->query)
2021-02-24 14:09:24 admin Error! Query error: MySQL server has gone away (2006) Query: SELECT HsManagers.HsRetailersID, HsManagers.HsManagersID, HsUsers.LastName, HsUsers.FirstName, HsUsers.UserName, HsUsers.Locked, HsUsers.HsProductID, HsProducts.HsProductsPolicyID, HsUsers.ExternalAuthType, HsUsers.HsUserTransactionsID, HsUsers.CreationDate FROM HsUsers LEFT JOIN HsProducts ON HsProducts.HsProductID = HsUsers.HsProductID INNER JOIN HsDomainsData ON HsDomainsData.HsDomainsDataID = HsUsers.HsDomainsDataID INNER JOIN HsManagers ON HsManagers.HsManagersID = HsDomainsData.HsManagersID WHERE HsUsers.HsUsersID = 36132 (::functions::users ::db->query)