Re: [SR-Users] kamailio it does not start after reboot

2018-03-30 Thread Atux Atux
It was a broken installation. Reinstalled and now it works fine.
Thanks a lot for your time.


On Wed, Mar 28, 2018 at 4:38 PM, Tomi Hakkarainen  wrote:

> Yo Atux,
>
> You have some configuration error on line 150 on your kamailio
> configuration file /etc/kamailio/kamailio.cfg
> Check and correct that next ...
>
> Tomi
>
>
> On 28 Mar 2018, at 16.30, Atux Atux  wrote:
>
> here are the outputs of the commands i issued:
>
>
> root@debian:~# systemctl status kamailio.service >error.txt
> ● kamailio.service - Kamailio Server
>Loaded: loaded (/etc/systemd/system/kamailio.service; enabled)
>Active: failed (Result: exit-code) since Wed 2018-03-28 16:07:22 EEST;
> 17min ago
>   Process: 410 ExecStart=/usr/sbin/kamctl start (code=exited,
> status=1/FAILURE)
>
> Mar 28 16:07:18 debian kamctl[410]: ** INFO: Starting Kamailio :
>
> *Mar 28 16:07:18 debian kamailio[460]: CRITICAL:  [core/cfg.y:3450]:
> yyerror_at(): parse error in config file /etc/kamailio//kamailio.cfg, line
> 150, column 7: syntax error*
> Mar 28 16:07:18 debian kamailio[460]: CRITICAL:  [core/cfg.y:3450]:
> yyerror_at(): parse error in config file /etc/kamaili
> o//kamailio.cfg, line 150, column 7:
> Mar 28 16:07:18 debian kamailio[460]: INFO:  [core/sctp_core.c:53]:
> sctp_core_destroy(): SCTP API not initialized
> Mar 28 16:07:22 debian kamctl[410]: ** ERROR: PID file
> /var/run/kamailio.pid does not exist -- Kamailio start failed
> Mar 28 16:07:22 debian systemd[1]: kamailio.service: control process
> exited, code=exited status=1
> Mar 28 16:07:22 debian systemd[1]: Failed to start Kamailio Server.
> Mar 28 16:07:22 debian systemd[1]: Unit kamailio.service entered failed
> state.
> root@debian:~#
> 
> --
> root@debian:~# journalctl -xn >> error.txt
>
> ● kamailio.service - Kamailio Server
>Loaded: loaded (/etc/systemd/system/kamailio.service; enabled)
>Active: failed (Result: exit-code) since Wed 2018-03-28 16:07:22 EEST;
> 17min ago
>   Process: 410 ExecStart=/usr/sbin/kamctl start (code=exited,
> status=1/FAILURE)
>
> Mar 28 16:07:18 debian kamctl[410]: ** INFO: Starting Kamailio :
> Mar 28 16:07:18 debian kamailio[460]: CRITICAL:  [core/cfg.y:3450]:
> yyerror_at(): parse error in config file /etc/kamailio//kamailio.cfg, line
> 150, column 7: syntax error
> Mar 28 16:07:18 debian kamailio[460]: CRITICAL:  [core/cfg.y:3450]:
> yyerror_at(): parse error in config file /etc/kamailio//kamailio.cfg, line
> 150, column 7:
> Mar 28 16:07:18 debian kamailio[460]: INFO:  [core/sctp_core.c:53]:
> sctp_core_destroy(): SCTP API not initialized
> Mar 28 16:07:22 debian kamctl[410]: ** ERROR: PID file
> /var/run/kamailio.pid does not exist -- Kamailio start failed
> Mar 28 16:07:22 debian systemd[1]: kamailio.service: control process
> exited, code=exited status=1
> Mar 28 16:07:22 debian systemd[1]: Failed to start Kamailio Server.
> Mar 28 16:07:22 debian systemd[1]: Unit kamailio.service entered failed
> state.
> -- Logs begin at Wed 2018-03-28 16:07:17 EEST, end at Wed 2018-03-28
> 16:24:19 EEST. --
> Mar 28 16:07:22 debian systemd[1]: Starting Update UTMP about System
> Runlevel Changes...
> -- Subject: Unit systemd-update-utmp-runlevel.service has begun with
> start-up
> -- Defined-By: systemd
> -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
> --
> -- Unit systemd-update-utmp-runlevel.service has begun starting up.
> Mar 28 16:07:22 debian systemd[1]: Started Update UTMP about System
> Runlevel Changes.
> -- Subject: Unit systemd-update-utmp-runlevel.service has finished
> start-up
> -- Defined-By: systemd
> -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
> --
> -- Unit systemd-update-utmp-runlevel.service has finished starting up.
> --
> -- The start-up result is done.
> Mar 28 16:07:22 debian systemd[1]: Startup finished in 1.928s (kernel) +
> 5.439s (userspace) = 7.367s.
> -- Subject: System start-up is now complete
> -- Defined-By: systemd
> -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
> --
> -- All system services necessary queued for starting at boot have been
> -- successfully started. Note that this does not mean that the machine is
> -- now idle as services might still be busy with completing start-up.
> --
> -- Kernel start-up required 1928374 microseconds.
> --
> -- Initial RAM disk start-up required INITRD_USEC microseconds.
> --
> -- Userspace start-up required 5439009 microseconds.
> Mar 28 16:17:01 debian CRON[1233]: pam_unix(cron:session): session opened
> for user root by (uid=0)
> Mar 28 16:17:01 debian CRON[1234]: (root) CMD (   cd / && run-parts
> --report /etc/cron.hourly)
> Mar 28 16:17:01 debian CRON[1233]: pam_unix(cron:session): session closed
> for user root
> Mar 28 16:22:39 debian systemd[1]: Starting Cleanup of Temporary
> Directories...
> -- Subject: Unit systemd-tmpfiles-clean.service has begun with start-up
> -- Defined-By: systemd
> 

