Picture of Sascha
Registered 5 years 339 days
Sascha Thursday, 3 September 2020, 09:11 AM
SDK can't create connection to app
Hello everyone,

I'am trying to create a new application with the innovaphone sdk but I get this error.

NOTE: New remote connection - user 'callpoint' already exist.

When I get it nothing happens...

The app object is created on the ipva but as soon as I want to add a remote connection I get the notice above.

After I click on connect it seems like the sdk is trying something but in the end nothing happens and the remote connections windows is still empty and I get the info the there is already a user with that name.

How can I fix this?
Callpoint-App-Creation.png

Picture of Anton
Registered 5 years 174 days
Anton Monday, 2 November 2020, 03:58 PM
Re: SDK can't create connection to app
Hi Sascha,

I have the same problem right now.

I reinstalled the SDK including VS19 Extension and also installed a new ipva and App platform.

But I still get the same error:
"NOTE: New remote connection - user 'xxx' already exist."

Have you found a solution to this?
Or can maybe someone else point into the right direction, please.

regards,
Anton
Picture of Daniel Deterding (innovaphone)
Moderator Registered 15 years 179 days
Daniel Deterding (innovaphone) Tuesday, 3 November 2020, 11:26 AM
Re: SDK can't create connection to app
Hmm, can you login to your AP Manager and delete your App Service there (if you need the database, make a backup of the instance before)?

Then close the Visual Studio, reopen it and try it again.

Greetings,
Daniel
Picture of Anton
Registered 5 years 174 days
Anton Tuesday, 3 November 2020, 12:43 PM
Re: SDK can't create connection to app
Hi Daniel,

I have installed a completely new AP to be sure the problem is not on the currently active one. There is no App Service installed beside the standard apps.

I already restartet VS19 and also my PC.

To clarify the Problem a little more. VS19 never created a new App Service. It tries to create one and tells me the error above.
After checking in the PBX i can see, there is an object created with the App name. Deleting the object and trying again returns me the same error.

Regards,
Anton
2020-11-03_12_07_58-AP_Manager.png

Picture of Daniel Deterding (innovaphone)
Moderator Registered 15 years 179 days
Daniel Deterding (innovaphone) Tuesday, 3 November 2020, 12:49 PM
Re: SDK can't create connection to app
Can you click on the AP Manager in the left tree, go to Diagnostics and enable AppWebsocket + App trace flags.

Then try it again inside Visual Studio and attach the AP Manager log file here.

Greetings,
Daniel
Picture of Anton
Registered 5 years 174 days
Anton Tuesday, 3 November 2020, 01:58 PM
Re: SDK can't create connection to app
Now it is redirecting me to the window before (see picture).
But the app is not in the dropdown. If i trie to create it again, it will give me the same error:
[11-03 13:54:03.112] SDK copied successfully.
[11-03 13:54:03.113] All projects processed.
[11-03 13:55:08.391] NOTE: New remote connection - user 'test004' already exist.
[11-03 13:55:58.022] NOTE: New remote connection - user 'test004' already exist.
2020-11-03_13_54_23-test004_-_Microsoft_Visual_Studio.png

Picture of Daniel Deterding (innovaphone)
Moderator Registered 15 years 179 days
Daniel Deterding (innovaphone) Wednesday, 4 November 2020, 06:54 AM
Re: SDK can't create connection to app
You could try to remove all existing connections in the connection manager of the extension under Tools -> innovaphone SDK.
Then restart VS and try it again.

But as already requested I would like to see the logfile of the AP Manager with the corresponding log flags.

Greetings,
Daniel
Picture of Anton
Registered 5 years 174 days
Anton Wednesday, 4 November 2020, 08:28 AM
Re: SDK can't create connection to app
Hi Daniel,
Is this the log you want to see?
I will delete all connections now and try again.

