Community
 
 
 

CloudPortal Business Manager 2.x

324 seguidores
 
Avatar
Pankaj Paliwal

CPBM 2.1 - Remote Transfer Error

Avatar

CPBM 2.1 - Remote Transfer Error

Is there anyway in CPBM 2.1 to disable the SFTP remote transfer?

By default is causes the following ERROR/FileSystemException in the cpbm-server.log:

[2013-09-30 04:00:02.909] ERROR chedulerFactoryBean_Worker-4 com.vmops.utils.transfer.RemoteTransfer FileSystemException org.apache.commons.vfs.FileSystemException: Could not connect to SFTP server at "sftp://root:root1234@localhost/".
at org.apache.commons.vfs.provider.sftp.SftpFileProvider.doCreateFileSystem(SftpFileProvider.java:99)
at org.apache.commons.vfs.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:81)
at org.apache.commons.vfs.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:62)
at org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:641)
at org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:582)
at com.vmops.utils.transfer.RemoteTransfer.exportSftpFile(RemoteTransfer.java:68)
at com.vmops.utils.transfer.RemoteTransfer.exportFile(RemoteTransfer.java:40)
at com.citrix.cpbm.billing.export.stream.service.impl.StreamExportServiceImpl.exportBatchFile(StreamExportServiceImpl.java:169)
at com.citrix.cpbm.billing.export.stream.service.impl.StreamExportServiceImpl.process(StreamExportServiceImpl.java:132)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58)
at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at sun.proxy.$Proxy509.process(Unknown Source)
at com.vmops.admin.jobs.BillingExportJob.run(BillingExportJob.java:118)
at com.vmops.admin.jobs.AbstractPortalJob.execute(AbstractPortalJob.java:61)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)
Caused by: org.apache.commons.vfs.FileSystemException: Could not connect to SFTP server at "localhost".
at org.apache.commons.vfs.provider.sftp.SftpClientFactory.createConnection(SftpClientFactory.java:214)
at org.apache.commons.vfs.provider.sftp.SftpFileProvider.doCreateFileSystem(SftpFileProvider.java:90)
... 30 common frames omitted
Caused by: com.jcraft.jsch.JSchException: Auth fail
at com.jcraft.jsch.Session.connect(Session.java:452)
at com.jcraft.jsch.Session.connect(Session.java:150)
at org.apache.commons.vfs.provider.sftp.SftpClientFactory.createConnection(SftpClientFactory.java:210)
... 31 common frames omitted


TARIQ IQBAL MEMBERS
3 comentários
0

iniciar sessão para comentar.

 
 

Previous 3 comentários

Avatar
Pankaj Paliwal
Avatar

CPBM 2.1 - Remote Transfer Error

Hi Tariq,

We have a job "billingExportJob" which creates billing reports and export them to an FTP location. If you do not wish to export any report then you can customize the scheduler (file applicationContext-jobs.xml* at *citrix.cpbm.custom.common/src/main/resources/META-INF/spring ) and update the cron expression to some large value . This way the "billingExportJob" will not run.

For more info on how to customize CPBM please check: http://support.citrix.com/proddocs/topic/cpbm-21-map/cpbm-cust-wrapper-con.html

Please let me know if you need more info.

Thanks,
Manish


Manish Agarwal CITRIX EMPLOYEES
Ações de comentário Permalink
Avatar
Pankaj Paliwal
Avatar

Hi Manish,

In your comment you said: "...billingExportJob which creates billing reports and export them...", if I change its cron expression to a large value, does that mean the billing reports won't be created ?

In CPBM 1.4.x, I found when changing a job's cron expression also required the Quartz DB tables to be flushed for the new time to take effect, will I still need to do this in 2.1?

Thanks


TARIQ IQBAL MEMBERS
Ações de comentário Permalink
Avatar
Pankaj Paliwal
Avatar

Hi Tariq,

Thats correct. If you set the cron expression to some higher value then the job will not run and no billing reports will be created.

To change the cron expression you need to update the required file (file applicationContext-jobs.xml* at *citrix.cpbm.custom.common/src/main/resources/META-INF/spring ) , create the custom bundle , add the bundle into VTS and restart the CPBM server. (more info about installing/creating custom bundles at: http://support.citrix.com/proddocs/topic/cpbm-21-map/cpbm-cust-wrapper-con.html )

CPBM server restart will push fresh values in QRTZ tables.

Thanks,
Manish


Manish Agarwal CITRIX EMPLOYEES
Ações de comentário Permalink

Top Contributors