Picture of mitop
Registered 3 years 291 days
mitop Wednesday, 23 March 2022, 06:11 PM
Cannot install JavaScript App through "AP Manager"
Hi all,

we are playing around with Javascript App projects and get stucked while installing our app.
I created a new javascript project, changed nothing, build it with the build-release.bat and uploaded this project to our app store. This works fine, i can see the app inside the store and everything looks ok. Next i changed the "App Store URL" inside the AP manager of our testing machine and installed the app, this works. Next i added an app instance, works too. Next i opened the "PBX Manager" to add the app object, but there is no "AP_app" icon showing the manager instance. Starting the app on our development machine directly through AP Manager, shows the "AP_app" icon in "PBX Manager". So whats wrong???

Next i repeated the whole process and figured out following: After successfully installing the app, it starts automatically and the "App Store" shows "An Update is available" next to the app icon. I can see, that after starting the app, the "Installed Version" of the app next to the app icon, is the version of the "Javascript Runtime App" and not the version i gave to the app. If App (and instance) is running and i install the new version, the App Store still shows "An Update is available". If i stop the app and instance and install the app version it says "The latest version is installed". After starting the app again it shows "An Update is available" and the wrong version number is displayed again.
After that i stopped the app, did some other tasks and after some time tried to start the app again and get the error "Start app failed".

Is it possible to install Javascript Apps from own App Store?


Kind Regards
Mladen


PS: http://store.innovaphone.com seems not to work properly
Picture of mitop
Registered 3 years 291 days
mitop Thursday, 24 March 2022, 09:36 AM
Re: Cannot install JavaScript App through "AP Manager"
Hi again,

only as additional information: Working on another C++ App i realized the reason why there is no icon on the admin app version ("Add an App"). Please see attached screenshot (a capital "A" caused the problem)

Kind regards
Mladen


PS: I forgot that the store gets a new version and is not the same as mine
capital_A_manager.JPG

Andreas Fink
Moderator Registered 13 years 52 days
Andreas Fink (innovaphone) Friday, 25 March 2022, 06:30 PM in response to mitop
Re: Cannot install JavaScript App through "AP Manager"
Hello Mladen,

could you please update your SDK to v13r2 sr10 (build 136338)?

This should fix your problem with the wrong version number.



For the problem with the missing icon in the AP Manager:

- make sure you create first an entry for an app in the App Store app, without adding any app versions.
- make sure you add an icon to the app entry
- than add app binaries

This sequence should fix your problem with the missing icon in the AP Manager.


Thank you for the hint with the uppercase issue with the file name of the admin icon, i will check what is wrong with the template.

Best Regards
Andreas Fink
Picture of mitop
Registered 3 years 291 days
mitop Monday, 28 March 2022, 02:03 PM
Re: Cannot install JavaScript App through "AP Manager"
Hi Andreas,

everything is up to date. I have a freshly installed machine and uploaded an empty/default 13r10 pure javascript app to our app store, that is running on another updated machine. Unfortunately there is still no icon inside the "PBX Manager" App of our pure Javascript Apps, so we cannot create the App Object (app installed and instance created). This is the first time we try to install a pure javascript app from our own app store to a live machine. All our C++ Apps are working fine here.

To make clear what problems we have:


1. No matter what i try, there are no icons for our pure javascript apps inside the "PBX Manager", so that we cannot create app objects as it is supposed to do
-- While adding an app instance one can see that there are no App Urls shown, not sure if this is important

2. After installing a pure javascript app from our own app store, the "AP Manager" App Store part shows: there is an update available and displays the current System Version Number instead of our App version Number:
-- Updating the app/instance while running -> Same state
-- Stop the instance/app service -> Update the App -> Version number correct -> Start the app instance/app service again -> Wrong version number again

Can i provide some other information? I have no idea what can be wrong.


Best regards
Mladen




Picture of mitop
Registered 3 years 291 days
mitop Tuesday, 19 April 2022, 12:48 PM
Re: Cannot install JavaScript App through "AP Manager"
Hi again,

we are still struggeling with this issue, we cannot install JavaScript Apps from our own App store (everything updated to sr11, on developmnet machine and release testing machine, sdk is up to date and app build against newest sdk). We get the same errors as before and a new one. After playing around a bit, i cannot uninstall the app anymore. After clicking on uninstall the app plattform shows the loading cicuit and that the app is not available (see attached file). So we cannot install a pure javascript app properly, and for whatever reason, it can happen, that we cannot uninstall the app properly.