11-04 07:08:12.112 Manager::WebserverPluginWebsocketListenResult path:/ registeredPathForRequest: host:192.168.188.78 closing:0 databaseReconnect:0 
11-04 07:08:12.112 AppWebsocket(00e259b0)::AppWebsocket 
11-04 07:08:12.125 AppWebsocket(00e259b0)::AppWebsocketRecv 
11-04 07:08:12.126 AppWebsocket(00e259b0)::WebsocketSendResult() connected=0 sendCount=0 
11-04 07:08:12.127 AppWebsocket(00e259b0)::WebsocketSendResult() connected=1 sendCount=1 
11-04 07:08:12.129 AppWebsocket(00e259b0)::AppWebsocketRecvResult {"mt":"RequestService"} 
11-04 07:08:12.129 AppWebsocket(00e259b0)::AppWebsocketMessageSend {"mt":"ServiceAdded","filename":"manager","appServiceID":"manager","title":"AP Manager","manufacturer":"innovaphone","initialStatus":true,"currentStatus":true,"startTime":94,"version":{"id":"13r1","build":"132523","label":"sr17 "}} connected:true 
11-04 07:08:12.129 AppWebsocket(00e259b0)::AppWebsocketMessageSend {"mt":"ServiceAdded","filename":"calendar","appServiceID":"calendar","title":"Calendar","initialStatus":true,"currentStatus":true,"manufacturer":"innovaphone","startTime":93,"statusError":false,"version":{"id":"13r1","build":"132523","label":"sr17 ","apps":"[{\"name\":\"innovaphone-calendar\"},{\"name\":\"innovaphone-calendaradmin\"}]"}} connected:true 
11-04 07:08:12.129 AppWebsocket(00e259b0)::AppWebsocketMessageSend {"mt":"ServiceAdded","filename":"contacts","appServiceID":"contacts","title":"Contacts","initialStatus":true,"currentStatus":true,"manufacturer":"innovaphone","startTime":93,"statusError":false,"version":{"id":"13r1","build":"132523","label":"sr17 ","apps":"[{\"name\":\"innovaphone-contacts\"},{\"name\":\"innovaphone-contacts-admin\"},{\"name\":\"innovaphone-contacts-searchapi\"}]"}} connected:true 
11-04 07:08:12.129 AppWebsocket(00e259b0)::AppWebsocketMessageSend {"mt":"ServiceAdded","filename":"devices","appServiceID":"devices","title":"Devices","initialStatus":true,"currentStatus":true,"manufacturer":"innovaphone","startTime":93,"statusError":false,"version":{"id":"13r1","build":"132523","label":"sr17 ","apps":"[{\"name\":\"innovaphone-devices\"},{\"name\":\"innovaphone-devices-api\"},{\"name\":\"sysclients\",\"wsOnly\":true}]"}} connected:true 
11-04 07:08:12.129 AppWebsocket(00e259b0)::AppWebsocketMessageSend {"mt":"ServiceAdded","filename":"events","appServiceID":"events","title":"Events","initialStatus":true,"currentStatus":true,"manufacturer":"innovaphone","startTime":93,"statusError":false,"version":{"id":"13r1","build":"132523","label":"sr17 ","apps":"[{\"name\":\"innovaphone-eventsapp\"},{\"name\":\"innovaphone-alarms\"},{\"name\":\"innovaphone-logging\"}]"}} connected:true 
11-04 07:08:12.129 AppWebsocket(00e259b0)::AppWebsocketMessageSend {"mt":"ServiceAdded","filename":"fax","appServiceID":"fax","title":"Fax","initialStatus":true,"currentStatus":true,"manufacturer":"innovaphone","startTime":93,"statusError":false,"version":{"id":"13r1","build":"132523","label":"sr17 ","apps":"[{\"name\":\"innovaphone-fax\"}]"}} connected:true 
11-04 07:08:12.129 AppWebsocket(00e259b0)::AppWebsocketMessageSend {"mt":"ServiceAdded","filename":"files","appServiceID":"files","title":"Files","initialStatus":true,"currentStatus":true,"manufacturer":"innovaphone","startTime":93,"statusError":false,"version":{"id":"13r1","build":"132523","label":"sr17 ","apps":"[{\"name\":\"innovaphone-files\"}]"}} connected:true 
11-04 07:08:12.129 AppWebsocket(00e259b0)::AppWebsocketMessageSend {"mt":"ServiceAdded","filename":"messages","appServiceID":"messages","title":"Messages","initialStatus":true,"currentStatus":true,"manufacturer":"innovaphone","startTime":93,"statusError":false,"version":{"id":"13r1","build":"132523","label":"sr17 ","apps":"[]"}} connected:true 
11-04 07:08:12.129 AppWebsocket(00e259b0)::AppWebsocketMessageSend {"mt":"ServiceAdded","filename":"reporting","appServiceID":"reporting","title":"Reports","initialStatus":true,"currentStatus":true,"manufacturer":"innovaphone","startTime":93,"statusError":false,"version":{"id":"13r1","build":"132523","label":"sr17 ","apps":"[{\"name\":\"innovaphone-calllistapi\"},{\"name\":\"innovaphone-calllist\"},{\"name\":\"innovaphone-reporting\"},{\"name\":\"mypbx\"}]"}} connected:true 
11-04 07:08:12.129 AppWebsocket(00e259b0)::AppWebsocketMessageSend {"mt":"ServiceAdded","filename":"users","appServiceID":"usersapp","title":"Users","initialStatus":true,"currentStatus":true,"manufacturer":"innovaphone","startTime":92,"statusError":false,"version":{"id":"13r1","build":"132523","label":"sr17 ","apps":"[{\"name\":\"innovaphone-profile\"},{\"name\":\"innovaphone-usersadmin\"},{\"name\":\"innovaphone-users\"},{\"name\":\"innovaphone-usersapis\"}]"}} connected:true 
11-04 07:08:12.129 AppWebsocket(00e259b0)::AppWebsocketMessageSend {"mt":"ServiceAdded","filename":"voicemail_de","appServiceID":"voicemail_de","title":"Voicemail_de","initialStatus":true,"currentStatus":true,"manufacturer":"innovaphone","startTime":91,"statusError":false,"version":{"id":"13r1","build":"132523","label":"sr17 ","apps":"[{\"name\":\"innovaphone-voicemail\"}]"}} connected:true 
11-04 07:08:12.129 AppWebsocket(00e259b0)::AppWebsocketMessageSend {"mt":"ServiceAdded","filename":"webserver","appServiceID":"webserver","title":"Webserver","initialStatus":true,"currentStatus":true,"manufacturer":"innovaphone","startTime":93,"statusError":false,"version":{"id":"13r1","build":"132523","label":"sr17 ","apps":"[]"}} connected:true 
11-04 07:08:12.129 ManagerSession(00e259b0)::SendResult rcv:1 mt:AddServiceResult errorsadnull) srcsadnull) param1sadnull) 
11-04 07:08:12.129 AppWebsocket(00e259b0)::AppWebsocketMessageSend {"mt":"AddServiceResult"} connected:true 
11-04 07:08:12.129 AppWebsocket(00e259b0)::AppWebsocketMessageComplete connected:true 
11-04 07:08:12.129 AppWebsocket(00e259b0)::WebsocketSendResult() connected=1 sendCount=0 
11-04 07:08:12.129 AppWebsocket(00e259b0)::AppWebsocketSendResult 
11-04 07:08:12.130 AppWebsocket(00e259b0)::WebsocketSendResult() connected=1 sendCount=0 
11-04 07:08:12.130 AppWebsocket(00e259b0)::AppWebsocketSendResult 
11-04 07:08:12.131 AppWebsocket(00e259b0)::WebsocketSendResult() connected=1 sendCount=0 
11-04 07:08:12.131 AppWebsocket(00e259b0)::AppWebsocketSendResult 
11-04 07:08:12.131 AppWebsocket(00e259b0)::WebsocketSendResult() connected=1 sendCount=0 
11-04 07:08:12.131 AppWebsocket(00e259b0)::AppWebsocketSendResult 
11-04 07:08:12.132 AppWebsocket(00e259b0)::WebsocketSendResult() connected=1 sendCount=0 
11-04 07:08:12.132 AppWebsocket(00e259b0)::AppWebsocketSendResult 
11-04 07:08:12.132 AppWebsocket(00e259b0)::WebsocketSendResult() connected=1 sendCount=0 
11-04 07:08:12.132 AppWebsocket(00e259b0)::AppWebsocketSendResult 
11-04 07:08:12.133 AppWebsocket(00e259b0)::WebsocketSendResult() connected=1 sendCount=0 
11-04 07:08:12.133 AppWebsocket(00e259b0)::AppWebsocketSendResult 
11-04 07:08:12.134 AppWebsocket(00e259b0)::WebsocketSendResult() connected=1 sendCount=0 
11-04 07:08:12.134 AppWebsocket(00e259b0)::AppWebsocketSendResult 
11-04 07:08:12.134 AppWebsocket(00e259b0)::WebsocketSendResult() connected=1 sendCount=0 
11-04 07:08:12.134 AppWebsocket(00e259b0)::AppWebsocketSendResult 
11-04 07:08:12.134 AppWebsocket(00e259b0)::WebsocketSendResult() connected=1 sendCount=0 
11-04 07:08:12.134 AppWebsocket(00e259b0)::AppWebsocketSendResult 
11-04 07:08:12.134 AppWebsocket(00e259b0)::WebsocketSendResult() connected=1 sendCount=0 
11-04 07:08:12.134 AppWebsocket(00e259b0)::AppWebsocketSendResult 
11-04 07:08:12.134 AppWebsocket(00e259b0)::WebsocketSendResult() connected=1 sendCount=0 
11-04 07:08:12.134 AppWebsocket(00e259b0)::AppWebsocketSendResult 
11-04 07:08:12.134 AppWebsocket(00e259b0)::WebsocketSendResult() connected=1 sendCount=0 
11-04 07:08:12.134 AppWebsocket(00e259b0)::AppWebsocketSendResult 
11-04 07:08:12.135 AppWebsocket(00e259b0)::AppWebsocketRecvResult {"mt":"CreateUser","user":"test004", "src":"ManagerConnection.NET"} 
11-04 07:08:12.135 TaskCreateServiceUser::SendError error:errorUserExists user/group:test004 
11-04 07:08:12.135 ManagerSession::TaskCreateUserFinished create user test004 failed 
11-04 07:08:12.135 ManagerSession(00e259b0)::SendResult rcv:1 mt:CreateUserResult error:errorUserExists src:ManagerConnection.NET param1sadnull) 
11-04 07:08:12.135 AppWebsocket(00e259b0)::AppWebsocketMessageSend {"error":"errorUserExists","mt":"CreateUserResult","src":"ManagerConnection.NET"} connected:true 
11-04 07:08:12.135 AppWebsocket(00e259b0)::AppWebsocketMessageComplete connected:true 
11-04 07:08:12.136 AppWebsocket(00e259b0)::WebsocketSendResult() connected=1 sendCount=0 
11-04 07:08:12.136 AppWebsocket(00e259b0)::AppWebsocketSendResult 
11-04 07:08:12.137 AppWebsocket(00e259b0)::AppWebsocketClosed 
11-04 07:08:12.137 Manager::ManagerSessionClosed session 00e259b0 
11-04 07:08:12.137 AppWebsocket(00e259b0)::~AppWebsocket
Picture of Daniel Deterding (innovaphone)
Moderator Registered 15 years 179 days
Daniel Deterding (innovaphone) Wednesday, 4 November 2020, 08:46 AM
Re: SDK can't create connection to app
Yes, this was the log. Seems as if your AP already contains a linux user test004.
You can delete this user manually.

