Re: [OpenSIPS-Users] Restart=always and After=mysql.service
Are you running this on a container / chrooted env? On Sun, Sep 20, 2015 at 12:39 AM, Nabeelwrote: > This is what it says: > > >> Sep 20 05:21:45 server1.sipdomain.com systemd[1]: Starting OpenSIPS is a >> very fast and flexible SIP (RFC3261) server... >> -- Subject: Unit opensips.service has begun with start-up >> -- Defined-By: systemd >> -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel >> -- >> -- Unit opensips.service has begun starting up. >> Sep 20 05:21:45 server1.sipdomain.com systemd[4022]: Failed at step EXEC >> spawning /usr/sbin/opensips: Permission denied >> -- Subject: Process /usr/sbin/opensips could not be executed >> -- Defined-By: systemd >> -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel >> -- >> -- The process /usr/sbin/opensips could not be executed and failed. >> -- >> -- The error number returned while executing this process is 13. >> Sep 20 05:21:45 server1.sipdomain.com systemd[1]: opensips.service: >> control process exited, code=exited status=203 >> Sep 20 05:21:45 server1.sipdomain.com systemd[1]: Failed to start >> OpenSIPS is a very fast and flexible SIP (RFC3261) server. >> -- Subject: Unit opensips.service has failed >> -- Defined-By: systemd >> -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel >> -- >> -- Unit opensips.service has failed. >> -- >> -- The result is failed. >> Sep 20 05:21:45 server1.sipdomain.com systemd[1]: Unit opensips.service >> entered failed state. > > > > On 20 September 2015 at 05:12, Podrigal, Aron > wrote: > >> Do you see anything informative in your journal after trying to start >> opensips? >> >> sudo journalctl -xn 350 >> >> On Sat, Sep 19, 2015 at 11:46 PM, Nabeel wrote: >> >>> Please see the strace output at these links: >>> >>> http://pastebin.com/G1Uv5s1E >>> >>> http://pastebin.com/gnesw4tW >>> >>> On 20 September 2015 at 04:30, Podrigal, Aron >>> wrote: >>> Can you post the strace output by running sudo strace -ff -o /tmp/opensips_strace_output systemctl start opensips.service cat /tmp/opensips_strace_output* That will help see where the error occurs. On Sat, Sep 19, 2015 at 11:21 PM, Nabeel wrote: > Why can't the service file be automatically generated at the time of > installation/compilation on the relevant OS? > It seems to be quite a basic feature missing. > > On 20 September 2015 at 04:16, Nabeel wrote: > >> Unfortunately, changing the user/group to 'root' did not work either. >> >> The same error occurs and OpenSIPS fails to start: >> >> Failed at step EXEC spawning /usr/sbin/opensips: Permission denied >> >> >> Hasn't anyone else seen this on CentOS? >> >> >> On 18 September 2015 at 22:21, sevpal wrote: >> >>> If you change User= and Group= in the service file to root, you >>> might not see such a message. To run as user opensips, then user >>> opensips >>> must exist on the system; in addition, ownership on files/folders that >>> will >>> be accessed by Opensips needs to be changed. >>> *From:* Nabeel >>> *Sent:* Tuesday, September 15, 2015 9:47 PM >>> *To:* OpenSIPS users mailling list >>> *Subject:* Re: [OpenSIPS-Users] Restart=always and >>> After=mysql.service >>> >>> I tried that service file on CentOS 7 but got the following error >>> when trying to start the service: >>> >>> Failed at step EXEC spawning /usr/sbin/opensips: Permission denied >>> >>> >>> Changing permissions of that directory did not solve the problem: >>> >>> chmod +x /usr/sbin/opensips >>> >>> chmod -R 777 /usr/sbin/opensips >>> >>> Does the service file need modification for CentOS? >>> >>> >>> On 7 September 2015 at 19:14, Nabeel >>> wrote: >>> Hi, Most of my services have a .service file located at /usr/lib/systemd/system where I can set 'Restart=always' or 'After=mysql.service' / 'After=mariadb.service' to make sure the server starts at the appropriate times. However, there is no such .service file for OpenSIPS. Please advise how to create this .service file for OpenSIPS. I heard about 'respawn' but don't know how exactly to use this and would prefer to use a .service file like other services. >>> >>> >>> -- >>> ___ >>> Users mailing list >>> Users@lists.opensips.org >>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >>> >>> >>>
Re: [OpenSIPS-Users] Restart=always and After=mysql.service
No, I just compiled and installed OpenSIPS in the normal manner while logged in as root. On 20 September 2015 at 06:00, Podrigal, Aronwrote: > Are you running this on a container / chrooted env? > > On Sun, Sep 20, 2015 at 12:39 AM, Nabeel wrote: > >> This is what it says: >> >> >>> Sep 20 05:21:45 server1.sipdomain.com systemd[1]: Starting OpenSIPS is >>> a very fast and flexible SIP (RFC3261) server... >>> -- Subject: Unit opensips.service has begun with start-up >>> -- Defined-By: systemd >>> -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel >>> -- >>> -- Unit opensips.service has begun starting up. >>> Sep 20 05:21:45 server1.sipdomain.com systemd[4022]: Failed at step >>> EXEC spawning /usr/sbin/opensips: Permission denied >>> -- Subject: Process /usr/sbin/opensips could not be executed >>> -- Defined-By: systemd >>> -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel >>> -- >>> -- The process /usr/sbin/opensips could not be executed and failed. >>> -- >>> -- The error number returned while executing this process is 13. >>> Sep 20 05:21:45 server1.sipdomain.com systemd[1]: opensips.service: >>> control process exited, code=exited status=203 >>> Sep 20 05:21:45 server1.sipdomain.com systemd[1]: Failed to start >>> OpenSIPS is a very fast and flexible SIP (RFC3261) server. >>> -- Subject: Unit opensips.service has failed >>> -- Defined-By: systemd >>> -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel >>> -- >>> -- Unit opensips.service has failed. >>> -- >>> -- The result is failed. >>> Sep 20 05:21:45 server1.sipdomain.com systemd[1]: Unit opensips.service >>> entered failed state. >> >> >> >> On 20 September 2015 at 05:12, Podrigal, Aron >> wrote: >> >>> Do you see anything informative in your journal after trying to start >>> opensips? >>> >>> sudo journalctl -xn 350 >>> >>> On Sat, Sep 19, 2015 at 11:46 PM, Nabeel >>> wrote: >>> Please see the strace output at these links: http://pastebin.com/G1Uv5s1E http://pastebin.com/gnesw4tW On 20 September 2015 at 04:30, Podrigal, Aron wrote: > Can you post the strace output by running > > sudo strace -ff -o /tmp/opensips_strace_output systemctl start > opensips.service > cat /tmp/opensips_strace_output* > > That will help see where the error occurs. > > On Sat, Sep 19, 2015 at 11:21 PM, Nabeel > wrote: > >> Why can't the service file be automatically generated at the time of >> installation/compilation on the relevant OS? >> It seems to be quite a basic feature missing. >> >> On 20 September 2015 at 04:16, Nabeel >> wrote: >> >>> Unfortunately, changing the user/group to 'root' did not work either. >>> >>> The same error occurs and OpenSIPS fails to start: >>> >>> Failed at step EXEC spawning /usr/sbin/opensips: Permission denied >>> >>> >>> Hasn't anyone else seen this on CentOS? >>> >>> >>> On 18 September 2015 at 22:21, sevpal wrote: >>> If you change User= and Group= in the service file to root, you might not see such a message. To run as user opensips, then user opensips must exist on the system; in addition, ownership on files/folders that will be accessed by Opensips needs to be changed. *From:* Nabeel *Sent:* Tuesday, September 15, 2015 9:47 PM *To:* OpenSIPS users mailling list *Subject:* Re: [OpenSIPS-Users] Restart=always and After=mysql.service I tried that service file on CentOS 7 but got the following error when trying to start the service: Failed at step EXEC spawning /usr/sbin/opensips: Permission denied Changing permissions of that directory did not solve the problem: chmod +x /usr/sbin/opensips chmod -R 777 /usr/sbin/opensips Does the service file need modification for CentOS? On 7 September 2015 at 19:14, Nabeel wrote: > Hi, > > Most of my services have a .service file located at > /usr/lib/systemd/system where I can set 'Restart=always' or > 'After=mysql.service' / 'After=mariadb.service' to make sure the > server > starts at the appropriate times. > > However, there is no such .service file for OpenSIPS. Please > advise how to create this .service file for OpenSIPS. I heard about > 'respawn' but don't know how exactly to use this and would prefer to > use a >
Re: [OpenSIPS-Users] Restart=always and After=mysql.service
This is what it says: > Sep 20 05:21:45 server1.sipdomain.com systemd[1]: Starting OpenSIPS is a > very fast and flexible SIP (RFC3261) server... > -- Subject: Unit opensips.service has begun with start-up > -- Defined-By: systemd > -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel > -- > -- Unit opensips.service has begun starting up. > Sep 20 05:21:45 server1.sipdomain.com systemd[4022]: Failed at step EXEC > spawning /usr/sbin/opensips: Permission denied > -- Subject: Process /usr/sbin/opensips could not be executed > -- Defined-By: systemd > -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel > -- > -- The process /usr/sbin/opensips could not be executed and failed. > -- > -- The error number returned while executing this process is 13. > Sep 20 05:21:45 server1.sipdomain.com systemd[1]: opensips.service: > control process exited, code=exited status=203 > Sep 20 05:21:45 server1.sipdomain.com systemd[1]: Failed to start > OpenSIPS is a very fast and flexible SIP (RFC3261) server. > -- Subject: Unit opensips.service has failed > -- Defined-By: systemd > -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel > -- > -- Unit opensips.service has failed. > -- > -- The result is failed. > Sep 20 05:21:45 server1.sipdomain.com systemd[1]: Unit opensips.service > entered failed state. On 20 September 2015 at 05:12, Podrigal, Aronwrote: > Do you see anything informative in your journal after trying to start > opensips? > > sudo journalctl -xn 350 > > On Sat, Sep 19, 2015 at 11:46 PM, Nabeel wrote: > >> Please see the strace output at these links: >> >> http://pastebin.com/G1Uv5s1E >> >> http://pastebin.com/gnesw4tW >> >> On 20 September 2015 at 04:30, Podrigal, Aron >> wrote: >> >>> Can you post the strace output by running >>> >>> sudo strace -ff -o /tmp/opensips_strace_output systemctl start >>> opensips.service >>> cat /tmp/opensips_strace_output* >>> >>> That will help see where the error occurs. >>> >>> On Sat, Sep 19, 2015 at 11:21 PM, Nabeel >>> wrote: >>> Why can't the service file be automatically generated at the time of installation/compilation on the relevant OS? It seems to be quite a basic feature missing. On 20 September 2015 at 04:16, Nabeel wrote: > Unfortunately, changing the user/group to 'root' did not work either. > > The same error occurs and OpenSIPS fails to start: > > Failed at step EXEC spawning /usr/sbin/opensips: Permission denied > > > Hasn't anyone else seen this on CentOS? > > > On 18 September 2015 at 22:21, sevpal wrote: > >> If you change User= and Group= in the service file to root, you might >> not see such a message. To run as user opensips, then user opensips must >> exist on the system; in addition, ownership on files/folders that will be >> accessed by Opensips needs to be changed. >> *From:* Nabeel >> *Sent:* Tuesday, September 15, 2015 9:47 PM >> *To:* OpenSIPS users mailling list >> *Subject:* Re: [OpenSIPS-Users] Restart=always and >> After=mysql.service >> >> I tried that service file on CentOS 7 but got the following error >> when trying to start the service: >> >> Failed at step EXEC spawning /usr/sbin/opensips: Permission denied >> >> >> Changing permissions of that directory did not solve the problem: >> >> chmod +x /usr/sbin/opensips >> >> chmod -R 777 /usr/sbin/opensips >> >> Does the service file need modification for CentOS? >> >> >> On 7 September 2015 at 19:14, Nabeel wrote: >> >>> Hi, >>> >>> Most of my services have a .service file located at >>> /usr/lib/systemd/system where I can set 'Restart=always' or >>> 'After=mysql.service' / 'After=mariadb.service' to make sure the server >>> starts at the appropriate times. >>> >>> However, there is no such .service file for OpenSIPS. Please advise >>> how to create this .service file for OpenSIPS. I heard about 'respawn' >>> but >>> don't know how exactly to use this and would prefer to use a .service >>> file >>> like other services. >>> >> >> >> -- >> ___ >> Users mailing list >> Users@lists.opensips.org >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >> >> >> ___ >> Users mailing list >> Users@lists.opensips.org >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >> >> > ___ Users mailing list Users@lists.opensips.org
Re: [OpenSIPS-Users] Restart=always and After=mysql.service
Why can't the service file be automatically generated at the time of installation/compilation on the relevant OS? It seems to be quite a basic feature missing. On 20 September 2015 at 04:16, Nabeelwrote: > Unfortunately, changing the user/group to 'root' did not work either. > > The same error occurs and OpenSIPS fails to start: > > Failed at step EXEC spawning /usr/sbin/opensips: Permission denied > > > Hasn't anyone else seen this on CentOS? > > > On 18 September 2015 at 22:21, sevpal wrote: > >> If you change User= and Group= in the service file to root, you might not >> see such a message. To run as user opensips, then user opensips must exist >> on the system; in addition, ownership on files/folders that will be >> accessed by Opensips needs to be changed. >> *From:* Nabeel >> *Sent:* Tuesday, September 15, 2015 9:47 PM >> *To:* OpenSIPS users mailling list >> *Subject:* Re: [OpenSIPS-Users] Restart=always and After=mysql.service >> >> I tried that service file on CentOS 7 but got the following error when >> trying to start the service: >> >> Failed at step EXEC spawning /usr/sbin/opensips: Permission denied >> >> >> Changing permissions of that directory did not solve the problem: >> >> chmod +x /usr/sbin/opensips >> >> chmod -R 777 /usr/sbin/opensips >> >> Does the service file need modification for CentOS? >> >> >> On 7 September 2015 at 19:14, Nabeel wrote: >> >>> Hi, >>> >>> Most of my services have a .service file located at >>> /usr/lib/systemd/system where I can set 'Restart=always' or >>> 'After=mysql.service' / 'After=mariadb.service' to make sure the server >>> starts at the appropriate times. >>> >>> However, there is no such .service file for OpenSIPS. Please advise how >>> to create this .service file for OpenSIPS. I heard about 'respawn' but >>> don't know how exactly to use this and would prefer to use a .service file >>> like other services. >>> >> >> >> -- >> ___ >> Users mailing list >> Users@lists.opensips.org >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >> >> >> ___ >> Users mailing list >> Users@lists.opensips.org >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >> >> > ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Restart=always and After=mysql.service
Please see the strace output at these links: http://pastebin.com/G1Uv5s1E http://pastebin.com/gnesw4tW On 20 September 2015 at 04:30, Podrigal, Aronwrote: > Can you post the strace output by running > > sudo strace -ff -o /tmp/opensips_strace_output systemctl start > opensips.service > cat /tmp/opensips_strace_output* > > That will help see where the error occurs. > > On Sat, Sep 19, 2015 at 11:21 PM, Nabeel wrote: > >> Why can't the service file be automatically generated at the time of >> installation/compilation on the relevant OS? >> It seems to be quite a basic feature missing. >> >> On 20 September 2015 at 04:16, Nabeel wrote: >> >>> Unfortunately, changing the user/group to 'root' did not work either. >>> >>> The same error occurs and OpenSIPS fails to start: >>> >>> Failed at step EXEC spawning /usr/sbin/opensips: Permission denied >>> >>> >>> Hasn't anyone else seen this on CentOS? >>> >>> >>> On 18 September 2015 at 22:21, sevpal wrote: >>> If you change User= and Group= in the service file to root, you might not see such a message. To run as user opensips, then user opensips must exist on the system; in addition, ownership on files/folders that will be accessed by Opensips needs to be changed. *From:* Nabeel *Sent:* Tuesday, September 15, 2015 9:47 PM *To:* OpenSIPS users mailling list *Subject:* Re: [OpenSIPS-Users] Restart=always and After=mysql.service I tried that service file on CentOS 7 but got the following error when trying to start the service: Failed at step EXEC spawning /usr/sbin/opensips: Permission denied Changing permissions of that directory did not solve the problem: chmod +x /usr/sbin/opensips chmod -R 777 /usr/sbin/opensips Does the service file need modification for CentOS? On 7 September 2015 at 19:14, Nabeel wrote: > Hi, > > Most of my services have a .service file located at > /usr/lib/systemd/system where I can set 'Restart=always' or > 'After=mysql.service' / 'After=mariadb.service' to make sure the server > starts at the appropriate times. > > However, there is no such .service file for OpenSIPS. Please advise > how to create this .service file for OpenSIPS. I heard about 'respawn' > but > don't know how exactly to use this and would prefer to use a .service file > like other services. > -- ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users >>> >> >> ___ >> Users mailing list >> Users@lists.opensips.org >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >> >> > > > -- > Aron Podrigal > - > '101', '1110010', '110', '1101110' '101', '110', > '1100100', '1110010', '1101001', '1100111', '111', '1101100' > > P: '2b', '31', '33', '34', '37', '34', '35', '38', '36', '30', '39', '39' > > > ___ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Restart=always and After=mysql.service
Can you post the strace output by running sudo strace -ff -o /tmp/opensips_strace_output systemctl start opensips.service cat /tmp/opensips_strace_output* That will help see where the error occurs. On Sat, Sep 19, 2015 at 11:21 PM, Nabeelwrote: > Why can't the service file be automatically generated at the time of > installation/compilation on the relevant OS? > It seems to be quite a basic feature missing. > > On 20 September 2015 at 04:16, Nabeel wrote: > >> Unfortunately, changing the user/group to 'root' did not work either. >> >> The same error occurs and OpenSIPS fails to start: >> >> Failed at step EXEC spawning /usr/sbin/opensips: Permission denied >> >> >> Hasn't anyone else seen this on CentOS? >> >> >> On 18 September 2015 at 22:21, sevpal wrote: >> >>> If you change User= and Group= in the service file to root, you might >>> not see such a message. To run as user opensips, then user opensips must >>> exist on the system; in addition, ownership on files/folders that will be >>> accessed by Opensips needs to be changed. >>> *From:* Nabeel >>> *Sent:* Tuesday, September 15, 2015 9:47 PM >>> *To:* OpenSIPS users mailling list >>> *Subject:* Re: [OpenSIPS-Users] Restart=always and After=mysql.service >>> >>> I tried that service file on CentOS 7 but got the following error when >>> trying to start the service: >>> >>> Failed at step EXEC spawning /usr/sbin/opensips: Permission denied >>> >>> >>> Changing permissions of that directory did not solve the problem: >>> >>> chmod +x /usr/sbin/opensips >>> >>> chmod -R 777 /usr/sbin/opensips >>> >>> Does the service file need modification for CentOS? >>> >>> >>> On 7 September 2015 at 19:14, Nabeel wrote: >>> Hi, Most of my services have a .service file located at /usr/lib/systemd/system where I can set 'Restart=always' or 'After=mysql.service' / 'After=mariadb.service' to make sure the server starts at the appropriate times. However, there is no such .service file for OpenSIPS. Please advise how to create this .service file for OpenSIPS. I heard about 'respawn' but don't know how exactly to use this and would prefer to use a .service file like other services. >>> >>> >>> -- >>> ___ >>> Users mailing list >>> Users@lists.opensips.org >>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >>> >>> >>> ___ >>> Users mailing list >>> Users@lists.opensips.org >>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >>> >>> >> > > ___ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > -- Aron Podrigal - '101', '1110010', '110', '1101110' '101', '110', '1100100', '1110010', '1101001', '1100111', '111', '1101100' P: '2b', '31', '33', '34', '37', '34', '35', '38', '36', '30', '39', '39' ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Restart=always and After=mysql.service
Unfortunately, changing the user/group to 'root' did not work either. The same error occurs and OpenSIPS fails to start: Failed at step EXEC spawning /usr/sbin/opensips: Permission denied Hasn't anyone else seen this on CentOS? On 18 September 2015 at 22:21, sevpalwrote: > If you change User= and Group= in the service file to root, you might not > see such a message. To run as user opensips, then user opensips must exist > on the system; in addition, ownership on files/folders that will be > accessed by Opensips needs to be changed. > *From:* Nabeel > *Sent:* Tuesday, September 15, 2015 9:47 PM > *To:* OpenSIPS users mailling list > *Subject:* Re: [OpenSIPS-Users] Restart=always and After=mysql.service > > I tried that service file on CentOS 7 but got the following error when > trying to start the service: > > Failed at step EXEC spawning /usr/sbin/opensips: Permission denied > > > Changing permissions of that directory did not solve the problem: > > chmod +x /usr/sbin/opensips > > chmod -R 777 /usr/sbin/opensips > > Does the service file need modification for CentOS? > > > On 7 September 2015 at 19:14, Nabeel wrote: > >> Hi, >> >> Most of my services have a .service file located at >> /usr/lib/systemd/system where I can set 'Restart=always' or >> 'After=mysql.service' / 'After=mariadb.service' to make sure the server >> starts at the appropriate times. >> >> However, there is no such .service file for OpenSIPS. Please advise how >> to create this .service file for OpenSIPS. I heard about 'respawn' but >> don't know how exactly to use this and would prefer to use a .service file >> like other services. >> > > > -- > ___ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > > ___ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] OpenSips-CP Not Working
I checked the logs and they have the following information [Sat Sep 19 14:53:13.915427 2015] [:error] [pid 1928] [client 127.0.0.1:47528] PHP Warning: Creating default object from empty value in /var/www/opensips-cp/config/db.inc.php on line 25, referer: http://127.0.0.1/opensips-cp/web/ [Sat Sep 19 14:53:13.999544 2015] [:error] [pid 1928] [client 127.0.0.1:47528] PHP Fatal error: Call to undefined method MDB2_Error::setFetchMode() in /var/www/opensips-cp/web/db_connect.php on line 31, referer: http://127.0.0.1/opensips-cp/web/ Line 25 of db.inc.php is: * $config->db_driver = "mysql";* Line 31 of db_connect.php is: *$link->setFetchMode(MDB2_FETCHMODE_ASSOC);* I still don't understand what the problem is. Please help in solving this. Regards On Thu, Sep 17, 2015 at 12:06 AM, Giovanni Maruzzelliwrote: > Check the web server logs > > sent from my mobile, > Giovanni Maruzzelli > cell: +39 347 266 56 18 > On Sep 16, 2015 9:03 PM, "Muhammad Usman Shahid" < > usmanshahidmuham...@gmail.com> wrote: > >> The following error occurs in Javascript console when I try to login to >> Opensips-cp >> >> POST http://192.168.1.15/opensips-cp/web/login.php 500 (Internal Server >> Error) >> >> Please help >> >> On Wed, Sep 16, 2015 at 10:38 PM, Muhammad Usman Shahid < >> usmanshahidmuham...@gmail.com> wrote: >> >>> Hello, >>> >>> I am trying to run opensips-cp but after I input username and password >>> my browser opens "login.php" but nothing shows. >>> >>> I am using the following tutorial. >>> >>> >>> http://www.opensips.org/Documentation/Tutorials-OpenSIPSFreeSwitchIntegration >>> >>> Please help. >>> >>> -- >>> Muhammad Usman Shahid. >>> >> >> >> >> -- >> Muhammad Usman Shahid. >> >> ___ >> Users mailing list >> Users@lists.opensips.org >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >> >> > ___ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > -- Muhammad Usman Shahid. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Query regarding db_cachedb and cachedb_mongodb.
Hello, See the instructions at http://www.opensips.org/html/docs/modules/1.11.x/db_cachedb#id249688 Basically, in your script you have to set db_version_table="my_version_table" and then in your MongoDB database go ahead and manually insert the record for the ACC table version , like : db.my_version_table.insert({table_version : NumberInt(6), table_name : "acc"}) Regards, Vlad Paiu OpenSIPS Developer http://www.opensips-solutions.com On 19.09.2015 08:26, Sasmita Panda wrote: HI All , My mongodb problem is solved . Now I can store and fetch data through mongodb module through raw query . Now I need to understand something related to db_cachedb and cachedb_mongodb combined integration . . I have gone through the bellow link http://www.opensips.org/html/docs/modules/1.11.x/db_cachedb.html In the end of this its saying I need to create a schema for version table in mongodb so that opensips modules can use that table . What should I do for this ? I am new to mongodo and also opensips-1.11 . So please can anybody explain me how to create same version table schema in mongodb ? I have tried to put the version table in mongodb as a collection but it wont works for me . I am trying to use mongodb for acc module and its giving bellow error : ERROR:core:db_check_table_version: invalid version 0 for table acc found, expected 6 ERROR:acc:acc_db_init: error during table version check ERROR:acc:mod_init: failed...did you load a database module? ERROR:core:init_mod: failed to initialize module acc ERROR:core:main: error while initializing modules I think this error will come for all the modules too . So what is the common solution for this ? Waiting for a reply . */Thanks & Regards/* /Sasmita Panda/ /Network Testing and Software Engineer/ /3CLogic , ph:07827611765/ ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Restart=always and After=mysql.service
Do you see anything informative in your journal after trying to start opensips? sudo journalctl -xn 350 On Sat, Sep 19, 2015 at 11:46 PM, Nabeelwrote: > Please see the strace output at these links: > > http://pastebin.com/G1Uv5s1E > > http://pastebin.com/gnesw4tW > > On 20 September 2015 at 04:30, Podrigal, Aron > wrote: > >> Can you post the strace output by running >> >> sudo strace -ff -o /tmp/opensips_strace_output systemctl start >> opensips.service >> cat /tmp/opensips_strace_output* >> >> That will help see where the error occurs. >> >> On Sat, Sep 19, 2015 at 11:21 PM, Nabeel wrote: >> >>> Why can't the service file be automatically generated at the time of >>> installation/compilation on the relevant OS? >>> It seems to be quite a basic feature missing. >>> >>> On 20 September 2015 at 04:16, Nabeel wrote: >>> Unfortunately, changing the user/group to 'root' did not work either. The same error occurs and OpenSIPS fails to start: Failed at step EXEC spawning /usr/sbin/opensips: Permission denied Hasn't anyone else seen this on CentOS? On 18 September 2015 at 22:21, sevpal wrote: > If you change User= and Group= in the service file to root, you might > not see such a message. To run as user opensips, then user opensips must > exist on the system; in addition, ownership on files/folders that will be > accessed by Opensips needs to be changed. > *From:* Nabeel > *Sent:* Tuesday, September 15, 2015 9:47 PM > *To:* OpenSIPS users mailling list > *Subject:* Re: [OpenSIPS-Users] Restart=always and After=mysql.service > > I tried that service file on CentOS 7 but got the following error when > trying to start the service: > > Failed at step EXEC spawning /usr/sbin/opensips: Permission denied > > > Changing permissions of that directory did not solve the problem: > > chmod +x /usr/sbin/opensips > > chmod -R 777 /usr/sbin/opensips > > Does the service file need modification for CentOS? > > > On 7 September 2015 at 19:14, Nabeel wrote: > >> Hi, >> >> Most of my services have a .service file located at >> /usr/lib/systemd/system where I can set 'Restart=always' or >> 'After=mysql.service' / 'After=mariadb.service' to make sure the server >> starts at the appropriate times. >> >> However, there is no such .service file for OpenSIPS. Please advise >> how to create this .service file for OpenSIPS. I heard about 'respawn' >> but >> don't know how exactly to use this and would prefer to use a .service >> file >> like other services. >> > > > -- > ___ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > > ___ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > >>> >>> ___ >>> Users mailing list >>> Users@lists.opensips.org >>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >>> >>> >> >> >> -- >> Aron Podrigal >> - >> '101', '1110010', '110', '1101110' '101', '110', >> '1100100', '1110010', '1101001', '1100111', '111', '1101100' >> >> P: '2b', '31', '33', '34', '37', '34', '35', '38', '36', '30', '39', '39' >> >> >> ___ >> Users mailing list >> Users@lists.opensips.org >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >> >> > -- Aron Podrigal - '101', '1110010', '110', '1101110' '101', '110', '1100100', '1110010', '1101001', '1100111', '111', '1101100' P: '2b', '31', '33', '34', '37', '34', '35', '38', '36', '30', '39', '39' ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users