Powerbuilder 2022 Build 1878
Windows 10 Build 21H2
Hi all,
We are currently on PB 2022 Build 1878 and are experiencing issues with Powerclient for users. We had the powerclient server set up since the beginning of Powerclient on Powerbuilder, the last version before PB 2022 was PB 2021 verison 1506. I pushed the PB 2022 Cloud App Launcher onto the server and updated the files with the 2022 versions.
Before upgrading version did not give us any issues but this time we are encountering an issue when users start the application. I believe users have already updated to the new version and are encounter this issue when starting the application.
The error is as follows :
Information for context
Server: PBServer
Application name: PBTest
Server and application names were alter but it should be the same behavior
2022-10-04 16:50:10.751 ERROR [22232] Application terminated.
2022-10-04 16:50:10.750 ERROR [16752] Failed to download the file. URL: http://pbserver:80/PBTe/deploylist.ini.zip, Error description: HTTP error.(error code: 404).
For some reason the URL cuts off the last 2 characters of the Application name so it returns 404 error.
The work around is going to the computers and uninstall and reinstalling the powerclient application, but we wanted the powerclient setup so we did not have to manually update computers.
Thank You for your help, and let me know if more information is needed
---------------------------------------------------------------------------------------------------------------
I have found out why we are getting the error.
Now I need help finding why it happening.
Here is the pbapp.ini file from a user having the issue:
[dwcenter]
url=http://pbserver:80/PBTest/8.5.4385
showStartPage=1
shellPath=C:\Users\TestUser\AppData\Local\Launcher\CloudAppShell.exe
startParam=-userapp "-userapp" "-userapp" "-userapp" "-userapp" "-userapp" "cloudapp://http://pbserver:80/PBTest/" "cloudapp://http://pbserver:80/PBTest/" "cloudapp://http://pbserver:80/PBTest/" "cloudapp://http://pbserver:80/PBTest/"
preloadEvent_Executed={133FC1AA-AF44-41E0-93EE-B4D92781DA2A}
appname=PBTest
[shortcut]
appname=PBTest
desktopshortcut=1
startmenushortcut=1
desktopshortcutname=C:\Users\TestUser\Desktop\PBTest.lnk
startmenushortcutpath=C:\Users\TestUser\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\PBTest
startmenushortcut_uninstall=1
Notice how the startParam setting is long. I found out that if it is long enough the startparam gets cut off and errors on startup.
Now I am trying to figure out why this is happening.
A unique thing about our powerclient is we do not increment the version number because we want all users to be on the latest version and doing this auto updates their application. We have been doing this since PB2019 so I don't know if is different now.
I cannot recreate the error as it seems to happen to people when using the powerclient application. One day they are working fine, the next this error appears when they try to startup. It seems the users have already updated to the PB2022 version before the error occurred.
What I mean when I say I altered the names is the original error did not contain pbserver and pbtest in the url it was actually our hosting server and the real name of the application but I change the text for security reasons. I changed the text so it would be similar to the error we are encountering.
My main issue right now it why is the url being cut off?
2022-10-04 16:50:10.751 ERROR [22232] Application terminated.
2022-10-04 16:50:10.750 ERROR [16752] Failed to download the file. URL: http://pbserver:80/PBTe/deploylist.ini.zip, Error description: HTTP error.(error code: 404).
The correct URL should be: http://pbserver:80/PBTest/deploylist.ini.zip
but the error is return a URL with the application name being cut off:http://pbserver:80/PBTe/deploylist.ini.zip hence why we are getting the error.
Thank You