Login with Putty or another SSH client. Default login is admin and ipapps
Then type su and use password iplinux for the root user.

Afterwards execute these commands:

deluser test004
delgroup test004

Then you can try it again in VS.

Greetings,
Daniel
Picture of Anton
Registered 5 years 174 days
Anton Wednesday, 4 November 2020, 09:39 AM
Re: SDK can't create connection to app
I have done as you requested, but delgroup didn't work: "delgroup: unknown group test005".

I have tried the same thing with test004 and test005.
You can see the full log, since creation yesterday, in the txt file.
Maybe you can find some information in another spot.

Regards,
Anton
AP_Manager_log.txt
Picture of Anton
Registered 5 years 174 days
Anton Wednesday, 4 November 2020, 08:52 AM in response to Daniel Deterding (innovaphone)
Re: SDK can't create connection to app
I encountered another problem right now.

After removing all AP connections in the Connection Manager there is an error popup and VS19 crashes.
I think it is because i havent removed all apps only the AP connections.
I already tried reinstalling the extension.
How can I reset the connection manager?
2020-11-04_08_48_40-test005_-_Microsoft_Visual_Studio.png

Picture of Daniel Deterding (innovaphone)
Moderator Registered 15 years 179 days
Daniel Deterding (innovaphone) Wednesday, 4 November 2020, 09:23 AM
1 of 1 users consider this post helpful
Re: SDK can't create connection to app
The extension stores connections in two files:
%APPDATA%\innovaphone\VisualStudioPackage\AppPlatformConnectionStore.xml
%APPDATA%\innovaphone\VisualStudioPackage\ServiceInfo.xml

Try to close Visual Studio, rename these files and restart Visual Studio again.

But I'm now also a bit guessing. Our developer for this is currently not available.

Greetings,
Daniel
Picture of Daniel Deterding (innovaphone)
Moderator Registered 15 years 179 days
Daniel Deterding (innovaphone) Wednesday, 4 November 2020, 03:30 PM in response to Anton
1 of 1 users consider this post helpful
Re: SDK can't create connection to app
We discovered, that one of the latest VS2019 (maybe also 2017) updates broke our Connection Management inside the extension.
We're now investigating this issue.

Greetings,
Daniel
Picture of Anton
Registered 5 years 174 days
Anton Tuesday, 1 December 2020, 11:37 AM
Re: SDK can't create connection to app
Hi Daniel,
any updates on this matter?

I wanted to try it again and updated VS19 and the innovaphone SDK but still the same error for VS19.

I also tried VS17. Here it seems to work the standard App is compiling and starting without any issues.

I will use VS17 for now, but it would be nice to use VS19 in the future.

Regards,
Anton
Picture of Daniel Deterding (innovaphone)
Moderator Registered 15 years 179 days
Daniel Deterding (innovaphone) Tuesday, 1 December 2020, 11:56 AM
Re: SDK can't create connection to app
Hi Anton,

we could identify the issue. A fix will be available in the upcoming SR21 release.

Greetings,
Daniel
← You can define your color theme preference here