Skip to content

Conversation

@francoisfreitag
Copy link

The uwsgi_emperor_spawn_vassal() function is responsible for starting
new vassals. It constructs arguments for the vassal in the
vassal_new_argv() function, based on the configuration file extension
[1].

For example, if the uWSGI configuration file is named django-001.ini,
it passes --ini django-001.ini to the new vassal. The Zergs thus
expect to find their config in the emperor filesystem directory. Since
the INI file does not exist, Zergs are prevented from spawning and
complain with:

realpath() of django-001.ini failed: No such file or directory [core/utils.c line 3651]

More details are available in
unbit/uwsgi#2166.

[1] https://github.com/unbit/uwsgi/blob/d22a189c4dce0c1f90c31b9687902572d9d0b438/core/emperor.c#L115-L134

The `uwsgi_emperor_spawn_vassal()` function is responsible for starting
new vassals. It constructs arguments for the vassal in the
`vassal_new_argv()` function, based on the configuration file extension
[1].

For example, if the uWSGI configuration file is named `django-001.ini`,
it passes `--ini django-001.ini` to the new vassal. The Zergs thus
expect to find their config in the emperor filesystem directory. Since
the INI file does not exist, Zergs are prevented from spawning and
complain with:

```
realpath() of django-001.ini failed: No such file or directory [core/utils.c line 3651]
```

More details are available in
unbit/uwsgi#2166.

[1] https://github.com/unbit/uwsgi/blob/d22a189c4dce0c1f90c31b9687902572d9d0b438/core/emperor.c#L115-L134
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

Successfully merging this pull request may close these issues.

1 participant