Exception when changing to directory, Finished: UNSTABLE

585 views
Skip to first unread message

Saatviga Sudhahar

unread,
May 3, 2018, 6:17:59 PM5/3/18
to Jenkins Users
HI,

I'm using the Jenkins Send over SSH plugin to copy project files (wordpress) from my aws server to a remote server. 
The settings I'm using are,

source files : web_build/**/*
remove prefix: web_build
remote directory: 
exec command: 

In the configuration of the SSH Server, I'm specifying the remote directory as,

/home/online/public_html

The files are getting copied for a long time and in the end returns an error:

SSH: cd [wp-content/plugins/mailchimp-for-wp/integrations]
SSH: Disconnecting configuration [onl...@162.222.225.153] ...
ERROR: Exception when publishing, exception message [Exception when changing to directory [wp-content/plugins/mailchimp-for-wp/integrations]. Message []]
Build step 'Send files or execute commands over SSH' changed build result to UNSTABLE
Finished: UNSTABLE

I connect to the server using SSH keys.

Pls could someone help me with this?


Thanks

Victor Martinez

unread,
May 4, 2018, 3:22:03 AM5/4/18
to Jenkins Users
is wp-content/plugins/mailchimp-for-wp/integrations a relative path to where? Can you confirm if it works by using the absolute path instead?

Cheers

Saatviga Sudhahar

unread,
May 4, 2018, 5:35:06 AM5/4/18
to Jenkins Users
Hi Victor,

The wp-content folder is in my project folder web_build. This is what i specify in the source files section.
I want to copy all directories and files under web_build to the remote server location /home/online/public_html 
The error is thrown while its copying the files from this location. Most of the files are copied. 
This happens only in the end. I don't specify any other paths. 


Thanks

Victor Martinez

unread,
May 4, 2018, 6:04:01 AM5/4/18
to Jenkins Users
I'm not sure whether it will be related to  but it seems the remote directory is required in the global settings:


Cheers

Saatviga Sudhahar

unread,
May 4, 2018, 7:41:47 AM5/4/18
to Jenkins Users
I have specified the remote directory in the global settings already where I configure the connection to the SSH server.
Anyway thanks, I will look in to that. 

Björn Pedersen

unread,
May 4, 2018, 8:07:49 AM5/4/18
to Jenkins Users
Hi,
Did you carefully check ownership and access rights on this folder (on the web server side)? Maybe it is not accessible by the user you use?

Björn

Saatviga Sudhahar

unread,
May 4, 2018, 6:33:50 PM5/4/18
to Jenkins Users
Hi,

Thank you Bjorn. After fixing the permissions to 755 i don't get the change directory error anymore.

But i get,
ERROR: Exception when publishing, exception message [java.io.IOException: inputstream is closed]
Build step 'Send files or execute commands over SSH' changed build result to UNSTABLE
Finished: UNSTABLE

I'm not sure why the inputstream is closed. i don't have any other open connections to the server.
Any thoughts on this?



Thanks

Saatviga Sudhahar

unread,
May 9, 2018, 5:40:44 PM5/9/18
to Jenkins Users
Hi,

I'm still facing issues with the inputstream is closed error.
ERROR: Exception when publishing, exception message [java.io.IOException: inputstream is closed]
Build step 'Send files or execute commands over SSH' changed build result to UNSTABLE
Finished: UNSTABLE

when i upload the files manually via WinSCP to the remote server it gets copied.
The server closes connection in between but still Winscp automatically re-connects to the server 
and continues the copying.

In Jenkins is there a way to handle this. I use the Send over SSH plugin for this purpose.
I'm open to other suggestions as well. 


Thanks
Reply all
Reply to author
Forward
0 new messages