Is nobody out there who tried to upload and install a self developed app through his own app store?

Starting the app through Visual Studio leads to this startup output:
03-14 14:49:38.551 AppService::AppService 136268
03-14 14:49:38.570 AppService::AppStart someapp@dev-pbx.de
03-14 14:49:38.571 someapp@dev-pbx.de PostgreSQLDatabase(027904d0,0277af78)::PostgreSQLDatabase
03-14 14:49:38.571 someapp@dev-pbx.de PostgreSQLDatabase(027904d0,0277af78)::Connect address: dbname:someapp user:someapp state:0
03-14 14:49:38.572 someapp@dev-pbx.de App instance started 136268 13B101
03-14 14:49:38.572 someapp@dev-pbx.de Generic::ServerCertificateUpdate cert:0 certLen:0
03-14 14:49:38.648 someapp@dev-pbx.de PostgreSQLDatabase(027904d0,0277af78)::DatabaseConnectComplete
03-14 14:49:38.648 ReadConfigFile(27bf770)::ReadConfigFile
03-14 14:49:38.648 ReadConfigFile(27bf770)::Start
03-14 14:49:38.648 ReadConfigFile::ConfigJavaScript
03-14 14:49:38.648 27bf0c0:Start
03-14 14:49:38.648 ReadConfigFile(27bf770)::TaskComplete
03-14 14:49:38.648 27bf0f0:Start
03-14 14:49:38.648 JavaScriptStart::Start
03-14 14:49:38.649 ReadConfigFile(27bf770)::TaskComplete
03-14 14:49:38.649 27bf120:Start 03-14 14:49:38.649 someapp@dev-pbx.de JavaScript: File mediarunway-someapp.js
03-14 14:49:38.649 ReadConfigFile(27bf770)::TaskComplete
03-14 14:49:38.649 ReadConfigFile(27bf770)::~ReadConfigFile
03-14 14:49:38.649 someapp@dev-pbx.de App instance initialized

The installed Version produces this startup output:
04-19 09:38:54.157 AppService::AppService 136345
04-19 09:39:03.587 DnsThreadPool::ShutdownComplete
04-19 09:39:03.587 AppService::Shutdown
04-19 09:39:03.607 AppService::AppService 136345
04-19 09:41:58.693 AppService::AppStart someapp@livetest-pbx.de
04-19 09:41:58.701 ReadConfigFile(1d4f7e0)::ReadConfigFile
04-19 09:41:58.701 ReadConfigFile(1d4f7e0)::Start
04-19 09:41:58.701 ReadConfigFile(1d4f7e0)::~ReadConfigFile
04-19 09:46:54.415 AppService::AppStop someapp@livetest-pbx.de
04-19 09:46:54.417 AppService::AppStopped someapp@livetest-pbx.de
04-19 09:46:54.419 DnsThreadPool::ShutdownComplete
04-19 09:46:54.419 AppService::Shutdown

The "config.json" is located inside the httpfiles.zip folder of the app, so where is the problem?
Is there a pure JavaScript app inside the innovaphone store?


Kind regards
Mladen
app_nicht_deinstallierbar.JPG

Andreas Fink
Moderator Registered 13 years 52 days
Andreas Fink (innovaphone) Thursday, 21 April 2022, 04:53 PM
Re: Cannot install JavaScript App through "AP Manager"
Hello Mladen,

I have just requested the binary of the App from you via email for investigation.

Also, could you please try to delete all apps from the AP or reinstall it, just to avoid you have some local conflicts (e.g. same binary name for different apps used).

Best Regards
Andreas Fink
Picture of mitop
Registered 3 years 291 days
mitop Thursday, 28 April 2022, 10:39 AM
Re: Cannot install JavaScript App through "AP Manager"
Hello Andreas,

first let me thank you for the remote support.
All the javascript apps are now installable through the own app store. As figured out, all the binaries has to have the company prefix in front of the executables and no other app should have the same ID/binary name.
Modifiying the build-release.bat or the Visual Studio Plugin so that the prefix is set automatically would be great and prevent others to run in the same error. As mentioned, some of the app store guide pictures should be changed, the ambiguous explanations were a bit incomprehensible to me.

There is still one app, that i cannot uninstall anymore, but as you said, who knows in what state the app/maschine is. Most likely caused by the installation of two apps with different App Store IDs but the same binary names (but I'm not sure and I haven't recreated it).


Best regards
Mladen
← You can define your color theme preference here