Discussion:
Manually test smb endpoint connection on linux
Ivana Cace
2018-08-27 10:16:17 UTC
Permalink
What can i use on redhat linux to test if an smb location will be accessible with camel-jcifs? I tries using 'smbclient' but i get 'LOGON_FAILURE' in for locations that camel *can* actually write to. Is there anything else i can use?


Background:
I have a small Apache Camel application that picks up files at a smb endpoint:

smb://domain.nl;user-***@domain.nl/my/file/location?password=Blablabla&move=${processedFolder}&sendEmptyMessageWhenIdle=true&consumer.bridgeErrorHandler=true


Recently we had a glitch and the process failed after moving some of the files we had lined up. Logs made it clear the files from the smb location suddenly became inaccesible.
smbclient -L domain.nl -U user-name -d 10
This returned session setup failed: NT_STATUS_LOGON_FAILURE after many debug lines.

Long story short, it turned out it was just a glitch, after rerunning camel all the files were picked up. So smbclient is not the way to check if apache camel using Samba JCIFS can access a location. But what is? Next time, how can i check manually from the linux server if a smb location is available?
I should note that the linux-version is ancient, 5.5 redhat.
camel version: 2.20.1, camel jcifs version: 2.18.0, jcifs version: 1.3.18

Thanks in advance, we have no in-house sys-admins anymore to help with this kind of deployment questions.

Ivana Cace




***************************************** De informatie verzonden in deze e-mail (inclusief bijlagen) kan vertrouwelijk van aard zijn en is uitsluitend bestemd voor de geadresseerde(n). Indien deze e-mail niet voor u bestemd is, verzoeken wij u vriendelijk het bericht te retourneren en vervolgens te vernietigen. Yarden doet er alles aan om ervoor te zorgen dat verzonden e-mailberichten vrij zijn van virussen, maar kan dit niet garanderen. Yarden Holding B.V., statutair gevestigd te Almere, Handelsregisternummer 34155452 Yarden Uitvaartfaciliteiten B.V., statutair gevestigd te Almere, Handelsregisternummer 30104432 Yarden Uitvaartzorg B.V., statutair gevestigd te Almere, Handelsregisternummer 04050164 Yarden Uitvaartverzekeringen N.V., statutair gevestigd te Almere, Handelsregisternummer 33244450 *****************************************
Andrea Cosentino
2018-08-27 10:17:14 UTC
Permalink
You need to ask to camel-extras guys.

--
Andrea Cosentino 
----------------------------------
Apache Camel PMC Chair
Apache Karaf Committer
Apache Servicemix PMC Member
Email: ***@yahoo.com
Twitter: @oscerd2
Github: oscerd






On Monday, August 27, 2018, 12:16:32 PM GMT+2, Ivana Cace <***@yarden.nl> wrote:





What can i use on redhat linux to test if an smb location will be accessible with camel-jcifs? I tries using 'smbclient' but i get 'LOGON_FAILURE' in for locations that camel *can* actually write to. Is there anything else i can use?


Background:
I have a small Apache Camel application that picks up files at a smb endpoint:

smb://domain.nl;user-***@domain.nl/my/file/location?password=Blablabla&move=${processedFolder}&sendEmptyMessageWhenIdle=true&consumer.bridgeErrorHandler=true


Recently we had a glitch and the process failed after moving some of the files we had lined up. Logs made it clear the files from the smb location suddenly became inaccesible.
smbclient -L domain.nl -U user-name -d 10
This returned session setup failed: NT_STATUS_LOGON_FAILURE after many debug lines.

Long story short, it turned out it was just a glitch, after rerunning camel all the files were picked up. So smbclient is not the way to check if apache camel using Samba JCIFS can access a location. But what is? Next time, how can i check manually from the linux server if a smb location is available?
I should note that the linux-version is ancient, 5.5 redhat.
camel version: 2.20.1, camel jcifs version: 2.18.0, jcifs version: 1.3.18

Thanks in advance, we have no in-house sys-admins anymore to help with this kind of deployment questions.

Ivana Cace




***************************************** De informatie verzonden in deze e-mail (inclusief bijlagen) kan vertrouwelijk van aard zijn en is uitsluitend bestemd voor de geadresseerde(n). Indien deze e-mail niet voor u bestemd is, verzoeken wij u vriendelijk het bericht te retourneren en vervolgens te vernietigen. Yarden doet er alles aan om ervoor te zorgen dat verzonden e-mailberichten vrij zijn van virussen, maar kan dit niet garanderen. Yarden Holding B.V., statutair gevestigd te Almere, Handelsregisternummer 34155452 Yarden Uitvaartfaciliteiten B.V., statutair gevestigd te Almere, Handelsregisternummer 30104432 Yarden Uitvaartzorg B.V., statutair gevestigd te Almere, Handelsregisternummer 04050164 Yarden Uitvaartverzekeringen N.V., statutair gevestigd te Almere, Handelsregisternummer 33244450 *****************************************
Ivana Cace
2018-08-27 10:54:08 UTC
Permalink
Thanks, will do!

-----Oorspronkelijk bericht-----
Van: Andrea Cosentino [mailto:***@yahoo.com.INVALID]
Verzonden: maandag 27 augustus 2018 12:17
Aan: ***@camel.apache.org
Onderwerp: Re: Manually test smb endpoint connection on linux

You need to ask to camel-extras guys.

--
Andrea Cosentino 
----------------------------------
Apache Camel PMC Chair
Apache Karaf Committer
Apache Servicemix PMC Member
Email: ***@yahoo.com
Twitter: @oscerd2
Github: oscerd






On Monday, August 27, 2018, 12:16:32 PM GMT+2, Ivana Cace <***@yarden.nl> wrote:





What can i use on redhat linux to test if an smb location will be accessible with camel-jcifs? I tries using 'smbclient' but i get 'LOGON_FAILURE' in for locations that camel *can* actually write to. Is there anything else i can use?


Background:
I have a small Apache Camel application that picks up files at a smb endpoint:

smb://domain.nl;user-***@domain.nl/my/file/location?password=Blablabla&move=${processedFolder}&sendEmptyMessageWhenIdle=true&consumer.bridgeErrorHandler=true


Recently we had a glitch and the process failed after moving some of the files we had lined up. Logs made it clear the files from the smb location suddenly became inaccesible.
smbclient -L domain.nl -U user-name -d 10
This returned session setup failed: NT_STATUS_LOGON_FAILURE after many debug lines.

Long story short, it turned out it was just a glitch, after rerunning camel all the files were picked up. So smbclient is not the way to check if apache camel using Samba JCIFS can access a location. But what is? Next time, how can i check manually from the linux server if a smb location is available?
I should note that the linux-version is ancient, 5.5 redhat.
camel version: 2.20.1, camel jcifs version: 2.18.0, jcifs version: 1.3.18

Thanks in advance, we have no in-house sys-admins anymore to help with this kind of deployment questions.

Ivana Cace




***************************************** De informatie verzonden in deze e-mail (inclusief bijlagen) kan vertrouwelijk van aard zijn en is uitsluitend bestemd voor de geadresseerde(n). Indien deze e-mail niet voor u bestemd is, verzoeken wij u vriendelijk het bericht te retourneren en vervolgens te vernietigen. Yarden doet er alles aan om ervoor te zorgen dat verzonden e-mailberichten vrij zijn van virussen, maar kan dit niet garanderen. Yarden Holding B.V., statutair gevestigd te Almere, Handelsregisternummer 34155452 Yarden Uitvaartfaciliteiten B.V., statutair gevestigd te Almere, Handelsregisternummer 30104432 Yarden Uitvaartzorg B.V., statutair gevestigd te Almere, Handelsregisternummer 04050164 Yarden Uitvaartverzekeringen N.V., statutair gevestigd te Almere, Handelsregisternummer 33244450 *****************************************

______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________

***************************************** De informatie verzonden in deze e-mail (inclusief bijlagen) kan vertrouwelijk van aard zijn en is uitsluitend bestemd voor de geadresseerde(n). Indien deze e-mail niet voor u bestemd is, verzoeken wij u vriendelijk het bericht te retourneren en vervolgens te vernietigen. Yarden doet er alles aan om ervoor te zorgen dat verzonden e-mailberichten vrij zijn van virussen, maar kan dit niet garanderen. Yarden Holding B.V., statutair gevestigd te Almere, Handelsregisternummer 34155452 Yarden Uitvaartfaciliteiten B.V., statutair gevestigd te Almere, Handelsregisternummer 30104432 Yarden Uitvaartzorg B.V., statutair gevestigd te Almere, Handelsregisternummer 04050164 Yarden Uitvaartverzekeringen N.V., statutair gevestigd te Almere, Handelsregisternummer 33244450 **********************************
Loading...