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

Disable logrotate when logging into UDP socket #1855

Merged
merged 1 commit into from
Jun 22, 2019

Conversation

JacksonHill
Copy link
Contributor

If host:port is specified in logto parameter instead of a file, the destination log receiver(fluentd -> elasticsearch in my case) is flooded with messages:
uwsgi_check_logrotate()/lseek(): Illegal seek [core/logging.c line 494]

This commit disables log file related checks if log file descriptor is a socket.

If host:port is specified in logto parameter instead of a file, the destination log receiver(fluentd -> elasticsearch in my case) is flooded with messages:
uwsgi_check_logrotate()/lseek(): Illegal seek [core/logging.c line 494] 

This commit disables log file related checks if log file descriptor is a socket.
@yano3nora
Copy link

solved this?

@JacksonHill
Copy link
Contributor Author

Yup. 10 months on production up to now.

@rdeioris rdeioris merged commit 3618f7e into unbit:master Jun 22, 2019
@rdeioris
Copy link
Collaborator

merged. sorry for the huge late

@yano3nora
Copy link

Testing below, then it was works for me.
Thanks gods!

# requirements.txt

git+https://github.com/unbit/uwsgi.git@master#egg=uwsgi
# Dockerfile

CMD uwsgi --ini /app/django.ini --master -d /dev/stdout

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.

4 participants