Unable to connect to remote EE server

Questions about YourKit Java Profiler
Locked
peking1983
Posts: 3
Joined: Thu Aug 29, 2024 5:04 pm

Unable to connect to remote EE server

Post by peking1983 »

I have been working with YJP and figuring out more of the security issues.

The one I've been stuck with is I can SSH to the server and login without issue.
When I try to use those credentials via YJP, I get an error that cannot upload files.

I don't know much about the server as it's inherited and I am trying to support but it is running on Payara 5 built on openjdk version "1.8.0_362"


I see the errors but my license doesn't allow me to use a newer version.

22.9-183 506755.403: ERROR: com.yourkit.ad.c.c: : 3: Permission denied
at com.jcraft.jsch.ChannelSftp.throwStatusError(ChannelSftp.java:2827)
at com.jcraft.jsch.ChannelSftp.mkdir(ChannelSftp.java:2156)
at com.yourkit.ad.c.c.a(a:89)
at com.yourkit.ad.c.c.c(a:118)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at com.yourkit.ad.c.j.run(a:86)

Any info what the permission denied/failed to upload files error is? I would assume permission setting somewhere but not enough details or googling has been able to find it.
Vladimir Kondratyev
Posts: 1660
Joined: Tue Aug 10, 2004 7:52 pm

Re: Unable to connect to remote EE server

Post by Vladimir Kondratyev »

Maybe your SSH user doesn't have the necessary permissions to create files. For example, does the user have a home directory? Can you try uploading something to your server using the 'scp' command with the same credentials you specified in the profiler?

Best regards,
Vladimir Kondratyev
YourKit GmbH
http://www.yourkit.com
"Don't get lost in data, get information!"
peking1983
Posts: 3
Joined: Thu Aug 29, 2024 5:04 pm

Re: Unable to connect to remote EE server

Post by peking1983 »

Thank you for the insight, as that was the issue.
The program was running as a user with no home directory, creating the home and was YJP able to connect remotely.
Vladimir Kondratyev
Posts: 1660
Joined: Tue Aug 10, 2004 7:52 pm

Re: Unable to connect to remote EE server

Post by Vladimir Kondratyev »

Thank you for confirming that the issue has been resolved. We will work on handling this "no home" situation better in future versions to provide more precise and useful error messages.

Best regards,
Vladimir Kondratyev
YourKit GmbH
http://www.yourkit.com
"Don't get lost in data, get information!"
Locked