Cannot create directory no such file or directory linux

cannot create directory: No such file or directory #2218

Comments

nagisa commented Jun 14, 2017

  • Your Windows build number: (Type ver at a Windows Command Prompt)

No idea. Sorry. I haven’t access to the machine (anymore).

  • What you’re doing and what’s happening: (Copy&paste specific commands and their output, or include screen shots)

All I know that it was something along the lines of:

The only way to create directory again I’ve found is restarting; nothing else I’ve tried helped.

  • What’s wrong / what should be happening instead:

The error message is nonsensical; Should just create the directory.

  • Strace of the failing command, if applicable: (If is failing, then run strace -o strace.txt -ff , and post the strace.txt output here)

Sorry. I haven’t access to the machine (anymore). I will try reproducing elsewhere and report if I can hit it again.

The text was updated successfully, but these errors were encountered:

sunjoong commented Jun 14, 2017

@nagisa — It sounds similar to this scenario but. I’m not sure;

CherryDT commented Jun 17, 2017

@sunjoong Not sure, because in your case the error makes sense because your current directory doesn’t exist anymore so you are trying to create a directory inside a nonexistent one, while in the OPs description he did do cd .. before creating the directory.

nagisa commented Jun 17, 2017 •

I could not re-reproduce it. I will reopen if I ever hit this again.

jaron-l commented Mar 26, 2019

For documentation purposes, I was able to reproduce but it wasn’t a WSL error. It’s a permission issue. For me, it’s because I had Windows 10’s ransomware protection on which refuses write access to certain protected folders and refused WSL. Disabling it for mkdir specifically fixed the issue.

«
#Initial error
user@computer:/mnt/c/Users/directory/WSL$ mkdir test
mkdir: cannot create directory ‘test’: No such file or directory

#showing that my current directory exists
user@computer:/mnt/c/Users/directory/WSL$ pwd
/mnt/c/Users/directory/WSL

#change to directory not protected by windows 10 ransomware protection (inside WSL home folder)
user@computer:/mnt/c/Users/directory/WSL$ cd /home/user

#mkdir now works
user@computer: $ mkdir new
user@computer: $ ls
new

#turned off ransomware protection for WSL and mkdir now works
user@computer:/mnt/c/Users/directory/WSL$ mkdir test
user@computer:/mnt/c/Users/directory/WSL$ ls
test
«

Источник

deploy:release — mkdir: cannot create directory ‘****/releases/1’: No such file or directory #1818

Comments

jjpeleato commented Mar 6, 2019

Q A
Issue Type Question
Deployer Version v6.4.3
Local Machine OS macOS 10.14 (but shouldn’t be relevant in this case)
Remote Machine OS Debian 9
PHP Version 7.0.33

Description

Hello! I have a problem when I run the deployment process to production environment.

In the «deploy:release» it returns the failed command:

The ssh user has all the privileges (the user is not root), it is an ssh connection of my server for one project.

I think there is a problem for non-root users. If I run the same recipe with the root user, everything works correctly, but I need to run with the specific project user

The following command is executed successfully:

Should «deploy_path» be deleted?

Manually execute the two commands with the user not «root» from the folder where I connect and the deployer command does not work.

Steps to reproduce

Nothing, only run dep deploy pro

Content of deploy.php

Output log

The text was updated successfully, but these errors were encountered:

Источник

Windows Docker Error — standard_init_linux.go:211: exec user process caused «no such file or directory» #9

Comments

joaotnlima commented Jan 17, 2020

This happens in windows environments.

To advance the topic you should edit all .sh files in the repo and change the EOL from CRLF to LF. This fixes the issue.
Then another bug appeared btw:

PG:Bad connection.
Added db to windows hosts and added port 5432 to the docker-file in ports for db.

Works in Windows now 😉

The text was updated successfully, but these errors were encountered:

riggraz commented Jan 17, 2020

Hey joaotnlima, thanks for posting!

standard_init_linux.go:211 is a well known issue for Windows users.

you should edit all .sh files in the repo and change the EOL from CRLF to LF

Yes, EOL are a problem in Windows. I think you wanted to say to change them from LF to CRLF.

Added db to windows hosts and added port 5432 to the docker-file in ports for db

Could you elaborate more on this, please? For the windows hosts you mean the host file c:\windows\system32\drivers\etc\hosts ?

joaotnlima commented Jan 17, 2020 •

Yes, EOL are a problem in Windows. I think you wanted to say to change them from LF to CRLF.

I believe you need to change them to LF — at least i did that.

Could you elaborate more on this, please? For the windows hosts you mean the host file

Yes correct. I believe there is a better way, but i just wanted it working right away

riggraz commented Jan 17, 2020

