[SR-Users] Re: compile without downtime

2024-04-17 Thread Ben Kaufman via sr-users
You can definitely compile (`make`) without downtime.
Installation without downtime is likely safe, but I don't think you'll find 
many people willing to give you a guarantee on it.  The biggest problems with 
just running `make install` blindly are the potential to clobber config files 
or anything continuously run.  If memory serves, there is a "make deinstall" 
(or similar) option that doesn't actually execute anything but will generate a 
list of files to be deleted. The last time I did an upgrade that required 
recompilation I used this to create a small shell script of things to delete.  
I then upgraded like:

service kamaliio stop && cp /etc/kamailio /etc/kamailio.bak && 
kamailio_uninstall.sh && make install && mv /etc/kamailio /etc/kamailio.orig && 
mv /etc/kamailio.bak /etc/kamailio && service kamailio start

This is probably overkill, but I think it took less than a minute to actually 
run.


From: satyaprakash ch via sr-users 
Sent: Wednesday, April 17, 2024 11:19 AM
To: Kamailio (SER) - Users Mailing List 
Cc: satyaprakash ch 
Subject: [SR-Users] compile without downtime


CAUTION: This email originated from outside the organization. Do not click 
links or open attachments unless you recognize the sender and know the content 
is safe.

HI

I currently have two proxy servers running in my environment, and I want to 
upgrade Kamailio from version 5.4.7 to 5.6.

Can I recompile the Kamailio service before restarting it without downtime ? 
Will there be any impact on my production environment if I recompile Kamailio 
to the newer version? If there is no impact, I expect approximately 2 minutes 
of downtime during the service restart.

Here's the scenario:

No Downtime:
Clone the Kamailio repository with git clone 
https://github.com/kamailio/kamailio.git
Navigate to the Kamailio directory with cd kamailio
Update the modules.lst file with any necessary additions
Compile with make
Install with make install
Downtime:
Restart the Kamailio service.


Please advise on this.

Thanks.
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: compile without downtime

2024-04-17 Thread Yuriy G via sr-users
If you do not store dialogs in the memory and not rely on transactional
variables used for passing data between request/reply handling there is
nothing bad regarding the downtime as state handled by the UA but not by
proxy

If you depend on such things the migration is really depends on your
infrastructure ( using DNS as failover or  VRRP and HA, or build cluster
with DMQ, or distribute data between nodes over database) so in general
advice - have multiple instances and transit traffic to one while upgrading
another...

On Wed, Apr 17, 2024, 18:59 satyaprakash ch via sr-users <
sr-users@lists.kamailio.org> wrote:

> HI
>
> I currently have two proxy servers running in my environment, and I want
> to upgrade Kamailio from version 5.4.7 to 5.6.
>
> Can I recompile the Kamailio service before restarting it without downtime
> ? Will there be any impact on my production environment if I recompile
> Kamailio to the newer version? If there is no impact, I expect
> approximately 2 minutes of downtime during the service restart.
>
> Here's the scenario:
>
> *No Downtime:*
> Clone the Kamailio repository with git clone
> https://github.com/kamailio/kamailio.git
> Navigate to the Kamailio directory with cd kamailio
> Update the modules.lst file with any necessary additions
> Compile with make
> Install with make install
>
> *Downtime:*Restart the Kamailio service.
>
>
> Please advise on this.
>
> Thanks.
> __
> Kamailio - Users Mailing List - Non Commercial Discussions
> To unsubscribe send an email to sr-users-le...@lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to
> the sender!
> Edit mailing list options or unsubscribe:
>
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] compile without downtime

2024-04-17 Thread satyaprakash ch via sr-users
HI

I currently have two proxy servers running in my environment, and I want to
upgrade Kamailio from version 5.4.7 to 5.6.

Can I recompile the Kamailio service before restarting it without downtime
? Will there be any impact on my production environment if I recompile
Kamailio to the newer version? If there is no impact, I expect
approximately 2 minutes of downtime during the service restart.

Here's the scenario:

*No Downtime:*
Clone the Kamailio repository with git clone
https://github.com/kamailio/kamailio.git
Navigate to the Kamailio directory with cd kamailio
Update the modules.lst file with any necessary additions
Compile with make
Install with make install

*Downtime:*Restart the Kamailio service.


Please advise on this.

Thanks.
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: Problem with logrotate in Ubuntu 22.04!

2024-04-17 Thread Henning Westerholt via sr-users
Hello,

try to use:

postrotate
/usr/lib/rsyslog/rsyslog-rotate 2> /dev/null || true
Endscript

Cheers,

Henning

> -Original Message-
> From: christian.marinelli--- via sr-users 
> Sent: Dienstag, 16. April 2024 18:27
> To: sr-users@lists.kamailio.org
> Cc: christian.marine...@hotmail.it
> Subject: [SR-Users] Problem with logrotate in Ubuntu 22.04!
> 
> Hi all,
> i set up a simple Kamailio SIP server with the latest stable versione.
> Than, by following the documntation, i tried to set up a file log instead of 
> the
> standard syslog log, so i changed the syslog.conf by adding this lines:
> 
> # don't log messages with LOG_LOCAL0 in /var/log/syslog anymore
> *.*;auth,authpriv.none,local0.none  -/var/log/syslog
> 
> #
> # log messages with LOG_LOCAL0 in /var/log/kamailio.log
> local0.*-/var/log/kamailio.log
> 
> Then, i created a kamailio file in /etc/logrotate.d with this content to 
> manage the
> log rotation:
> 
> 
> /var/log/kamailio.log {
> su root root
> daily
> rotate 7
> compress
> delaycompress
> missingok
> notifempty
> create 0640 syslog adm
> postrotate
> /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null 
> || true
> endscript
> }
> 
> I found all these information in
> https://www.kamailio.org/wikidocs/tutorials/3.2.x/syslog/
> Unfortunatly, in my Ubuntu 22.04 server there isn't a syslogd.pid file in 
> that path
> so the logrotation doesn't work.
> Can anyone help me to understand the problem?
> Thank you so much in advance
> Christian
> __
> Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send
> an email to sr-users-le...@lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to the 
> sender!
> Edit mailing list options or unsubscribe:
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe: