Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Camel ftp issue in writing file #5682

Open
Rizzid761 opened this issue Jul 2, 2024 · 6 comments
Open

Camel ftp issue in writing file #5682

Rizzid761 opened this issue Jul 2, 2024 · 6 comments
Labels
kind/bug Something isn't working status/waiting-for-feedback Needs some feedback

Comments

@Rizzid761
Copy link

What happened?

Iam facing issue in camel ftp it is able to connect but while writing file .it is throwing error writing failed , connection closed . With same cred .net application is able to write

Please note : tried with passsivemode true.

Steps to reproduce

No response

Relevant log output

No response

Camel K version

2.32

@Rizzid761 Rizzid761 added the kind/bug Something isn't working label Jul 2, 2024
@squakez
Copy link
Contributor

squakez commented Jul 2, 2024

Thanks for reporting. Can you please provide a sample of the failing application? also it would be good to have some log to troubleshoot.

@squakez
Copy link
Contributor

squakez commented Jul 2, 2024

Assuming you're trying to execute something like in the issue #620 - I've tried the following:

import org.apache.camel.builder.RouteBuilder;

public class Test extends RouteBuilder {
    @Override
    public void configure() throws Exception {
        from("timer:poll?period=10s")
        .setBody().constant("FTP Test")
        .to("ftps://admin@localhost:2222/public/[email protected]&password=admin&fileName=foo.bar&transferLoggingLevel=DEBUG&transferLoggingIntervalSeconds=1&transferLoggingVerbose=false&passiveMode=true")
        .to("log:info");
    }
}

This one seems to work correctly. Could you please try it (changing the credentials and the ftp server host) and provide here the error you get? Thanks.

@squakez squakez added the status/waiting-for-feedback Needs some feedback label Jul 2, 2024
@Rizzid761
Copy link
Author

Thank you , Yes but Im trying with camel xml dsi.i could see the file in directory but its 0 kb
In logs details like
Connected to server
About to store file
Ftp returned false
Writing file failed

@squakez
Copy link
Contributor

squakez commented Jul 2, 2024

Okey. I bet it's some permission issue then. Make sure the user has the right privileges to write files on such a folder. As you are correctly connecting to the server, it does not seem related directly to Camel K.

@Rizzid761
Copy link
Author

Rizzid761 commented Jul 2, 2024

Below is the sample code

@Rizzid761
Copy link
Author

but in .net application with same credentials its working fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working status/waiting-for-feedback Needs some feedback
Projects
None yet
Development

No branches or pull requests

2 participants