I tried your solution but it doesn’t work on my machine. I’m on Windows 10 Home and I’m using Docker Toolbox (because Docker Desktop is not compatible with Windows 10 Home). What OS and Docker are you using?

I believe you need to change them to LF — at least i did that.

Can you please check whether all files are in LF or just the ones you manually changed?

joaotnlima commented Jan 17, 2020 •

All files (.sh) are LF including Dockerfile and docker-compose.yml.

I’m using windows 10 Pro Version 10.0.18362 Build 18362
Docker Desktop 2.1.0.5 (40693)


riggraz commented Jan 19, 2020

Thanks for the information. In these day I’ve been pretty busy, I’ll try it out in a few days.

riggraz commented Jan 25, 2020

Unfortunately I was not able to make it work on my machine.

If you want, you can open a pull request with the changes to make it work under Windows. Then we’ll ask for other windows users to test it and, when it works, merge it.

versedpro commented Jun 5, 2020 •

Could you elaborate more on this, please? For the windows hosts you mean the host file

Yes correct. I believe there is a better way, but i just wanted it working right away

Would you mind to explain more about hosts of windows?
I faced a problem creating db.

PhilippWuerfel commented Jun 10, 2020 •

you should edit all .sh files in the repo and change the EOL from CRLF to LF

Yes, EOL are a problem in Windows. I think you wanted to say to change them from LF to CRLF.

Had the same issue on Docker
I changed my shell script on Windows 10 from CRLF to LF and that worked for me!

vr6tdi commented Jul 9, 2020

you should edit all .sh files in the repo and change the EOL from CRLF to LF

Yes, EOL are a problem in Windows. I think you wanted to say to change them from LF to CRLF.

Had the same issue on Docker
I changed my shell script on Windows 10 from CRLF to LF and that worked for me!

Same here, CRLF to LF helped to fix

diegosurita commented Jul 11, 2020

you should edit all .sh files in the repo and change the EOL from CRLF to LF

Yes, EOL are a problem in Windows. I think you wanted to say to change them from LF to CRLF.

Had the same issue on Docker
I changed my shell script on Windows 10 from CRLF to LF and that worked for me!

Same here, thanks!

Kyle-Williamson-Dev commented Jul 18, 2020

This happens in windows environments.

To advance the topic you should edit all .sh files in the repo and change the EOL from CRLF to LF. This fixes the issue.
Then another bug appeared btw:

PG:Bad connection.
Added db to windows hosts and added port 5432 to the docker-file in ports for db.

Works in Windows now 😉

I would like to know how you did this. I’m very new and this is my first time building a docker app. No idea what files I need to change or how. You say edit all .sh files. I only have one, my entrypoint.sh that the Rails Docker-Compose quickstart guide shows how to build the Dockerfile and stuff. I’ve built my rails app image, which is my portfolio I’m going to build, and got the server to start and everything on my laptop. But when I come to my desktop to pull the image down and docker-compose up, I’m getting this error we’re talking about in this thread. So what part of the file am I changing? am I REPLACING .sh? or adding the LF after it?

matthias-ijewski commented Sep 24, 2020

You can use this code in your dockerfile to fix line breaks:

RUN sed -i -e ‘s/\r$//’ /entrypoint.sh

Replace /entrypoint.sh with the path to the file with the suspected wrong line breaks.

You can’t perform that action at this time.

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.

Источник

chroot: can’t execute ‘/bin/su’: No such file or directory #516

Comments

rickglyn commented May 25, 2016

Hi all Linux deploy fans,

I’ve had the app running fine with jessie and ssh on 5.1.1 but now updated to 6.0.1 on Note 4 SM-N910F. I’ve reinstalled LD, Busybox, rooted SU ok and selinux permissive but I’ve got this / these problems still. Just trying to get ssh working.

Would appreciate it if any of you guys could point to what’s going wrong.

