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.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### `gethostbyname` failure in `internal_Init_thread`
69
+
70
+
When your internal network stack/route is not correctly configured for the local loopback device, MPICH may fail to initialize with an error message which looks like the following:
71
+
72
+
```
73
+
Fatal error in internal_Init_thread: Other MPI error, error stack:
A workaround is provided in the [documentation of the MOOSE framework](https://mooseframework.inl.gov/help/troubleshooting.html) and we report it here for reference:
86
+
87
+
* obtain your hostname
88
+
```console
89
+
$ hostname
90
+
mycoolname
91
+
```
92
+
* for both Linux and macOS systems, in your `/etc/hosts` file map the hostname you obtained at the previous step to the [localhost address `127.0.0.1`](https://en.wikipedia.org/wiki/Localhost), if not already present.
93
+
_**Note**_: this step requires root access, to modify the system configuration file `/etc/hosts`, if you don't have it talk to your system administrator.
94
+
For example, open the file `/etc/hosts` with `sudo` access with your favorite text editor (e.g. `sudo vi /etc/hosts`, or `sudo emacs /etc/hosts`) and add the line
95
+
```
96
+
127.0.0.1 mycoolname
97
+
```
98
+
to the end of the file
99
+
* as an alternative to the previous step, only for macOS systems, run the command
100
+
```
101
+
sudo scutil --set HostName mycoolname
102
+
```
103
+
However it has been reported that this method may not always be effective.
0 commit comments