阿里云OSS资源迁移(Exception:com.aliyun.oss.ClientException: ConnectionTimeout)

由于公司需要,需要将公司在阿里云服务器上的资源,迁移到OSS上。我之前做过成功的案例,所以还是我来负责。

[2018-08-10 07:40:18]	[ERROR]	oss upload failed, key:upload/shop/store/goods/16/2017/06/02/16_05497085769224612_1280.jpg Exception:com.aliyun.oss.ClientException: ConnectionTimeout
	at com.aliyun.oss.common.utils.ExceptionFactory.createNetworkException(ExceptionFactory.java:71)
	at com.aliyun.oss.common.comm.DefaultServiceClient.sendRequestCore(DefaultServiceClient.java:128)
	at com.aliyun.oss.common.comm.ServiceClient.sendRequestImpl(ServiceClient.java:128)
	at com.aliyun.oss.common.comm.ServiceClient.sendRequest(ServiceClient.java:69)
	at com.aliyun.oss.internal.OSSOperation.send(OSSOperation.java:94)
	at com.aliyun.oss.internal.OSSOperation.doOperation(OSSOperation.java:156)
	at com.aliyun.oss.internal.OSSOperation.doOperation(OSSOperation.java:113)
	at com.aliyun.oss.internal.OSSObjectOperation.writeObjectInternal(OSSObjectOperation.java:907)
	at com.aliyun.oss.internal.OSSObjectOperation.putObject(OSSObjectOperation.java:148)
	at com.aliyun.oss.OSSClient.putObject(OSSClient.java:475)
	at com.aliyun.oss.OSSClient.putObject(OSSClient.java:457)
	at com.aliyun.ossimport.worker.uploader.OssUploader.singleUpload(OssUploader.java:164)
	at com.aliyun.ossimport.worker.uploader.OssUploader.upload(OssUploader.java:139)
	at com.aliyun.ossimport.worker.task.localimpl.LocalImportTask.uploadWithRetry(LocalImportTask.java:75)
	at com.aliyun.ossimport.worker.task.localimpl.LocalImportTask.run(LocalImportTask.java:129)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.http.conn.ConnectTimeoutException: Connect to dev-jzd-shop.oss-cn-beijing-internal.aliyuncs.com:80 [dev-jzd-shop.oss-cn-beijing-internal.aliyuncs.com/100.118.58.7, dev-jzd-shop.oss-cn-beijing-internal.aliyuncs.com/100.118.58.9, dev-jzd-shop.oss-cn-beijing-internal.aliyuncs.com/100.118.58.6, dev-jzd-shop.oss-cn-beijing-internal.aliyuncs.com/100.118.58.8] failed: connect timed out
	at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:143)
	at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353)
	at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380)
	at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
	at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)
	at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
	at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
	at com.aliyun.oss.common.comm.DefaultServiceClient.sendRequestCore(DefaultServiceClient.java:125)
	... 16 more
Caused by: java.net.SocketTimeoutException: connect timed out
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
	at java.net.Socket.connect(Socket.java:589)
	at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:74)
	at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:134)
	... 24 more

 当运行时,出现如上故障。百思不得琪姐,但是最后还是让我给调查出原因来了!

local_job.cfg 中:destDomain=http://oss-cn-beijing-internal.aliyuncs.com 

配置错误!

香港服务器与北京OSS之间数据迁移不能用内网!

正确配置为:destDomain=http://oss-cn-beijing.aliyuncs.com 

你可能感兴趣的:(java)