My Oracle Support Banner

Add Storage Operation failed (Doc ID 2569266.1)

Last updated on AUGUST 14, 2020

Applies to:

Java Cloud Service - Version N/A and later
Information in this document applies to any platform.

Symptoms


Enabling cronjob which updates sudoers and SSHD_config files causing for Add Storage operation to fail

In this case cron job setup which executes and updates few files like sshd_config, etc/sudoers and other security files in the VM causing Add Storage operation failed

In the PSM JOB logs we do see the following error message

2019-07-11T20:08:00.721+00:00 [WARNING]:Retrying upon transient error: sm.rex.trilead.ioexception.scp.put: PSM-REX-0005: Trilead throws an IOException while copying to remote host: XXX.XXX.XX.XXX, port: 22, user: otools remote_file: "/tmp"
sm.rex.trilead.ioexception.scp.put: PSM-REX-0005: Trilead throws an IOException while copying to remote host: XXX.XXX.XX.XXX, port: 22, user: otools remote_file: "/tmp"
oracle.paas.platform.exception.NException: sm.rex.trilead.ioexception.scp.put: PSM-REX-0005: Trilead throws an IOException while copying to remote host: XXX.XXX.XX.XXX5, port: 22, user: otools remote_file: "/tmp", cause: java.io.IOException: Error during SCP transfer.
at oracle.paas.platform.exception.NException.create(NException.java:38)
at oracle.paas.platform.ssh.SshClient.put(SshClient.java:689)
at oracle.paas.platform.compute.mgr.remoteexec.RemoteFile.copyExecutable(RemoteFile.java:35)
at oracle.paas.platform.compute.operations.AddDynamicStorageOperation.transferScript(AddDynamicStorageOperation.java:252)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at oracle.paas.platform.job.internal.exec.Executor.doActions(Executor.java:487)
at oracle.paas.platform.job.internal.exec.Executor.retry(Executor.java:1617)
at oracle.paas.platform.job.internal.exec.Executor.run(Executor.java:1653)
at oracle.paas.platform.job.internal.exec.Executor$1.doIt(Executor.java:137)
at oracle.paas.platform.dao.internal.SMEntityManagerFactory.doWithNewEM(SMEntityManagerFactory.java:147)
at oracle.paas.platform.job.internal.exec.Executor.execute(Executor.java:95)
at sun.reflect.GeneratedMethodAccessor636.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at oracle.paas.platform.job.internal.scheduler.JobScheduler$1.run(JobScheduler.java:138)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.IOException: Error during SCP transfer.
at com.trilead.ssh2.SCPClient.put(SCPClient.java:592)
at com.trilead.ssh2.SCPClient.put(SCPClient.java:547)
at com.trilead.ssh2.SCPClient.put(SCPClient.java:434)
at oracle.paas.platform.ssh.SshClient.put(SshClient.java:687)
... 17 more
Caused by: java.io.IOException: Remote scp terminated unexpectedly.
at com.trilead.ssh2.SCPClient.readResponse(SCPClient.java:50)
at com.trilead.ssh2.SCPClient.sendFiles(SCPClient.java:166)
at com.trilead.ssh2.SCPClient.put(SCPClient.java:588)
... 20 more

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.