find 'cygdrive/j' : Permission denied #282

Closed
carc1n0gen opened this Issue Apr 9, 2015 · 12 comments

Comments

Projects
None yet
3 participants
@carc1n0gen

Upon installing a fresh babun 1.1.0 I have the following output:

Executing daily babun check:
Source consistent [OK]
Prompt speed      [OK]
File permissions  [OK]
Connection check  [OK]
Update check      [OUTDATED]
Hint: your babun is outdated. Execute 'babun update'
Cygwin check      [OK]
find: ‘/cygdrive/i’: Permission denied
find: ‘/cygdrive/j’: Permission denied
Welcome to babun - the Windows shell you will love!
You have got a lot of things under the hood here!

   pact -> a package manager that handles installation of babun packages
      pact install tar -> will install tar package on your system
      pact remove tar -> will remove tar package from your system

   babun -> a script that manages babun and enables auto-update
      babun check -> will check the configuration (proxy, connection, etc)
      babun update -> will update babun to the newest version
      babun --welcome -> will display this message again

There is a couple of plugins installed by default: oh-my-zsh, pact, cacert, etc.
There is also a lot of dev tools such as git, svn, unix utils, etc
If you would like to contribute, code up a plugin or report an issue just
go to github: https://github.com/babun/babun

If you like the project star it on github and follow me on twitter!
This project is created and maintained by Tom Bujok (@tombujok)

Note the find 'cygdrive/j' : Permission denied and find 'cygdrive/i' : Permission denied

Also when executing babun update as requested by this output I get:

Executing babun update
  upstream  [release]
  installed [1.1.0]
  newest    [1.1.1]
HEAD is now at 4c8eed3 Fixing version on fresh install
Fetching origin
error: Could not fetch origin
Error on or near line 47, last command 'git --git-dir="$babun/source/.git" --work-tree="$babun/source" fetch --all';

I then closed the terminal and opened a new one and now babun update outputs:

Executing babun update
: invalid option name: line 2: set: pipefail
@ylecuyer

This comment has been minimized.

Show comment
Hide comment
@ylecuyer

ylecuyer Apr 10, 2015

Contributor

I have th same problem every time I launch babun

babun

Contributor

ylecuyer commented Apr 10, 2015

I have th same problem every time I launch babun

babun

@tombujok

This comment has been minimized.

Show comment
Hide comment
@tombujok

tombujok Apr 10, 2015

Contributor

Could you execute the following commands and paste the result:
find /cygdrive/ -maxdepth 1 -type d
and
ls -al /cygdrive/

Contributor

tombujok commented Apr 10, 2015

Could you execute the following commands and paste the result:
find /cygdrive/ -maxdepth 1 -type d
and
ls -al /cygdrive/

@ylecuyer

This comment has been minimized.

Show comment
Hide comment
@ylecuyer

ylecuyer Apr 10, 2015

Contributor

Here is the result:
babun_2

Contributor

ylecuyer commented Apr 10, 2015

Here is the result:
babun_2

@tombujok

This comment has been minimized.

Show comment
Hide comment
@tombujok

tombujok Apr 10, 2015

Contributor

Basically it looks like u is an unidentifed network drive which you don't have acces to.
Can you access u in a File Explorer?

Contributor

tombujok commented Apr 10, 2015

Basically it looks like u is an unidentifed network drive which you don't have acces to.
Can you access u in a File Explorer?

@ylecuyer

This comment has been minimized.

Show comment
Hide comment
@ylecuyer

ylecuyer Apr 10, 2015

Contributor

You're right. It's displayed in explorer but I can't access it.

Contributor

ylecuyer commented Apr 10, 2015

You're right. It's displayed in explorer but I can't access it.

@tombujok

This comment has been minimized.

Show comment
Hide comment
@tombujok

tombujok Apr 10, 2015

Contributor

OK, it's just a stderr message from find.
Could you execute the following command and past the result?
find /cygdrive/ -maxdepth 1 -type d 2>/dev/null

Contributor

tombujok commented Apr 10, 2015

OK, it's just a stderr message from find.
Could you execute the following command and past the result?
find /cygdrive/ -maxdepth 1 -type d 2>/dev/null

@ylecuyer

This comment has been minimized.

Show comment
Hide comment
@ylecuyer

ylecuyer Apr 10, 2015

Contributor

You're right. It's displayed in explorer but I can't access it.

On Fri, Apr 10, 2015 at 11:55 AM, Tom Bujok notifications@github.com
wrote:

Basically it looks like u is an unidentifed network drive which you don't
have acces to.
Can you access u in a File Explorer?


Reply to this email directly or view it on GitHub
#282 (comment).

Contributor

ylecuyer commented Apr 10, 2015

You're right. It's displayed in explorer but I can't access it.

On Fri, Apr 10, 2015 at 11:55 AM, Tom Bujok notifications@github.com
wrote:

Basically it looks like u is an unidentifed network drive which you don't
have acces to.
Can you access u in a File Explorer?


Reply to this email directly or view it on GitHub
#282 (comment).

@tombujok

This comment has been minimized.

Show comment
Hide comment
@tombujok

tombujok Apr 10, 2015

Contributor

I understand. It would be just great to check if redirecting the output to stderr removes this permission denied messages.
find /cygdrive/ -maxdepth 1 -type d 2>/dev/null

Contributor

tombujok commented Apr 10, 2015

I understand. It would be just great to check if redirecting the output to stderr removes this permission denied messages.
find /cygdrive/ -maxdepth 1 -type d 2>/dev/null

@ylecuyer

This comment has been minimized.

Show comment
Hide comment
@ylecuyer

ylecuyer Apr 10, 2015

Contributor

It does:
babun_3

Contributor

ylecuyer commented Apr 10, 2015

It does:
babun_3

@tombujok

This comment has been minimized.

Show comment
Hide comment
@tombujok

tombujok Apr 10, 2015

Contributor

Perfect! Would you like to fix the second find execution in the file mentioned below and submit a pull request so that you get the credits ;) ?
https://github.com/babun/babun/blob/master/babun-core/plugins/cygdrive/start.sh

Contributor

tombujok commented Apr 10, 2015

Perfect! Would you like to fix the second find execution in the file mentioned below and submit a pull request so that you get the credits ;) ?
https://github.com/babun/babun/blob/master/babun-core/plugins/cygdrive/start.sh

@carc1n0gen

This comment has been minimized.

Show comment
Hide comment
@carc1n0gen

carc1n0gen Apr 11, 2015

Any ideas about the babun update problem?

Any ideas about the babun update problem?

@tombujok tombujok closed this in #287 Apr 14, 2015

@tombujok

This comment has been minimized.

Show comment
Hide comment
@tombujok

tombujok Apr 14, 2015

Contributor

Fixed in 1.2.0
See release status: #304

Contributor

tombujok commented Apr 14, 2015

Fixed in 1.2.0
See release status: #304

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment