Company App and Script Problems
The upload progress stops and doesn’t move
Section titled “The upload progress stops and doesn’t move”Problem
Section titled “Problem”When you create a Company App, the upload progress stops at the same percentage, for example 20%, and doesn’t move. This happens for any file. The app may still be created in the list, and opening it can start the upload progress again.
The browser session holds an old state of the upload display. The upload itself isn’t the problem.
Solution
Section titled “Solution”- Reload the page without the cache: press
Ctrl+Shift+R. - If the progress still doesn’t move, close all browser windows, open the browser, and sign in to CapaOne again.
- Check whether the app is in the list on the Company Apps tab. If it isn’t, upload it again.
The upload progress shows the real state of the upload.
A shortcut file uploads as the wrong file or fails
Section titled “A shortcut file uploads as the wrong file or fails”Problem
Section titled “Problem”You add a shortcut (.lnk file) to a Company App with Modify Content under Source Files.
One of these happens:
- On a computer where the shortcut’s target isn’t installed, the upload fails with an error.
- On a computer where the target is installed, the target file, for example an
.exefile, is added instead of the shortcut.
Windows replaces a shortcut with its target before the browser gets the file. The browser uploads the target, or fails if the target doesn’t exist. CapaOne can’t change this.
Solution
Section titled “Solution”Use one of these options:
- Create the shortcut on the endpoint: add the Create Shortcut PowerBrick to the app. In the brick, you set the target, arguments, icon, and working directory.
- Upload the shortcut in a folder or ZIP file: put the shortcut in a folder with the other
files, and upload the folder or a
.zipfile of it. Windows doesn’t replace shortcuts inside a folder or ZIP file.
A script or app stays in Sending and creates no logs
Section titled “A script or app stays in Sending and creates no logs”Problem
Section titled “Problem”A script or Company App stays in the status Sending on an endpoint, for example for more than 20 minutes. Restarting the agent and redeploying don’t help, and View logs shows no logs for the job. CapaOne doesn’t show an error.
The name of the script or app contains a character that isn’t allowed in Windows file names, for
example |. The agent creates a log folder named after the script or app, so the job fails on the
endpoint before it starts.
These characters aren’t allowed in Windows file names:
\ / : * ? " < > |CapaOne rejects some of them when you save the name, but not all of them.
Solution
Section titled “Solution”- Go to Windows → Applications, and open the script or app.
- Select Edit, and change the Name so it doesn’t contain any of the characters above. For
example, change
SW | OpenProjecttoSW - OpenProject. - Save the changes.
- Open the Endpoints tab, and select Redeploy in the endpoint’s row menu.
The job goes past Sending, and logs are created for it.
A script or app fails with Missing bricks
Section titled “A script or app fails with Missing bricks”Problem
Section titled “Problem”A script or Company App fails on the endpoint. The log shows:
Failed Missing bricksSCRIPT ENDED WITH EXITCODE: 3329The Install sequence in the PowerBricks Editor is empty. When you assign a script or app to an endpoint, CapaOne runs the bricks in the Install sequence. The Uninstall sequence runs only when the script or app is uninstalled from the endpoint.
This also applies to a script whose purpose is to remove software, for example a script that uninstalls an application with an Execute PowerShell Snippet brick. Its bricks belong in the Install sequence.
Solution
Section titled “Solution”- Go to Windows → Applications and open the script or app.
- Select Edit, and open the PowerBricks Editor.
- Move the bricks from the Uninstall sequence to the Install sequence.
- Save the changes.
- Open the Endpoints tab, and select Redeploy in the endpoint’s row menu.
The script or app runs its bricks on the endpoint.
If you use an Execute PowerShell Snippet brick, don’t end the snippet with exit <code>. Use
Exit-PSScript <code> instead. See
3310: No exitcode set.