[13:04:56] + container_configure dns mtab
[13:04:56] + [ 2 -eq 0 ]
[13:04:56] + container_mounted
[13:04:56] + is_mounted /data/data/ru.meefik.linuxdeploy/linux
[13:04:56] + local mount_point=/data/data/ru.meefik.linuxdeploy/linux
[13:04:56] + [ -n /data/data/ru.meefik.linuxdeploy/linux ]
[13:04:56] + grep -q /data/data/ru.meefik.linuxdeploy/linux /proc/mounts
[13:04:56] Configuring the container:
[13:04:56] dns . +
[13:04:56] + return 0
[13:04:56] + [ 0 -ne 0 ]
[13:04:56] + msg Configuring the container:
[13:04:56] + echo Configuring the container:
[13:04:56] + local item
[13:04:56] + configure_part dns
[13:04:56] + msg -n dns .
[13:04:56] + echo -n dns .
[13:04:56] + set -e
[13:04:56] + [ -z ]
[13:04:56] + getprop net.dns1
[13:04:56] + local dns1=208.67.222.222
[13:04:56] + getprop net.dns2
[13:04:56] + local dns2=208.67.220.220
[13:04:56] + local dns_list=208.67.222.222 208.67.220.220
[13:04:56] + [ -z 208.67.222.222 -a -z 208.67.220.220 ]
[13:04:56] + printf
[13:04:56] + local dns
[13:04:56] + echo nameserver 208.67.222.222
[13:04:56] + echo nameserver 208.67.220.220
[13:04:56] + exit 0
[13:04:56] + [ 0 -eq 0done
[13:04:56] mtab . ]
[13:04:56] + msg done
[13:04:56] + echo done
[13:04:56] + return 0
[13:04:56] + configure_part mtab
[13:04:56] + msg -n mtab .
[13:04:56] + echo -n mtab .
[13:04:56] + set -e
[13:04:56] + rm -f /data/data/ru.meefik.linuxdeploy/linux/etc/mtab
[13:04:56] + grep /data/data/ru.meefik.linuxdeploy/linux+ sed s|/data/data/ru.meefik.linuxdeploy/linux/*|/|g
[13:04:56] /proc/mounts
[13:04:56] + exit 0
[13:04:56] done
[13:04:56] Starting services:
[13:04:56] SSH [:22] . + [ 0 -eq 0 ]
[13:04:56] + msg done
[13:04:56] + echo done
[13:04:56] + return 0
[13:04:56] + return 0
[13:04:56] + msg Starting services:
[13:04:56] + echo Starting services:
[13:04:56] + local item
[13:04:56] + container_start ssh
[13:04:56] + [ 1 -eq 0 ]
[13:04:56] + msg -n SSH [:22] .
[13:04:56] + echo -n SSH [:22] .
[13:04:56] + ssh_started
[13:04:56] + local item pidfile pid
[13:04:56] + pidfile=/data/data/ru.meefik.linuxdeploy/linux/var/run/sshd.pid
[13:04:56] + [ -e /data/data/ru.meefik.linuxdeploy/linux/var/run/sshd.pid ]
[13:04:56] + [ -n -a -e /proc/ ]
[13:04:56] + pidfile=/data/data/ru.meefik.linuxdeploy/linux/run/sshd.pid
[13:04:56] + [ -e /data/data/ru.meefik.linuxdeploy/linux/run/sshd.pid ]
[13:04:56] + [ -n -a -e /proc/ ]
[13:04:56] + return 1
[13:04:56] + [ -e /data/data/ru.meefik.linuxdeploy/linux/var/run -a ! -e /data/data/ru.meefik.linuxdeploy/linux/var/run/sshd ]
[13:04:56] + [ -e /data/data/ru.meefik.linuxdeploy/linux/run -a ! -e /data/data/ru.meefik.linuxdeploy/linux/run/sshd ]
[13:04:56] + grep key
[13:04:56] + ls /data/data/ru.meefik.linuxdeploy/linux/etc/ssh/
[13:04:56] ls: /data/data/ru.meefik.linuxdeploy/linux/etc/ssh/: No such file or directory
[13:04:56] + [ -z ]
[13:04:56] + chroot_exec -u root ssh-keygen -A
[13:04:56] + unset TMP TEMP TMPDIR LD_PRELOAD LD_DEBUG
[13:04:56] + [ -u = -u ]
[13:04:56] + local username=root
[13:04:56] + shift 2
[13:04:56] + [ 1 -gt 0 ]
[13:04:56] + chroot /data/data/ru.meefik.linuxdeploy/linux /bin/su — root -c ssh-keygen -A
[13:04:56] chroot: can’t execute ‘/bin/su’: No such file or directory
[13:04:56] + local sshd= which sshd
[13:04:56] + chroot_exec -u root which sshd -p 22
[13:04:56] + unset TMP TEMP TMPDIR LD_PRELOAD LD_DEBUG
[13:04:56] + [ -u = -u ]
[13:04:56] + local username=root
[13:04:56] + shift 2
[13:04:56] + [ 1 -gt 0 ]
[13:04:56] + chroot /data/data/ru.meefik.linuxdeploy/linux /bin/su — root -c which sshd -p 22
[13:04:56] fail
[13:04:56] chroot: can’t execute ‘/bin/su’: No such file or directory
[13:04:56] + [ 127 -eq 0 ]
[13:04:56] + msg fail
[13:04:56] + echo fail
[13:04:56] + return 0
[13:04:56] + [ 0 -eq 0 ]
[13:04:56] + [ -z ssh ]
[13:04:56] + return 0
[13:04:56] + printf $’

The text was updated successfully, but these errors were encountered:

Источник

Читайте также:  Chromium linux install debian
Оцените статью