WebarchivCZ / Seeder

Seeder - Czech webarchive curating tool and public site
MIT License
15 stars 2 forks source link

deployment #234

Closed Visgean closed 8 years ago

Visgean commented 8 years ago

Ahoj potreboval bych vyresit par veci s vasim deploymentem

westfood commented 8 years ago

A.) Visgean:Visgean B.) Máš nějaký návod? Bude to spíš koncem příštího týdne. C.) Produkci definuji v ansible, z Dockeru pojede jen v nouzi. JJ, stejně z toho serveru chci hodit WA-KAT z 80 portu, tak nginx bude fajn. D.) Souhlasím ale opět budu si to muset nastudovat takže příští spíš přespříští týden.

westfood commented 8 years ago

war.webarchiv.cz

Visgean commented 8 years ago

A) Ten login nefunguje... B) https://docs.getsentry.com/on-premise/server/installation/ C) OK D) OK

westfood commented 8 years ago

A.) Zkus - mělo by to už fachat.

Visgean commented 8 years ago

OK dik

westfood commented 8 years ago

zdar, mám trabl s kterým si nedokážu poradit, vynechal jsem pro zjednodušení supervisor, házelo mi to stejnou chybu.. vím že to není issue, ale jestli netušíš..

nejsem schopen rozchodit emperor-tyrant, furt mi hází: : [emperor-tyrant] invalid permissions for vassal uwsgi_seeder.ini

Za boha nemůžu přijít co dělám špatně.. zkoušel jsem jet uwsgi.ini i se zakomentovaným uid/gid/cap - pod rootem, ale končí to stejnou chybo.

[vagrant@curator02 ~]$ cat /etc/uwsgi.ini
[uwsgi]
uid = uwsgi
gid = uwsgi
pidfile = /run/uwsgi/uwsgi.pid
emperor = /etc/uwsgi.d
stats = /run/uwsgi/stats.sock
emperor-tyrant = true
cap = setgid,setuid

[vagrant@curator02 ~]$ cat /etc/uwsgi.d/uwsgi_seeder.ini
[uwsgi]
uid = uwsgi
gid = uwsgi
virtualenv = /opt/virtualenv/seeder
pythonpath = /opt/Seeder
plugins = python
master = 1
pidfile = /opt/Seeder/seeder.pid
touch-reload = /opt/Seeder/reload.touch
socket = /opt/Seeder/seeder.sock
chmod-socket = 777
cheaper-algo = spare
cheaper = 2
cheaper-initial = 2
cheaper-step = 1
processes = 6
vacuum = 1
harakiri = 60
wsgi-file = /opt/Seeder/Seeder/wsgi.py

[vagrant@curator02 ~]$ cat /usr/lib/systemd/system/uwsgi.service
[Unit]
Description=uWSGI Emperor Service
After=syslog.target
[Service]
EnvironmentFile=-/etc/sysconfig/uwsgi
ExecStartPre=/bin/mkdir -p /run/uwsgi
ExecStartPre=/bin/chown uwsgi:uwsgi /run/uwsgi
ExecStart=/usr/sbin/uwsgi --ini /etc/uwsgi.ini
ExecReload=/bin/kill -HUP $MAINPID
KillSignal=SIGINT
Restart=always
Type=notify
StandardError=syslog
NotifyAccess=all
[Install]
WantedBy=multi-user.target```
Visgean commented 8 years ago

http://stackoverflow.com/questions/29289288/cant-get-permissions-right-to-run-uwsgi-emperor tohle si zkousel? Popravde s tim emperorem nemam vubec zkusenosti

westfood commented 8 years ago

stack overflow jsem projel, tenhle má v nepořádku permissions.. zkusím to ještě bez toho tyrant režimu.. v nejhorším spawnu jen tu aplikaci, ale ten emperor-tyrant je defaultní a zamlouval se mi..

Visgean commented 8 years ago

ja jsem to prave vzdycky jel samostatne

westfood commented 8 years ago

Zatím je tam neautoritativní certifkát, to poladím až bude víc času..

https://sentry.webarchiv.cz/

westfood commented 8 years ago

deploy na produkci je jeden příkaz, zatím ode mně.. zavírám