Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to start Octopus CLI (intermittent) #73

Closed
flin-8 opened this issue May 6, 2020 · 2 comments
Closed

Unable to start Octopus CLI (intermittent) #73

flin-8 opened this issue May 6, 2020 · 2 comments
Assignees
Labels
kind/bug Something isn't working
Milestone

Comments

@flin-8
Copy link
Contributor

flin-8 commented May 6, 2020

The bug

Sometimes Octopus CLI may fail to start with a message that looks like:

The application to execute does not exist: '/private/var/folders/hj/202p2m5n7r91bbg91h69rl480000gq/T/.net/octo/40kc2l11.14r/octo.dll'.

or

Error:
  An assembly specified in the application dependencies manifest (octo.deps.json) was not found:
    package: 'Markdig', version: '0.10.4'
    path: 'lib/netstandard1.1/Markdig.dll'

This is a dotnet core issue that affects all single-file executables. When running the executable, the contents are extracted to a temporary directory and executes from there. The unfortunate thing is that temporary files sometimes get cleaned up by scheduled tasks and other processes, which breaks things. Microsoft has recently fixed this issue so we will be able to fix this permanently once they releases the new version of NetCore 3.1.

What I expected to happen

Octopus CLI should work even when some of the files have been cleaned up.

Affected versions

Reproduced in 7.3.2

Workarounds

The .net documentation here​ explains how the extraction location is determined. You can override this in the meantime by setting the DOTNET_BUNDLE_EXTRACT_BASE_DIR environment variable to somewhere else.

Links

https://secure.helpscout.net/conversation/1118339129/59694?folderId=2118197
https://help.octopus.com/t/octopus-cli-issues-on-macos/25041

@flin-8 flin-8 added the kind/bug Something isn't working label May 6, 2020
@matt-richardson
Copy link
Contributor

Build agents are now using netcore 3.1.4

@matt-richardson matt-richardson self-assigned this May 18, 2020
@matt-richardson matt-richardson added this to the 7.3.6 milestone May 18, 2020
@matt-richardson
Copy link
Contributor

Release note: Fixed intermittent startup issue due to extracted files missing

@matt-richardson matt-richardson modified the milestones: 7.3.6, 7.3.7 May 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants