Help Upgrading from 3.0.19 to 3.0.20

classic Classic list List threaded Threaded
8 messages Options
| Threaded
Open this post in threaded view
|

Help Upgrading from 3.0.19 to 3.0.20

Aurélio de Souza Ribeiro Neto
   Hello All,

       I'm trying to upgrade from 3.0.19 to 3.0.20 and I'm having this
   problem:

   Tue Feb  4 10:40:53 2020 : Debug: rlm_sql (sql): Processing
   generate_sql_clients
   Tue Feb  4 10:40:53 2020 : Debug: rlm_sql (sql) in
   generate_sql_clients: query is SELECT id, nasname, shortname, type,
   secret, server FROM nas
   Tue Feb  4 10:40:53 2020 : Debug: rlm_sql (sql): Reserved connection
   (0)
   Tue Feb  4 10:40:53 2020 : Debug: rlm_sql (sql): Executing select
   query: SELECT id, nasname, shortname, type, secret, server FROM nas
   Tue Feb  4 10:40:53 2020 : Debug: rlm_sql (sql): Adding client
   127.0.0.1 (Local Host) to global clients list
   Tue Feb  4 10:40:53 2020 : Debug: Adding client 127.0.0.1/32
   (127.0.0.1) to prefix tree 32
   Tue Feb  4 10:40:53 2020 : Error: Failed to add duplicate client Local
   Host
   Tue Feb  4 10:40:53 2020 : Warning: Failed to add client, possible
   duplicate?
   Bad talloc magic value - unknown value
   talloc abort: Bad talloc magic value - unknown value
   Aborted (core dumped)

       Full log attached.

       In 3.0.19 I don't have this issue using the same settings and
   database.

       Any hint?

       Thanks

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

full_log_3020.txt (80K) Download Attachment
| Threaded
Open this post in threaded view
|

Re: Help Upgrading from 3.0.19 to 3.0.20

Alan DeKok-2
On Feb 4, 2020, at 9:24 AM, Aurélio de Souza Ribeiro Neto <[hidden email]> wrote:

>       I'm trying to upgrade from 3.0.19 to 3.0.20 and I'm having this
>   problem:
>
>   Tue Feb  4 10:40:53 2020 : Debug: rlm_sql (sql): Processing
> ...
>   Tue Feb  4 10:40:53 2020 : Warning: Failed to add client, possible
>   duplicate?
>   Bad talloc magic value - unknown value
>   talloc abort: Bad talloc magic value - unknown value
>   Aborted (core dumped)

  That's bad.

>       Full log attached.

  PLEASE follow instructions and use "radiusd -X".  I have absolutely no idea why so many people don't follow instructions.  It's not difficult.

>       In 3.0.19 I don't have this issue using the same settings and
>   database.
>
>       Any hint?

  We would have to see a gdb backtrace to see where the full error is.

  See doc/bugs

  Alan DeKok.


-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
| Threaded
Open this post in threaded view
|

Re: Help Upgrading from 3.0.19 to 3.0.20

Jorge Pereira-2
In reply to this post by Aurélio de Souza Ribeiro Neto
Aurelio,

Not sure if you can, but if yes. can you share with us the output of "SELECT id, nasname, shortname, type, secret, server FROM nas”
?
--
Jorge Pereira
[hidden email]



> On 4 Feb 2020, at 11:24, Aurélio de Souza Ribeiro Neto <[hidden email]> wrote:
>
>   Hello All,
>
>       I'm trying to upgrade from 3.0.19 to 3.0.20 and I'm having this
>   problem:
>
>   Tue Feb  4 10:40:53 2020 : Debug: rlm_sql (sql): Processing
>   generate_sql_clients
>   Tue Feb  4 10:40:53 2020 : Debug: rlm_sql (sql) in
>   generate_sql_clients: query is SELECT id, nasname, shortname, type,
>   secret, server FROM nas
>   Tue Feb  4 10:40:53 2020 : Debug: rlm_sql (sql): Reserved connection
>   (0)
>   Tue Feb  4 10:40:53 2020 : Debug: rlm_sql (sql): Executing select
>   query: SELECT id, nasname, shortname, type, secret, server FROM nas
>   Tue Feb  4 10:40:53 2020 : Debug: rlm_sql (sql): Adding client
>   127.0.0.1 (Local Host) to global clients list
>   Tue Feb  4 10:40:53 2020 : Debug: Adding client 127.0.0.1/32
>   (127.0.0.1) to prefix tree 32
>   Tue Feb  4 10:40:53 2020 : Error: Failed to add duplicate client Local
>   Host
>   Tue Feb  4 10:40:53 2020 : Warning: Failed to add client, possible
>   duplicate?
>   Bad talloc magic value - unknown value
>   talloc abort: Bad talloc magic value - unknown value
>   Aborted (core dumped)
>
>       Full log attached.
>
>       In 3.0.19 I don't have this issue using the same settings and
>   database.
>
>       Any hint?
>
>       Thanks
> <full_log_3020.txt>-
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
| Threaded
Open this post in threaded view
|

