Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Windows][Linux Subsystem for Windows] Error stopping PKC #110

Open
BennSim opened this issue Jan 8, 2022 · 0 comments
Open

[Windows][Linux Subsystem for Windows] Error stopping PKC #110

BennSim opened this issue Jan 8, 2022 · 0 comments

Comments

@BennSim
Copy link
Contributor

BennSim commented Jan 8, 2022

Can't stop PKC in windows->linux. See below.

default_user@DESKTOP-DE03UUA:/mnt/c/Users/benn_/micro-PKC$ ./pkc stop
Traceback (most recent call last):
File "/usr/bin/docker-compose", line 11, in
load_entry_point('docker-compose==1.25.0', 'console_scripts', 'docker-compose')()
File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 72, in main
command()
File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 125, in perform_command
project = project_from_options('.', options)
File "/usr/lib/python3/dist-packages/compose/cli/command.py", line 53, in project_from_options
return get_project(
File "/usr/lib/python3/dist-packages/compose/cli/command.py", line 136, in get_project
project_name = get_project_name(
File "/usr/lib/python3/dist-packages/compose/cli/command.py", line 186, in get_project_name
project = os.path.basename(os.path.abspath(working_dir))
File "/usr/lib/python3.8/posixpath.py", line 379, in abspath
cwd = os.getcwd()
FileNotFoundError: [Errno 2] No such file or directory
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 67, in apport_excepthook
binary = os.path.realpath(os.path.join(os.getcwd(), sys.argv[0]))
FileNotFoundError: [Errno 2] No such file or directory

Original exception was:
Traceback (most recent call last):
File "/usr/bin/docker-compose", line 11, in
load_entry_point('docker-compose==1.25.0', 'console_scripts', 'docker-compose')()
File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 72, in main
default_user@DESKTOP-DE03UUA:/mnt/c/Users/benn_/micro-PKC$
File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 125, in perform_command
project = project_from_options('.', options)
File "/usr/lib/python3/dist-packages/compose/cli/command.py", line 53, in project_from_options
return get_project(
File "/usr/lib/python3/dist-packages/compose/cli/command.py", line 136, in get_project
project_name = get_project_name(
File "/usr/lib/python3/dist-packages/compose/cli/command.py", line 186, in get_project_name
project = os.path.basename(os.path.abspath(working_dir))
File "/usr/lib/python3.8/posixpath.py", line 379, in abspath
cwd = os.getcwd()
FileNotFoundError: [Errno 2] No such file or directory
default_user@DESKTOP-DE03UUA:/mnt/c/Users/benn_/micro-PKC$ sudo ./pkc stop
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Please don't run as root.

@FantasticoFox FantasticoFox changed the title Error stopping PKC in windows [Windows][Linux Subsystem for Windows] Error stopping PKC Jan 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant