[OpenSIPS-Users] Opensips 1.11 permission module problem

Денис Путято denis7979 at mail.ru
Tue Feb 2 09:19:47 CET 2016


Hello

I found the problem. Thank you.

An additional question. With "DBG_QM_MALLOC" i see in log a lot off messages "params ..." without any SIP traffic. Is this normal? 

P.S.
in opensips.cfg
memlog=1
debug=3



I came back and start from beginning. 

- Opensips restarts successfully with 
1) "F_MALLOC" checked
2) "DBG_QM_MALLOC" uncheked.
3) In Exclude_modules all necessary modules have been checked (db_mysql, dialplan etc/).

-Opensips restarts fail with
1) "F_MALLOC" unchecked
2) "DBG_QM_MALLOC" cheked.
3) In Exclude_modules all necessary modules have been checked (db_mysql, dialplan etc/).

What am i doing wrong?

-- 
С уважением,
Путято Денис,
Руководитель отдела телефонии
АО "Квантум"
Тел.: 8123364000, доб.244
199178, Санкт-Петербург, наб.р.Смоленки, д.19/21 лит.Б
www.ptl.ru                         mailto:d.putyato at ptl.ru


Just check whatever modules you actually need from "excluded_modules", then do: "make install".
Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com
On 29.01.2016 15:47, Денис Путято wrote:
Re: [OpenSIPS-Users] Opensips 1.11 permission module problem Sorry, but i do not quite understand.
I should unchecked all modules in "excluded_modules", save changes, than make all and make install and after that repeat all these steps but with checked modules in "excluded_modules". Am i right?




It seems you've regenerated Makefile.conf, and forgot to remove db_mysql from the list of "excluded_modules". To fix this:

make menuconfig -> Configure Compile Options -> Configure Excluded Modules -> [X] db_mysql

Now, when you run "make all; make install", "db_mysql", the last missing piece of the puzzle, will be recompiled as well.
Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com
On 29.01.2016 12:54, Денис Путято wrote:
Re: [OpenSIPS-Users] Opensips 1.11 permission module problem Hello

It is doesn`t help.
1) make clean
2) make menuconfig. Set all necessary parameters (including uncheck F_MALLOC via the spacebar key, and check DBG_QM_MALLOC ).
3) save and exit
4) make all
5) make install

When starts Opensips i can see the same errors in log.



You've only recompiled the opensips binary with the new flags, but forgot about all shared libraries (modules)

When changing compile flags, please recompile everything with "make all", instead of just doing "make".

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com
On 29.01.2016 10:38, Денис Путято wrote:
Re: [OpenSIPS-Users] Opensips 1.11 permission module problem Hello, Bogdan

The problem is still actual.
Due to doc http://www.opensips.org/Documentation/TroubleShooting-OutOfMem i try to prepare to make a log of memory.
I made "uncheck F_MALLOC via the spacebar key, and check DBG_QM_MALLOC"

When i start Opensips i see in log such errors (see attachment).

Thank you for any help.

Sincerely, Denis 


How much pkg memory have you configured in your opensips ?

Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 18.11.2015 12:24, dpa wrote:
2314

From: Bogdan-Andrei Iancu [mailto:bogdan at opensips.org] 
Sent: Wednesday, November 18, 2015 1:17 PM
To: dpa; 'OpenSIPS users mailling list'
Subject: Re: [OpenSIPS-Users] Opensips 1.11 permission module problem

How many records do you have in the address table ?

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 18.11.2015 12:14, dpa wrote:
Hello Bogdan,

Yes, I see errors
“Oct 28 15:55:45 opensips-main /usr/local/opensips1.11/sbin/opensips[7715]: WARNING:core:fm_malloc: Not enough free memory, will attempt defragmentation
Oct 28 15:55:45 opensips-main /usr/local/opensips1.11/sbin/opensips[7715]: ERROR:core:db_allocate_rows: no memory left
Oct 28 15:55:45 opensips-main /usr/local/opensips1.11/sbin/opensips[7715]: ERROR:db_mysql:db_mysql_convert_rows: no private memory left
Oct 28 15:55:45 opensips-main /usr/local/opensips1.11/sbin/opensips[7715]: ERROR:db_mysql:db_mysql_convert_result: error while converting rows
Oct 28 15:55:45 opensips-main /usr/local/opensips1.11/sbin/opensips[7715]: ERROR:db_mysql:db_mysql_store_result: error while converting result
Oct 28 15:55:45 opensips-main /usr/local/opensips1.11/sbin/opensips[7715]: ERROR:core:db_do_query: error while storing result for query [select ip,grp,mask,port,proto,pattern,context_info,id from ast_address ]
Oct 28 15:55:45 opensips-main /usr/local/opensips1.11/sbin/opensips[7715]: ERROR:permissions:reload_address_table: failed to query database”

From: Bogdan-Andrei Iancu [mailto:bogdan at opensips.org] 
Sent: Wednesday, November 18, 2015 1:04 PM
To: OpenSIPS users mailling list; denis7979 at mail.ru
Subject: Re: [OpenSIPS-Users] Opensips 1.11 permission module problem

Hi Denis,

Do you see any errors in logs when the reload fails ?

Regards,


Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 18.11.2015 07:29, dpa wrote:
Hello Richard

It is about 1 – 1,5 week.
No, I do not use subnets, only IP address. 

“There was a package memory leak that was fixed in the development tree”
Where can I read about it? Thank you.

From: users-bounces at lists.opensips.org [mailto:users-bounces at lists.opensips.org] On Behalf Of Richard Revels
Sent: Tuesday, November 17, 2015 8:55 PM
To: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] Opensips 1.11 permission module problem

Are you using subnets in your address table?  How often do you reload the address table?

There was a package memory leak that was fixed in the development tree that might explain what you are seeing.

On Wed, Nov 11, 2015 at 4:26 AM, dpa <denis7979 at mail.ru> wrote:

Hello!

Is there any assumption about problem?

From: users-bounces at lists.opensips.org [mailto:users-bounces at lists.opensips.org] On Behalf Of dpa
Sent: Wednesday, October 28, 2015 4:12 PM
To: 'OpenSIPS users mailling list'
Subject: [OpenSIPS-Users] Opensips 1.11 permission module problem

Hello!

OpenSIPS (1.11.5-notls (x86_64/linux))

I have a periodic problem with permissions module.
I could not make opensipsctl address reload (“400 Trusted table reload failed” received). In the time I have no problem with dialplan or drouting modules.
Opensips reload solve the problem.


In attachment log from opensips and statistic.

Thank you for any help




_______________________________________________
Users mailing list
Users at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users





_______________________________________________
Users mailing list
Users at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



_______________________________________________
Users mailing list
Users at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20160202/e62cc2b6/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 906 bytes
Desc: not available
URL: <http://lists.opensips.org/pipermail/users/attachments/20160202/e62cc2b6/attachment-0001.gif>


More information about the Users mailing list