Re: Help Upgrading from 3.0.19 to 3.0.20

Jorge Pereira-2
Hi Aurelio,

No worries. We found a way to reproduce it. Thanks for the report and the fix will be available soon.

--
Jorge Pereira
[hidden email]



> On 4 Feb 2020, at 15:46, Jorge Pereira <[hidden email]> wrote:
>
> Aurelio,
>
> Not sure if you can, but if yes. can you share with us the output of "SELECT id, nasname, shortname, type, secret, server FROM nas”
> ?
> --
> Jorge Pereira
> [hidden email]
>
>
>
>> On 4 Feb 2020, at 11:24, Aurélio de Souza Ribeiro Neto <[hidden email]> wrote:
>>
>>  Hello All,
>>
>>      I'm trying to upgrade from 3.0.19 to 3.0.20 and I'm having this
>>  problem:
>>
>>  Tue Feb  4 10:40:53 2020 : Debug: rlm_sql (sql): Processing
>>  generate_sql_clients
>>  Tue Feb  4 10:40:53 2020 : Debug: rlm_sql (sql) in
>>  generate_sql_clients: query is SELECT id, nasname, shortname, type,
>>  secret, server FROM nas
>>  Tue Feb  4 10:40:53 2020 : Debug: rlm_sql (sql): Reserved connection
>>  (0)
>>  Tue Feb  4 10:40:53 2020 : Debug: rlm_sql (sql): Executing select
>>  query: SELECT id, nasname, shortname, type, secret, server FROM nas
>>  Tue Feb  4 10:40:53 2020 : Debug: rlm_sql (sql): Adding client
>>  127.0.0.1 (Local Host) to global clients list
>>  Tue Feb  4 10:40:53 2020 : Debug: Adding client 127.0.0.1/32
>>  (127.0.0.1) to prefix tree 32
>>  Tue Feb  4 10:40:53 2020 : Error: Failed to add duplicate client Local
>>  Host
>>  Tue Feb  4 10:40:53 2020 : Warning: Failed to add client, possible
>>  duplicate?
>>  Bad talloc magic value - unknown value
>>  talloc abort: Bad talloc magic value - unknown value
>>  Aborted (core dumped)
>>
>>      Full log attached.
>>
>>      In 3.0.19 I don't have this issue using the same settings and
>>  database.
>>
>>      Any hint?
>>
>>      Thanks
>> <full_log_3020.txt>-
>> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
| Threaded
Open this post in threaded view
|

Re: Help Upgrading from 3.0.19 to 3.0.20

Alan DeKok-2
In reply to this post by Alan DeKok-2
  I've pushed a fix.

  On a general note, you shouldn't have duplicate clients in SQL.

  Alan DeKok.

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
| Threaded
Open this post in threaded view
|

Re: Help Upgrading from 3.0.19 to 3.0.20

Aurélio de Souza Ribeiro Neto
In reply to this post by Jorge Pereira-2
Hi Jorge,

     Thanks!

     Before sent mail to list, I was did my homework and I was take a
look in log output.

     You could inform when fix will be available?

Aurélio

Em 04/02/2020 16:25, Jorge Pereira escreveu:

