Tag Archives: sip

_LSOpenURLsWithCompletionHandler() failed for the application xxx with error -10671 [Solved]

Problem description

After updating the macos system and turning off SIP in mbp version 2022, the applications on the ipad installed on the system do not start properly and the following error is reported when running the open command in the terminal:

longyudeMacBookPro:~ longyu$ open -a "xxx"
_LSOpenURLsWithCompletionHandler() failed for the application /Applications/xxx.app with error -10671.
longyudeMacBookPro:~ longyu$

Note: The program name is for example only.

Equipment model and version information

mbp 2022

mac version: macOs Monterey version 12.6

 

Resolution process

  1. Checked app permissions – no exception found
  2. Tried to change application permissions – still can’t start after changing
  3. Check if there is already a process running – open activity monitor, no relevant process found
  4. Think about the items that the system modifies when it works and when it does not work
  5. Suspect a relationship with the SIP configuration.

 

Solution:

When the computer is shut down, long press the shutdown key to enter the recovery mode, open the terminal, execute csrutil enable to enable SIP, and restart the system. After re-entering the system, the program starts normally.

 

Other problems:

I searched the web for the return value of _LSOpenURLsWithCompletionHandler and did not find the meaning of the -10671 return value. The original intention of closing SIP was to use dtrace, a long-known program, normally, but since it has such a side effect after closing it can only be opened temporarily for fun, not all the time.

brew link sip error

Problems with BREW installing SIP:

$ brew install sip
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink include/sip.h
/usr/local/include is not writable.

You can try again using:
  brew link sip

$ brew link sip
Linking /usr/local/Cellar/sip/4.19.5... 
Error: Could not symlink include/sip.h
/usr/local/include is not writable.

Find /usr/local/ there is no path /usr/local/include
need to create this path and modify the permissions
Solution:

$ sudo mkdir /usr/local/include
$ sudo chown $(whoami):admin /usr/local/include

Success:

$ brew link sip
Linking /usr/local/Cellar/sip/4.19.5... 10 symlinks created

An error occurred when opensips started the serviceā€œ ERROR:core :db_ check_ table_ Version: invalid version 7 for Table dialog found “

recently engaged in SIP phone related projects, encountered a lot of trouble when building opensips server, most of which could be solved by looking up information, but today I encountered a problem that I could not find the solution on the Internet, so I decided to share it with you.
virtual system is Ubuntu14.04
opensips version is 2.1.2
when opensips service is started, the following error occurs:

root@sjt-VirtualBox:/usr/local/opensips_proxy/sbin# ./opensipsctl start

INFO: Starting OpenSIPS : 

ERROR: PID file /var/run/opensips.pid does not exist -- OpenSIPS start failed

view the ERROR log and prompt “ERROR:core:db_check_table_version: invalid version 7 for table dialog found”, assuming there was a problem with the database creation

root@sjt-VirtualBox:/usr/local/opensips_proxy/sbin# tail -f /var/log/syslog
Oct 13 08:40:29 sjt-VirtualBox ./opensips[2851]: INFO:alias_db:mod_init: initializing...
Oct 13 08:40:29 sjt-VirtualBox ./opensips[2851]: INFO:dialog:mod_init: Dialog module - initializing
Oct 13 08:40:29 sjt-VirtualBox ./opensips[2851]: INFO:core:evi_publish_event: Registered event <E_DLG_STATE_CHANGED(12)>
Oct 13 08:40:29 sjt-VirtualBox ./opensips[2851]: ERROR:core:db_check_table_version: invalid version 7 for table dialog found, expected 10
Oct 13 08:40:29 sjt-VirtualBox ./opensips[2851]: ERROR:dialog:init_dlg_db: error during table version check.
Oct 13 08:40:29 sjt-VirtualBox ./opensips[2851]: ERROR:dialog:mod_init: failed to initialize the DB support
Oct 13 08:40:29 sjt-VirtualBox ./opensips[2851]: ERROR:core:init_mod: failed to initialize module dialog
Oct 13 08:40:29 sjt-VirtualBox ./opensips[2851]: ERROR:core:main: error while initializing modules

creates opensips database

again

root@sjt-VirtualBox:/usr/local/opensips_proxy/sbin# ./opensipsdbctl create
MySQL password for root: 
INFO: test server charset
INFO: creating database opensips ...
ERROR 1007 (HY000) at line 1: Can't create database 'opensips'; database exists
ERROR: Creating database opensips failed!

indicates that the database already exists and the creation failed. The reason was finally found, because I had built a database before, and this installation configuration of OpenSiPs did not match the previous database, so the OpenSips service could not be started.
therefore, delete the previous database, recreate, execute./opensipsdbctl reinit.

root@sjt-VirtualBox:/usr/local/opensips_proxy/sbin# ./opensipsdbctl reinit
MySQL password for root: 
INFO: Database opensips deleted
INFO: test server charset
INFO: creating database opensips ...
INFO: Using table engine MyISAM.
INFO: Core OpenSIPS tables successfully created.
Install presence related tables? (y/n): y
INFO: creating presence tables into opensips ...
INFO: Presence tables successfully created.
Install tables for imc cpl siptrace domainpolicy carrierroute userblacklist b2b cachedb_sql registrant call_center fraud_detection? (y/n): y
INFO: creating extra tables into opensips ...
INFO: Extra tables successfully created.

open opensips service again, success!

root@sjt-VirtualBox:/usr/local/opensips_proxy/sbin# ./opensipsctl start

INFO: Starting OpenSIPS : 
INFO: started (pid: 3128)