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

cat: can't open '/proc/net/tcp6': No such file or directory #13749

Closed
monaka opened this issue Jun 16, 2019 · 2 comments
Closed

cat: can't open '/proc/net/tcp6': No such file or directory #13749

monaka opened this issue Jun 16, 2019 · 2 comments
Labels
area/editor/theia Issues related to the che-theia IDE of Che kind/bug Outline of a bug - must adhere to the bug report template.

Comments

@monaka
Copy link
Member

monaka commented Jun 16, 2019

Description

It looks the-theia can't access /proc/net/tcp6 in the instance running as non-root.

Reproduction Steps

  1. Run as the non-root instance
  2. Start workspace
  3. Check logs from che-theia container.

OS and version:

7.0.0-RC-2.0-SNAPSHOT

Diagnostics:

root ERROR [hosted-plugin: 54] (node:54) UnhandledPromiseRejectionWarning: Error: Unable to execut
e the command cat /proc/net/tcp6: Error: Command failed: cat /proc/net/tcp6
cat: can't open '/proc/net/tcp6': No such file or directory

    at new CliError (/tmp/theia-unpacked/eclipse_che_ports_plugin.theia/lib/cli-error.js:32:28)
    at /tmp/theia-unpacked/eclipse_che_ports_plugin.theia/lib/command.js:69:40
    at ChildProcess.exithandler (child_process.js:301:5)
    at ChildProcess.emit (events.js:189:13)
    at maybeClose (internal/child_process.js:970:16)
    at Socket.stream.socket.on (internal/child_process.js:389:11)
    at Socket.emit (events.js:189:13)
    at Pipe._handle.close (net.js:597:12)
@monaka
Copy link
Member Author

monaka commented Jul 1, 2019

I misunderstood about this issue. Indeed there have some issues related on root/non-root environment.
But this /proc/net/tcp6 issue is an individual.

In some environments (at least Azure AKS), IPv6 is disable and /proc/net/tcp6 isn't created.

$ kubectl exec -it --namespace=banco workspacewvws39a5loq3c0oa.shell-5556494f8c-tkkdg ls /proc/net
Defaulting container name to shell.
Use 'kubectl describe pod/workspacewvws39a5loq3c0oa.shell-5556494f8c-tkkdg -n banco' to see all of the containers in this pod.
arp                 ip6_tables_names    netfilter  route         tcp
dev                 ip6_tables_targets  netlink    rpc           udp
dev_mcast           ip_mr_cache         netstat    rt_acct       udplite
fib_trie            ip_mr_vif           packet     rt_cache      unix
fib_triestat        ip_tables_matches   protocols  snmp          wireless
icmp                ip_tables_names     psched     sockstat      xfrm_stat
igmp                ip_tables_targets   ptype      softnet_stat
ip6_tables_matches  mcfilter            raw        stat

@monaka monaka changed the title Exception on the non-root environment. cat: can't open '/proc/net/tcp6': No such file or directory Jul 1, 2019
monaka referenced this issue in PizzaFactory/che-theia Jul 1, 2019
In case IPv6 was disabled, `/proc/net/tcp6` will not exist.
(Probably IPv4 will be similar.)

Signed-off-by: Masaki Muranaka <monaka@monami-ya.com>
monaka referenced this issue in PizzaFactory/che-theia Jul 1, 2019
In case IPv6 was disabled, `/proc/net/tcp6` will not exist.
(Probably IPv4 will be similar.)

Signed-off-by: Masaki Muranaka <monaka@monami-ya.com>
monaka referenced this issue in PizzaFactory/che-theia Jul 1, 2019
In case IPv6 was disabled, `/proc/net/tcp6` will not exist.
(Probably IPv4 will be similar.)

Signed-off-by: Masaki Muranaka <monaka@monami-ya.com>
monaka referenced this issue in PizzaFactory/che-theia Jul 1, 2019
In case IPv6 was disabled, `/proc/net/tcp6` will not exist.
(Probably IPv4 will be similar.)

Signed-off-by: Masaki Muranaka <monaka@monami-ya.com>
monaka referenced this issue in PizzaFactory/che-theia Jul 1, 2019
In case IPv6 was disabled, `/proc/net/tcp6` will not exist.
(Probably IPv4 will be similar.)

Signed-off-by: Masaki Muranaka <monaka@monami-ya.com>
monaka referenced this issue in PizzaFactory/che-theia Jul 1, 2019
In case IPv6 was disabled, `/proc/net/tcp6` will not exist.
(Probably IPv4 will be similar.)

Signed-off-by: Masaki Muranaka <monaka@monami-ya.com>
monaka referenced this issue in PizzaFactory/che-theia Jul 1, 2019
In case IPv6 was disabled, `/proc/net/tcp6` will not exist.
(Probably IPv4 will be similar.)

Signed-off-by: Masaki Muranaka <monaka@monami-ya.com>
monaka referenced this issue in eclipse-che/che-theia Jul 1, 2019
In case IPv6 was disabled, `/proc/net/tcp6` will not exist.
(Probably IPv4 will be similar.)

Signed-off-by: Masaki Muranaka <monaka@monami-ya.com>
monaka referenced this issue in PizzaFactory/che-theia Jul 1, 2019
In case IPv6 was disabled, `/proc/net/tcp6` will not exist.
(Probably IPv4 will be similar.)

Signed-off-by: Masaki Muranaka <monaka@monami-ya.com>
monaka referenced this issue in PizzaFactory/che-theia Jul 1, 2019
…in-port-scanner

Fix unhandled exceptions in port-scanner. (eclipse#281)
monaka referenced this issue in PizzaFactory/che-theia Jul 1, 2019
…in-port-scanner

Fix unhandled exceptions in port-scanner. (eclipse#281)
monaka referenced this issue in eclipse-che/che-theia Jul 4, 2019
In case IPv6 was disabled, `/proc/net/tcp6` will not exist.
(Probably IPv4 will be similar.)

Signed-off-by: Masaki Muranaka <monaka@monami-ya.com>
@benoitf benoitf transferred this issue from eclipse-che/che-theia Jul 5, 2019
@benoitf benoitf added area/editor/theia Issues related to the che-theia IDE of Che kind/bug Outline of a bug - must adhere to the bug report template. labels Jul 5, 2019
@monaka
Copy link
Member Author

monaka commented Jul 12, 2019

I close this as eclipse-che/che-theia#315 was merged.

@monaka monaka closed this as completed Jul 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/editor/theia Issues related to the che-theia IDE of Che kind/bug Outline of a bug - must adhere to the bug report template.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants