Not able to access and create files in path location(\\\\192.168.0.1/f$/D:\\p.txt)

49 views
Skip to first unread message

Saikumar Korada

unread,
Sep 23, 2018, 9:23:17 AM9/23/18
to Jenkins Users
while executing the program through eclipse its working. if iam running through jenkins its not working.

Slide

unread,
Sep 23, 2018, 10:59:58 AM9/23/18
to jenkins...@googlegroups.com
Your issue could be caused by Jenkins running as a different user, though from your description it is difficult to tell. Can you please give more information so we can better help?

On Sun, Sep 23, 2018, 06:23 Saikumar Korada <saikumar...@gmail.com> wrote:
while executing the program through eclipse its working. if iam running through jenkins its not working.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/1e8e67bd-63c2-4b38-81e9-443b5cca66b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Saikumar Korada

unread,
Sep 24, 2018, 2:36:41 AM9/24/18
to Jenkins Users
different user means

Andreas Magnusson

unread,
Sep 24, 2018, 6:12:07 AM9/24/18
to Jenkins Users
Your UNC path looks very strange. As I interpret it you have the following parts:
192.168.0.1 - localhost probably
f$ - automatic share created by windows on drive F:
D:\\p.txt - file on another drive

Question is, what are you trying to access? You could try:
\\\\192.168.0.1\D$\p.txt

Saikumar Korada

unread,
Sep 25, 2018, 12:32:34 PM9/25/18
to jenkins...@googlegroups.com
Hi one more clarification.
Re: Not able to access and create files in pathlocation(\\\\192.168.0.1\\screenshots\\p.txt) Shared folder parh.
while executing the program through eclipse its working. if iam running through jenkins its not working.

On Mon, Sep 24, 2018, 4:29 PM Andreas Magnusson <andreas.ch...@gmail.com> wrote:
Boxbe This message is eligible for Automatic Cleanup! (andreas.ch...@gmail.com) Add cleanup rule | More info
Your UNC path looks very strange. As I interpret it you have the following parts:
192.168.0.1 - localhost probably
f$ - automatic share created by windows on drive F:
D:\\p.txt - file on another drive

Question is, what are you trying to access? You could try:
\\\\192.168.0.1\D$\p.txt

On Sunday, September 23, 2018 at 3:23:17 PM UTC+2, Saikumar Korada wrote:
while executing the program through eclipse its working. if iam running through jenkins its not working.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.

Slide

unread,
Sep 25, 2018, 12:38:28 PM9/25/18
to jenkins...@googlegroups.com
Sounds like your Jenkins is running as a different user that doesn't have permissions to write to that share. 

Saikumar Korada

unread,
Sep 26, 2018, 1:11:55 AM9/26/18
to jenkins...@googlegroups.com
we are using active directory Authenticator. Not the Jenkins user.

On Tue, Sep 25, 2018, 10:36 PM Slide <slide...@gmail.com> wrote:
Boxbe This message is eligible for Automatic Cleanup! (slide...@gmail.com) Add cleanup rule | More info
Sounds like your Jenkins is running as a different user that doesn't have permissions to write to that share. 

On Tue, Sep 25, 2018 at 9:32 AM Saikumar Korada <saikumar...@gmail.com> wrote:

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.

Saikumar Korada

unread,
Sep 26, 2018, 2:21:19 AM9/26/18
to Jenkins Users
thats fine. Its creating the file in local.
For ex:shared path(\\\\192.168.0.1\\foldername\\p.txt) while executing the program through eclipse its working and creating the filse in shared path. if iam running through jenkins its not creating.
we are using active directory Authenticator. Not the Jenkins user.

Björn Pedersen

unread,
Sep 26, 2018, 2:50:31 AM9/26/18
to Jenkins Users
Hi,

There are a few  things which could be the reason ( and your descriptions are a bit too sparse to guess what is).

1) Is jenkins running on your local host?  (only then the 192.... probably resolve to a correct host)
if not:
  2) is the job  running on master  or on an agent ( again, the 192... will probably be wrong)
  3)  does the jenkins host or agent mount the volume in question?

4) as  mentioned: Does the jenkins user (this is not the user logging in ot jenkins, but the user that starts jenkins (or the user the agent is running as)) have access to the folder?

Generally accessing global ressources like a shared folder from jenkins should be done with care, as in a typical setup often more than one job may run in parallel.

Björn
Reply all
Reply to author
Forward
0 new messages