Skip to content

[D:1763013] Error: Can't send a remote File Path to a different remote channel from FoD Jenkins Plugin 7.2/8#165

Open
pvivekdev wants to merge 5 commits intoAlberto_Trace_Logging_for_customerfrom
pvivek_Remoting_Trace_Logging_for_customer
Open

[D:1763013] Error: Can't send a remote File Path to a different remote channel from FoD Jenkins Plugin 7.2/8#165
pvivekdev wants to merge 5 commits intoAlberto_Trace_Logging_for_customerfrom
pvivek_Remoting_Trace_Logging_for_customer

Conversation

@pvivekdev
Copy link
Copy Markdown
Collaborator

[D:1763013] Error: Can't send a remote File Path to a different remote channel from FoD Jenkins Plugin 7.2/8

Cause:
A FilePath instance is tied to the remoting channel (agent or controller) where it was created. Using a FilePath on a different channel, Jenkins throws an IllegalStateException. Fix:
Copying the file ensures locality:
By copying the payload file to the agent's workspace, you guarantee that the file is available on the agent's filesystem, not just on the controller or another agent. Reconstructing FilePath ensures correct channel binding:

vivek added 4 commits June 13, 2025 09:32
… channel from FoD Jenkins Plugin 7.2/8

Cause:
A FilePath instance is tied to the remoting channel (agent or controller) where it was created. Using a FilePath on a different channel, Jenkins throws an IllegalStateException.
Fix:
Copying the file ensures locality:
By copying the payload file to the agent's workspace, you guarantee that the file is available on the agent's filesystem, not just on the controller or another agent.
Reconstructing FilePath ensures correct channel binding:
… channel from FoD Jenkins Plugin 7.2/8

Cause:
A FilePath instance is tied to the remoting channel (agent or controller) where it was created. Using a FilePath on a different channel, Jenkins throws an IllegalStateException.
Fix:
Copying the file ensures locality:
By copying the payload file to the agent's workspace, you guarantee that the file is available on the agent's filesystem, not just on the controller or another agent.
Reconstructing FilePath ensures correct channel binding:
… channel from FoD Jenkins Plugin 7.2/8

Cause:
A FilePath instance is tied to the remoting channel (agent or controller) where it was created. Using a FilePath on a different channel, Jenkins throws an IllegalStateException.
Fix:
Copying the file ensures locality:
By copying the payload file to the agent's workspace, you guarantee that the file is available on the agent's filesystem, not just on the controller or another agent.
Reconstructing FilePath ensures correct channel binding:
}

async loadEntitlementSettings(releaseChangedPayload) {
if (!this.uiLoaded) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this removed?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The (! this.uiLoaded) is always set to false and the functional call to this.loadEntitlements becomes recursive which prevents the rest of the UI controls from loading,

Have tested the Freestyle flow with the removal, Able to render the ui controls successfully.

…e channel from FoD Jenkins Plugin 7.2/8

Fix:
File Path made Transient
Removed CopyTo and construct the filePath using the Absolution Path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants