S
S
shudry_toster2017-09-24 16:31:46
Django
shudry_toster, 2017-09-24 16:31:46

Problems with /run/user/ on ubuntu server?

I am developing a website on Ubuntu 14.04 server (django+uwsgi+nginx).
Run uwsgi with systemd, here is my-uwsgi.ini :

[uwsgi]
chdir = /home/my-user/project/example_project
module = example_project.wsgi
home = /home/my-user/project/virtual
master = true
processes = 10
socket = /home/my-user/project/example_project/example.sock
chown-socket = my-user:www-data
chmod-socket = 664
vacuum = true
uid = www-data
gid = www-data
daemonize = /home/my-user/project/logs/example_uwsgi.log

and uwsgi.service :
Unit]
Description=uWSGI Emperor service

[Service]
ExecStartPre=/bin/bash -c 'chown my-user:www-data /home/my-user/project/conf/my_uwsgi.ini'
ExecStart=/usr/local/bin/uwsgi --emperor /home/my-user/project/conf/
Restart=always
KillSignal=SIGQUIT
Type=notify
NotifyAccess=all

[Install]
WantedBy=multi-user.target

Everything worked fine, but the next day everything crashed and in the browser Internal Server Error
The following is in the logs journalctl -e:
Failed to create cgroup name=systemd:/user/1000.user: No such file or directory

as well as:
uWSGI running as root, you can use --uid/--gid/--chroot options
S*** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***

Okay, not critical, then I would figure it out. Launched ./manage.py runserver 0.0.0.0:8000everything.
But when I decided to save the file in Sublime, an error popped up again, but already:
Unable to save /run/user/1000/gvfs/sftp:host=MY_HOST,user=my-user/FILE_URL
Error: Отказано в доступе

The folder is /run/user/empty.
What do you suggest to do?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
shudry_toster, 2017-09-27
@shudry_toster

planc ,
User=www-data
Group=www-data

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question