Re: [SR-Users] kamailio it does not start after reboot

2018-03-28 Thread Tomi Hakkarainen
Yo Atux,

You have some configuration error on line 150 on your kamailio configuration 
file /etc/kamailio/kamailio.cfg
Check and correct that next ...

Tomi

> On 28 Mar 2018, at 16.30, Atux Atux  wrote:
> 
> here are the outputs of the commands i issued:
> 
> 
> root@debian:~# systemctl status kamailio.service >error.txt
> ● kamailio.service - Kamailio Server
>Loaded: loaded (/etc/systemd/system/kamailio.service; enabled)
>Active: failed (Result: exit-code) since Wed 2018-03-28 16:07:22 EEST; 
> 17min ago
>   Process: 410 ExecStart=/usr/sbin/kamctl start (code=exited, 
> status=1/FAILURE)
> 
> Mar 28 16:07:18 debian kamctl[410]: ** INFO: Starting Kamailio :
> Mar 28 16:07:18 debian kamailio[460]: CRITICAL:  [core/cfg.y:3450]: 
> yyerror_at(): parse error in config file /etc/kamaili
> o//kamailio.cfg, line 150, column 7: syntax error
> Mar 28 16:07:18 debian kamailio[460]: CRITICAL:  [core/cfg.y:3450]: 
> yyerror_at(): parse error in config file /etc/kamaili
> o//kamailio.cfg, line 150, column 7:
> Mar 28 16:07:18 debian kamailio[460]: INFO:  [core/sctp_core.c:53]: 
> sctp_core_destroy(): SCTP API not initialized
> Mar 28 16:07:22 debian kamctl[410]: ** ERROR: PID file /var/run/kamailio.pid 
> does not exist -- Kamailio start failed
> Mar 28 16:07:22 debian systemd[1]: kamailio.service: control process exited, 
> code=exited status=1
> Mar 28 16:07:22 debian systemd[1]: Failed to start Kamailio Server.
> Mar 28 16:07:22 debian systemd[1]: Unit kamailio.service entered failed state.
> root@debian:~#
> --
> root@debian:~# journalctl -xn >> error.txt
> 
> ● kamailio.service - Kamailio Server
>Loaded: loaded (/etc/systemd/system/kamailio.service; enabled)
>Active: failed (Result: exit-code) since Wed 2018-03-28 16:07:22 EEST; 
> 17min ago
>   Process: 410 ExecStart=/usr/sbin/kamctl start (code=exited, 
> status=1/FAILURE)
> 
> Mar 28 16:07:18 debian kamctl[410]: ** INFO: Starting Kamailio :
> Mar 28 16:07:18 debian kamailio[460]: CRITICAL:  [core/cfg.y:3450]: 
> yyerror_at(): parse error in config file /etc/kamailio//kamailio.cfg, line 
> 150, column 7: syntax error
> Mar 28 16:07:18 debian kamailio[460]: CRITICAL:  [core/cfg.y:3450]: 
> yyerror_at(): parse error in config file /etc/kamailio//kamailio.cfg, line 
> 150, column 7:
> Mar 28 16:07:18 debian kamailio[460]: INFO:  [core/sctp_core.c:53]: 
> sctp_core_destroy(): SCTP API not initialized
> Mar 28 16:07:22 debian kamctl[410]: ** ERROR: PID file /var/run/kamailio.pid 
> does not exist -- Kamailio start failed
> Mar 28 16:07:22 debian systemd[1]: kamailio.service: control process exited, 
> code=exited status=1
> Mar 28 16:07:22 debian systemd[1]: Failed to start Kamailio Server.
> Mar 28 16:07:22 debian systemd[1]: Unit kamailio.service entered failed state.
> -- Logs begin at Wed 2018-03-28 16:07:17 EEST, end at Wed 2018-03-28 16:24:19 
> EEST. --
> Mar 28 16:07:22 debian systemd[1]: Starting Update UTMP about System Runlevel 
> Changes...
> -- Subject: Unit systemd-update-utmp-runlevel.service has begun with start-up
> -- Defined-By: systemd
> -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel 
> 
> -- 
> -- Unit systemd-update-utmp-runlevel.service has begun starting up.
> Mar 28 16:07:22 debian systemd[1]: Started Update UTMP about System Runlevel 
> Changes.
> -- Subject: Unit systemd-update-utmp-runlevel.service has finished start-up
> -- Defined-By: systemd
> -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel 
> 
> -- 
> -- Unit systemd-update-utmp-runlevel.service has finished starting up.
> -- 
> -- The start-up result is done.
> Mar 28 16:07:22 debian systemd[1]: Startup finished in 1.928s (kernel) + 
> 5.439s (userspace) = 7.367s.
> -- Subject: System start-up is now complete
> -- Defined-By: systemd
> -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel 
> 
> -- 
> -- All system services necessary queued for starting at boot have been
> -- successfully started. Note that this does not mean that the machine is
> -- now idle as services might still be busy with completing start-up.
> -- 
> -- Kernel start-up required 1928374 microseconds.
> -- 
> -- Initial RAM disk start-up required INITRD_USEC microseconds.
> -- 
> -- Userspace start-up required 5439009 microseconds.
> Mar 28 16:17:01 debian CRON[1233]: pam_unix(cron:session): session opened for 
> user root by (uid=0)
> Mar 28 16:17:01 debian CRON[1234]: (root) CMD (   cd / && run-parts --report 
> /etc/cron.hourly)
> Mar 28 16:17:01 debian CRON[1233]: pam_unix(cron:session): session closed for 
> user root
> Mar 28 16:22:39 debian systemd[1]: Starting Cleanup of Temporary 
> Directories...
> -- Subject: Unit systemd-tmpfiles-clean.service h

