question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Permission Issue: Default Bootstrap Archive Location

See original GitHub issue

Dear @mordechaim, we recently upgraded the application from a business app updated by a custom launcher that is delivered by a Windows installer, to business + launcher apps updated by a script that is delivered by a Windows installer. The local folder where the updates are stored is %LOCALAPPDATA%/AppName

The solution to use the update4j’s Bootstrap works fine on the development computer, but on any other computer the installed wrapper runs into a permission issue: java.nio.file.AccessDeniedException: update.zip

I suspect the problem is that this is hardcoded to a relative path of update.zip:

Path zip = Paths.get(ZIP_LOCATION); // always resolves to 'update.zip'

In our case, the current work directory is typically in c:/Program Files/AppName and applications don’t have the permissions to write there. For this use case to work, we would either need to hardcode this to the system %TEMP% directory, or at least allow specifying the work folder with an argument. What would you suggest?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mordechaimcommented, Dec 7, 2021

No, the old config path is a location inside the zip file.

1reaction
yzj578492228commented, Dec 7, 2021

这是来自QQ邮箱的假期自动回复邮件。   您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。

Read more comments on GitHub >

github_iconTop Results From Across the Web

Permissions errors - Amazon EMR
Troubleshoot some of the common errors when using permissions or ... First, check that the .pem file containing your SSH key has the...
Read more >
create subtheme: permission problems [#3219767] | Drupal.org
This may be caused by a problem with file or directory permissions. in Drupal\Core\File\FileSystem->prepareDestination() (line 476 of ...
Read more >
Access denied trying to read bootstrap action file - AWS EMR ...
The access key does have permission to access the S3 bucket - I manually checked with a S3 client. It can access the...
Read more >
Permission issues with the default non-root user on npm start
I guess you should place your app in a folder that is owned by the executing user or writable, e.g. /home/node/webapp . see...
Read more >
Create bootstrap actions to install additional software
Bootstrap actions execute as the Hadoop user by default. You can execute a bootstrap action with root privileges by using sudo . All...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found