> Hi Aurelio,
>
> No worries. We found a way to reproduce it. Thanks for the report and the fix will be available soon.
>
> --
> Jorge Pereira
> [hidden email]
>
>
>
>> On 4 Feb 2020, at 15:46, Jorge Pereira <[hidden email]> wrote:
>>
>> Aurelio,
>>
>> Not sure if you can, but if yes. can you share with us the output of "SELECT id, nasname, shortname, type, secret, server FROM nas”
>> ?
>> --
>> Jorge Pereira
>> [hidden email]
>>
>>
>>
>>> On 4 Feb 2020, at 11:24, Aurélio de Souza Ribeiro Neto <[hidden email]> wrote:
>>>
>>>   Hello All,
>>>
>>>       I'm trying to upgrade from 3.0.19 to 3.0.20 and I'm having this
>>>   problem:
>>>
>>>   Tue Feb  4 10:40:53 2020 : Debug: rlm_sql (sql): Processing
>>>   generate_sql_clients
>>>   Tue Feb  4 10:40:53 2020 : Debug: rlm_sql (sql) in
>>>   generate_sql_clients: query is SELECT id, nasname, shortname, type,
>>>   secret, server FROM nas
>>>   Tue Feb  4 10:40:53 2020 : Debug: rlm_sql (sql): Reserved connection
>>>   (0)
>>>   Tue Feb  4 10:40:53 2020 : Debug: rlm_sql (sql): Executing select
>>>   query: SELECT id, nasname, shortname, type, secret, server FROM nas
>>>   Tue Feb  4 10:40:53 2020 : Debug: rlm_sql (sql): Adding client
>>>   127.0.0.1 (Local Host) to global clients list
>>>   Tue Feb  4 10:40:53 2020 : Debug: Adding client 127.0.0.1/32
>>>   (127.0.0.1) to prefix tree 32
>>>   Tue Feb  4 10:40:53 2020 : Error: Failed to add duplicate client Local
>>>   Host
>>>   Tue Feb  4 10:40:53 2020 : Warning: Failed to add client, possible
>>>   duplicate?
>>>   Bad talloc magic value - unknown value
>>>   talloc abort: Bad talloc magic value - unknown value
>>>   Aborted (core dumped)
>>>
>>>       Full log attached.
>>>
>>>       In 3.0.19 I don't have this issue using the same settings and
>>>   database.
>>>
>>>       Any hint?
>>>
>>>       Thanks
>>> <full_log_3020.txt>-
>>> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>>
>> -
>> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html




-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
| Threaded
Open this post in threaded view
|

Re: Help Upgrading from 3.0.19 to 3.0.20

Jorge Pereira-2
Hi Aurelio,

The fix is already in the HEAD. But, you could fix it locally keeping the "localhost" host entry in clients.conf and remove the duplicated from the table "nas”. Or build your own package from the v3.0.x/HEAD

--
Jorge Pereira
[hidden email]



> On 5 Feb 2020, at 07:33, Aurélio de Souza Ribeiro Neto <[hidden email]> wrote:
>
> Hi Jorge,
>
>     Thanks!
>
>     Before sent mail to list, I was did my homework and I was take a look in log output.
>
>     You could inform when fix will be available?
>
> Aurélio
>
> Em 04/02/2020 16:25, Jorge Pereira escreveu:
>> Hi Aurelio,
>>
>> No worries. We found a way to reproduce it. Thanks for the report and the fix will be available soon.
>>
>> --
>> Jorge Pereira
>> [hidden email]
>>
>>
>>
>>> On 4 Feb 2020, at 15:46, Jorge Pereira <[hidden email]> wrote:
>>>
>>> Aurelio,
>>>
>>> Not sure if you can, but if yes. can you share with us the output of "SELECT id, nasname, shortname, type, secret, server FROM nas”
>>> ?
>>> --
>>> Jorge Pereira
>>> [hidden email]
>>>
>>>
>>>
>>>> On 4 Feb 2020, at 11:24, Aurélio de Souza Ribeiro Neto <[hidden email]> wrote:
>>>>
>>>>  Hello All,
>>>>
>>>>      I'm trying to upgrade from 3.0.19 to 3.0.20 and I'm having this
>>>>  problem:
>>>>
>>>>  Tue Feb  4 10:40:53 2020 : Debug: rlm_sql (sql): Processing
>>>>  generate_sql_clients
>>>>  Tue Feb  4 10:40:53 2020 : Debug: rlm_sql (sql) in
>>>>  generate_sql_clients: query is SELECT id, nasname, shortname, type,
>>>>  secret, server FROM nas
>>>>  Tue Feb  4 10:40:53 2020 : Debug: rlm_sql (sql): Reserved connection
>>>>  (0)
>>>>  Tue Feb  4 10:40:53 2020 : Debug: rlm_sql (sql): Executing select
>>>>  query: SELECT id, nasname, shortname, type, secret, server FROM nas
>>>>  Tue Feb  4 10:40:53 2020 : Debug: rlm_sql (sql): Adding client
>>>>  127.0.0.1 (Local Host) to global clients list
>>>>  Tue Feb  4 10:40:53 2020 : Debug: Adding client 127.0.0.1/32
>>>>  (127.0.0.1) to prefix tree 32
>>>>  Tue Feb  4 10:40:53 2020 : Error: Failed to add duplicate client Local
>>>>  Host
>>>>  Tue Feb  4 10:40:53 2020 : Warning: Failed to add client, possible
>>>>  duplicate?
>>>>  Bad talloc magic value - unknown value
>>>>  talloc abort: Bad talloc magic value - unknown value
>>>>  Aborted (core dumped)
>>>>
>>>>      Full log attached.
>>>>
>>>>      In 3.0.19 I don't have this issue using the same settings and
>>>>  database.
>>>>
>>>>      Any hint?
>>>>
>>>>      Thanks
>>>> <full_log_3020.txt>-
>>>> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>>>
>>> -
>>> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>>
>> -
>> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>
>
>