Re: [SR-Users] kamailio it does not start after reboot

2018-03-28 Thread Daniel Tryba
On Wed, Mar 28, 2018 at 04:30:45PM +0300, Atux Atux wrote:
> here are the outputs of the commands i issued:

You should really start read the output of your commands:
 
> Mar 28 16:07:18 debian kamailio[460]: CRITICAL:  [core/cfg.y:3450]:
> yyerror_at(): parse error in config file /etc/kamaili
> o//kamailio.cfg, line 150, column 7: syntax error

So what the error in your config?


___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] kamailio it does not start after reboot

2018-03-28 Thread Atux Atux
here are the outputs of the commands i issued:


root@debian:~# systemctl status kamailio.service >error.txt
● kamailio.service - Kamailio Server
   Loaded: loaded (/etc/systemd/system/kamailio.service; enabled)
   Active: failed (Result: exit-code) since Wed 2018-03-28 16:07:22 EEST;
17min ago
  Process: 410 ExecStart=/usr/sbin/kamctl start (code=exited,
status=1/FAILURE)

Mar 28 16:07:18 debian kamctl[410]: ** INFO: Starting Kamailio :
Mar 28 16:07:18 debian kamailio[460]: CRITICAL:  [core/cfg.y:3450]:
yyerror_at(): parse error in config file /etc/kamaili
o//kamailio.cfg, line 150, column 7: syntax error
Mar 28 16:07:18 debian kamailio[460]: CRITICAL:  [core/cfg.y:3450]:
yyerror_at(): parse error in config file /etc/kamaili
o//kamailio.cfg, line 150, column 7:
Mar 28 16:07:18 debian kamailio[460]: INFO:  [core/sctp_core.c:53]:
sctp_core_destroy(): SCTP API not initialized
Mar 28 16:07:22 debian kamctl[410]: ** ERROR: PID file
/var/run/kamailio.pid does not exist -- Kamailio start failed
Mar 28 16:07:22 debian systemd[1]: kamailio.service: control process
exited, code=exited status=1
Mar 28 16:07:22 debian systemd[1]: Failed to start Kamailio Server.
Mar 28 16:07:22 debian systemd[1]: Unit kamailio.service entered failed
state.
root@debian:~#
--
root@debian:~# journalctl -xn >> error.txt

