Skip to content

cOctopusServer - References to system drive - OctopusServer.config expected in $($env:SystemDrive)\Octopus\ #219

@LukeRaffertyDev

Description

@LukeRaffertyDev

Hi All,

We are attempting to use the cOctopusServer DSC module to upgrade existing instances of Octopus Server. Our existing installation is to the E: drive (not to the main system drive).

I am able to pass E: drive paths for some settings, however there seems to be some hard-coded references to $($env:SystemDrive)\Octopus\ that cause failure.

I am passing E:\Octopus\... for artifactsdirectory, homedirectory, packagesdirectory, tasklogsdirectory, however still get the error message below.

PowerShell DSC resource cOctopusServer failed to execute Test-TargetResource functionality with error message: Config path 'C:\Octopus\OctopusServer.config' does not exist.

I believe the following is the main issue:

$configPath = "$($env:SystemDrive)\Octopus\OctopusServer.config"

As a workaround, I have attempted to manually copy the OctopusServer.config from E:\Octopus to C:\Octopus, however I still encounter failures, so I assume there might be more to this.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions