Post

error

error

[toc]


troubleshoot

Error

1
2
3
4
5
6
7
8
9
├─Netowork unreachable : `ping` it
 ├─ping "Netowork unreachable" : check `ip route`
 ├─ping "Netowork unreachable" : `arp -a`
├─No route to host :
 ├─check service/Port `ss -lnt4`
 ├─wireshark
  ├─Destination unreachable (Host administratively prohibited): firewall configuration issue `firewall-cmd --list-all`

layer 1: eth-tool layer 2: arp layer 3: ip (addr/route), route, ping layer 4: netstat, ss

tools: Wireshark,

$PATH

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
echo $PATH
/opt/local/bin:
/opt/local/sbin:
/usr/local/sbin:
/Library/Java/JavaVirtualMachines/jdk-9.0.1.jdk/Contents/Home/bin:

/usr/local/bin:
/usr/bin:
/bin:
/usr/sbin:
/sbin:
/usr/local/share/dotnet:
/opt/X11/bin:
~/.dotnet/tools:
/Library/Apple/usr/bin:
/Library/Frameworks/Mono.framework/Versions/Current/Commands:
/Applications/Wireshark.app/Contents/MacOS:
/Applications/Xamarin Workbooks.app/Contents/SharedSupport/path-bin:
.:
/usr/local/mysql/bin

/opt/local/bin/ncursesw6-config /opt/local/bin/ncurses6-config

The ‘pip==19.0.2’ distribution was not found and is required by the application

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 583, in _build_master
    ws.require(__requires__)
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 900, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 791, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.VersionConflict: (pip 19.0.3 (/usr/local/lib/python3.7/site-packages), Requirement.parse('pip==19.0.2'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/opt/python/libexec/bin/pip", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3191, in <module>
    @_call_aside
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3175, in _call_aside
    f(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3204, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 585, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 598, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 786, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'pip==19.0.2' distribution was not found and is required by the application

solution:

1
2
brew reinstall python
pip install pip --upgrade

homebrew

1
2
3
Warning: Unbrewed header files were found in /usr/local/include.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

solution

1
2
3
4
copy the list of file into headers.txt

cat header.txt | sudo xargs rm


Error: Specified qdisc not found.

Solution

Execute the following command to load sch_netem module. The cause of the error is sch_netem kernel module not loaded in your system which required to set up traffic control.

$ sudo modprobe sch_netem

If the command failed with the below message, you need to install additional kernel module.

$ sudo dnf install -y kernel-modules-extra

Load sch_netem module after the package installation.

$ sudo modprobe sch_netem

.

This post is licensed under CC BY 4.0 by the author.

Comments powered by Disqus.