● kamailio.service - Kamailio Server
   Loaded: loaded (/etc/systemd/system/kamailio.service; enabled)
   Active: failed (Result: exit-code) since Wed 2018-03-28 16:07:22 EEST;
17min ago
  Process: 410 ExecStart=/usr/sbin/kamctl start (code=exited,
status=1/FAILURE)

Mar 28 16:07:18 debian kamctl[410]: ** INFO: Starting Kamailio :
Mar 28 16:07:18 debian kamailio[460]: CRITICAL:  [core/cfg.y:3450]:
yyerror_at(): parse error in config file /etc/kamailio//kamailio.cfg, line
150, column 7: syntax error
Mar 28 16:07:18 debian kamailio[460]: CRITICAL:  [core/cfg.y:3450]:
yyerror_at(): parse error in config file /etc/kamailio//kamailio.cfg, line
150, column 7:
Mar 28 16:07:18 debian kamailio[460]: INFO:  [core/sctp_core.c:53]:
sctp_core_destroy(): SCTP API not initialized
Mar 28 16:07:22 debian kamctl[410]: ** ERROR: PID file
/var/run/kamailio.pid does not exist -- Kamailio start failed
Mar 28 16:07:22 debian systemd[1]: kamailio.service: control process
exited, code=exited status=1
Mar 28 16:07:22 debian systemd[1]: Failed to start Kamailio Server.
Mar 28 16:07:22 debian systemd[1]: Unit kamailio.service entered failed
state.
-- Logs begin at Wed 2018-03-28 16:07:17 EEST, end at Wed 2018-03-28
16:24:19 EEST. --
Mar 28 16:07:22 debian systemd[1]: Starting Update UTMP about System
Runlevel Changes...
-- Subject: Unit systemd-update-utmp-runlevel.service has begun with
start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit systemd-update-utmp-runlevel.service has begun starting up.
Mar 28 16:07:22 debian systemd[1]: Started Update UTMP about System
Runlevel Changes.
-- Subject: Unit systemd-update-utmp-runlevel.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit systemd-update-utmp-runlevel.service has finished starting up.
-- 
-- The start-up result is done.
Mar 28 16:07:22 debian systemd[1]: Startup finished in 1.928s (kernel) +
5.439s (userspace) = 7.367s.
-- Subject: System start-up is now complete
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- All system services necessary queued for starting at boot have been
-- successfully started. Note that this does not mean that the machine is
-- now idle as services might still be busy with completing start-up.
-- 
-- Kernel start-up required 1928374 microseconds.
-- 
-- Initial RAM disk start-up required INITRD_USEC microseconds.
-- 
-- Userspace start-up required 5439009 microseconds.
Mar 28 16:17:01 debian CRON[1233]: pam_unix(cron:session): session opened
for user root by (uid=0)
Mar 28 16:17:01 debian CRON[1234]: (root) CMD (   cd / && run-parts
--report /etc/cron.hourly)
Mar 28 16:17:01 debian CRON[1233]: pam_unix(cron:session): session closed
for user root
Mar 28 16:22:39 debian systemd[1]: Starting Cleanup of Temporary
Directories...
-- Subject: Unit systemd-tmpfiles-clean.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit systemd-tmpfiles-clean.service has begun starting up.
Mar 28 16:22:39 debian systemd[1]: Started Cleanup of Temporary Directories.
-- Subject: Unit systemd-tmpfiles-clean.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit systemd-tmpfiles-clean.service has finished starting up.
-- 
-- The start-up result is done.
Mar 28 16:24:19 debian sshd[1240]: Accepted password for root from
192.168.1.143 por

Re: [SR-Users] kamailio it does not start after reboot

2018-03-28 Thread Aqs Younas
Try to run  'journalctl -xn'. Most probably you will see the error there.
Make sure you have kamailio.service enable to run on reboot.
'systemctl enable kamailio.service'

Br, Aqs.

On 28 March 2018 at 17:51, Atux Atux  wrote:

> i am installing Kamailio using apt in a debian 8 machine by following this
> guide
> http://kb.asipto.com/kamailio:skype-like-service-in-less-than-one-hour
> i managed to create a few users and through Jitsi to talk to each other.
> once i reboot the machine, then the problems start and Kamailio cannot
> start.
> here are a few details from my system.
> -/etc/apt/sources.list the part for Kamailio
> #Kamailio
> deb http://deb.kamailio.org/kamailio51 jessie  main
> deb-src http://deb.kamailio.org/kamailio51 jessie  main
>
>
> -Version info
> Distributor ID:Debian
> Description:Debian GNU/Linux 8.10 (jessie)
> Release:8.10
> Codename:jessie
>
> -root@debian:~# systemctl start kamailio
> Job for kamailio.service failed. See 'systemctl status kamailio.service'
> and 'journalctl -xn' for details.
>
> root@debian:~# /etc/init.d/kamailio start
> [] Starting kamailio (via systemctl): kamailio.serviceJob for
> kamailio.service failed. See 'systemctl status kamailio.service' and
> 'journalctl -xn' for details.
>  failed!
>
>
> Any ideas, please?
>
>
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] kamailio it does not start after reboot

2018-03-28 Thread Tomi Hakkarainen
Hi,

have you checked the systemd logs for more details where the startup fails ?

The output of the following commands 
# systemctl status kamailio.service
# journalctl -xn

maybe grep with some good keyword “error" or something… 


Tomi

> On 28 Mar 2018, at 15.51, Atux Atux  wrote:
> 
> i am installing Kamailio using apt in a debian 8 machine by following this 
> guide
> http://kb.asipto.com/kamailio:skype-like-service-in-less-than-one-hour 
> 
> i managed to create a few users and through Jitsi to talk to each other.
> once i reboot the machine, then the problems start and Kamailio cannot start.
> here are a few details from my system.
> -/etc/apt/sources.list the part for Kamailio
> #Kamailio
> deb http://deb.kamailio.org/kamailio51 
>  jessie  main
> deb-src http://deb.kamailio.org/kamailio51 
>  jessie  main
> 
> 
> -Version info
> Distributor ID:Debian
> Description:Debian GNU/Linux 8.10 (jessie)
> Release:8.10
> Codename:jessie
> 
> -root@debian:~# systemctl start kamailio
> Job for kamailio.service failed. See 'systemctl status kamailio.service' and 
> 'journalctl -xn' for details.
> 
> root@debian:~# /etc/init.d/kamailio start
> [] Starting kamailio (via systemctl): kamailio.serviceJob for 
> kamailio.service failed. See 'systemctl status kamailio.service' and 
> 'journalctl -xn' for details.
>  failed!
> 
> 
> Any ideas, please?
> 
> 
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users