-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
| Threaded
Open this post in threaded view
|

Re: Help Upgrading from 3.0.19 to 3.0.20

Aurélio de Souza Ribeiro Neto
Hi Jorge,

     Ok! Thanks for your hint and fast action to Head the fix.


Em 05/02/2020 15:08, Jorge Pereira escreveu:

> Hi Aurelio,
>
> The fix is already in the HEAD. But, you could fix it locally keeping the "localhost" host entry in clients.conf and remove the duplicated from the table "nas”. Or build your own package from the v3.0.x/HEAD
>
> --
> Jorge Pereira
> [hidden email]
>
>
>
>> On 5 Feb 2020, at 07:33, Aurélio de Souza Ribeiro Neto <[hidden email]> wrote:
>>
>> Hi Jorge,
>>
>>      Thanks!
>>
>>      Before sent mail to list, I was did my homework and I was take a look in log output.
>>
>>      You could inform when fix will be available?
>>
>> Aurélio
>>
>> Em 04/02/2020 16:25, Jorge Pereira escreveu:
>>> Hi Aurelio,
>>>
>>> No worries. We found a way to reproduce it. Thanks for the report and the fix will be available soon.
>>>
>>> --
>>> Jorge Pereira
>>> [hidden email]
>>>
>>>
>>>
>>>> On 4 Feb 2020, at 15:46, Jorge Pereira <[hidden email]> wrote:
>>>>
>>>> Aurelio,
>>>>
>>>> Not sure if you can, but if yes. can you share with us the output of "SELECT id, nasname, shortname, type, secret, server FROM nas”
>>>> ?
>>>> --
>>>> Jorge Pereira
>>>> [hidden email]
>>>>
>>>>
>>>>
>>>>> On 4 Feb 2020, at 11:24, Aurélio de Souza Ribeiro Neto <[hidden email]> wrote:
>>>>>
>>>>>   Hello All,
>>>>>
>>>>>       I'm trying to upgrade from 3.0.19 to 3.0.20 and I'm having this
>>>>>   problem:
>>>>>
>>>>>   Tue Feb  4 10:40:53 2020 : Debug: rlm_sql (sql): Processing
>>>>>   generate_sql_clients
>>>>>   Tue Feb  4 10:40:53 2020 : Debug: rlm_sql (sql) in
>>>>>   generate_sql_clients: query is SELECT id, nasname, shortname, type,
>>>>>   secret, server FROM nas
>>>>>   Tue Feb  4 10:40:53 2020 : Debug: rlm_sql (sql): Reserved connection
>>>>>   (0)
>>>>>   Tue Feb  4 10:40:53 2020 : Debug: rlm_sql (sql): Executing select
>>>>>   query: SELECT id, nasname, shortname, type, secret, server FROM nas
>>>>>   Tue Feb  4 10:40:53 2020 : Debug: rlm_sql (sql): Adding client
>>>>>   127.0.0.1 (Local Host) to global clients list
>>>>>   Tue Feb  4 10:40:53 2020 : Debug: Adding client 127.0.0.1/32
>>>>>   (127.0.0.1) to prefix tree 32
>>>>>   Tue Feb  4 10:40:53 2020 : Error: Failed to add duplicate client Local
>>>>>   Host
>>>>>   Tue Feb  4 10:40:53 2020 : Warning: Failed to add client, possible
>>>>>   duplicate?
>>>>>   Bad talloc magic value - unknown value
>>>>>   talloc abort: Bad talloc magic value - unknown value
>>>>>   Aborted (core dumped)
>>>>>
>>>>>       Full log attached.
>>>>>
>>>>>       In 3.0.19 I don't have this issue using the same settings and
>>>>>   database.
>>>>>
>>>>>       Any hint?
>>>>>
>>>>>       Thanks
>>>>> <full_log_3020.txt>-
>>>>> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>>>> -
>>>> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>>> -
>>> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>>
>>



-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html