Comments (5)
Conforme seria relativamente esperado, ele tenta dar bind na :80 (que é usada pelo Tsuru) e da erro. Colocando aqui porque se for usar mesmo já fica referencia para depois.
root@aguia-pescadora-1:~# sudo apt-get install openresty
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libgdbm-compat4 libperl5.26 openresty-openssl openresty-opm openresty-pcre openresty-resty openresty-zlib perl perl-modules-5.26
Suggested packages:
openresty-restydoc perl-doc libterm-readline-gnu-perl | libterm-readline-perl-perl make
The following NEW packages will be installed:
libgdbm-compat4 libperl5.26 openresty openresty-openssl openresty-opm openresty-pcre openresty-resty openresty-zlib perl perl-modules-5.26
0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
Need to get 9,145 kB of archives.
After this operation, 50.0 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1
(...)
Created symlink /etc/systemd/system/multi-user.target.wants/openresty.service → /lib/systemd/system/openresty.service.
Job for openresty.service failed because the control process exited with error code.
See "systemctl status openresty.service" and "journalctl -xe" for details.
invoke-rc.d: initscript openresty, action "start" failed.
● openresty.service - full-fledged web platform
Loaded: loaded (/lib/systemd/system/openresty.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2019-06-22 21:28:37 UTC; 11ms ago
Process: 4120 ExecStart=/usr/local/openresty/nginx/sbin/nginx -g daemon on; master_process on; (code=exited, status=1/FAILURE)
Process: 4115 ExecStartPre=/usr/local/openresty/nginx/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
Jun 22 21:28:34 aguia-pescadora-1 systemd[1]: Starting full-fledged web platform...
Jun 22 21:28:34 aguia-pescadora-1 nginx[4120]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Jun 22 21:28:35 aguia-pescadora-1 nginx[4120]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Jun 22 21:28:35 aguia-pescadora-1 nginx[4120]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Jun 22 21:28:36 aguia-pescadora-1 nginx[4120]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Jun 22 21:28:36 aguia-pescadora-1 nginx[4120]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Jun 22 21:28:37 aguia-pescadora-1 nginx[4120]: nginx: [emerg] still could not bind()
Jun 22 21:28:37 aguia-pescadora-1 systemd[1]: openresty.service: Control process exited, code=exited status=1
Jun 22 21:28:37 aguia-pescadora-1 systemd[1]: openresty.service: Failed with result 'exit-code'.
Jun 22 21:28:37 aguia-pescadora-1 systemd[1]: Failed to start full-fledged web platform.
dpkg: error processing package openresty (--configure):
installed openresty package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of openresty-resty:
openresty-resty depends on openresty (>= 1.15.8.1); however:
Package openresty is not configured yet.
dpkg: error processing package openresty-resty (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of openresty-opm:
openresty-opm depends on openresty (>= 1.15.8.1); however:
Package openresty is not configured yet.
openresty-opm depends on openresty-resty (>= 1.15.8.1); however:
Package openresty-resty is not configured yet.
dpkg: error processing package openresty-opm (--configure):
dependency problems - leaving unconfigured
Setting up libperl5.26:amd64 (5.26.1-6ubuntu0.3) ...
Setting up perl (5.26.1-6ubuntu0.3) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for ureadahead (0.100.0-21) ...
Processing triggers for systemd (237-3ubuntu10.23) ...
Errors were encountered while processing:
openresty
openresty-resty
openresty-opm
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@aguia-pescadora-1:~#
from aguia-pescadora.
Pronto. O cluster inteiro foi recriado do zero. Movi o PlanB (o roteador super integrado ao Tsuru) para porta :82.
Deixando a :80 pro OpenResty (NGinx) e em breve também a :443.
Eu pulei a :81 porque se for necessario mais na frente um Varnish pra proteger demandas altas (ou aguentar um downtime mais severo sem deixar usuários verem que backend inteiro cair) seria nessa porta ali que eu poderia colocar.
from aguia-pescadora.
Hummm... o OpenResty não reusa o caminho padrão do NGInx em /etc/nginx. E /etc/openresty/
é um link simbolico para /usr/local/openresty/nginx/conf
.
Ok. Até que faz algum sentido, talvez façam isso para evitar conflitos. Vou ver se catalogo os arquivos antes de editar eles
Editado: aqui o que tem no diretório
root@aguia-pescadora-1:~# ls -lha /usr/local/openresty/nginx/conf
total 76K
drwxr-xr-x 2 root root 4.0K Jun 23 00:10 .
drwxr-xr-x 12 root root 4.0K Jun 23 00:10 ..
-rw-r--r-- 1 root root 1.1K May 16 23:33 fastcgi.conf
-rw-r--r-- 1 root root 1.1K May 16 23:33 fastcgi.conf.default
-rw-r--r-- 1 root root 1007 May 16 23:33 fastcgi_params
-rw-r--r-- 1 root root 1007 May 16 23:33 fastcgi_params.default
-rw-r--r-- 1 root root 2.8K May 16 23:33 koi-utf
-rw-r--r-- 1 root root 2.2K May 16 23:33 koi-win
-rw-r--r-- 1 root root 5.2K May 16 23:33 mime.types
-rw-r--r-- 1 root root 5.2K May 16 23:33 mime.types.default
-rw-r--r-- 1 root root 2.6K May 16 23:33 nginx.conf
-rw-r--r-- 1 root root 2.6K May 16 23:33 nginx.conf.default
-rw-r--r-- 1 root root 636 May 16 23:33 scgi_params
-rw-r--r-- 1 root root 636 May 16 23:33 scgi_params.default
-rw-r--r-- 1 root root 664 May 16 23:33 uwsgi_params
-rw-r--r-- 1 root root 664 May 16 23:33 uwsgi_params.default
-rw-r--r-- 1 root root 3.6K May 16 23:33 win-utf
Edição 2:
root@aguia-pescadora-1:~# ls -lha /usr/local/openresty/nginx/
total 48K
drwxr-xr-x 12 root root 4.0K Jun 23 00:10 .
drwxr-xr-x 10 root root 4.0K Jun 23 00:10 ..
drwx------ 2 nobody root 4.0K Jun 23 00:10 client_body_temp
drwxr-xr-x 2 root root 4.0K Jun 23 00:10 conf
drwx------ 2 nobody root 4.0K Jun 23 00:10 fastcgi_temp
drwxr-xr-x 2 root root 4.0K Jun 23 00:10 html
drwxr-xr-x 2 root root 4.0K Jun 23 00:10 logs
drwx------ 2 nobody root 4.0K Jun 23 00:10 proxy_temp
drwxr-xr-x 2 root root 4.0K Jun 23 00:10 sbin
drwx------ 2 nobody root 4.0K Jun 23 00:10 scgi_temp
drwxr-xr-x 2 root root 4.0K Jun 23 00:10 tapset
drwx------ 2 nobody root 4.0K Jun 23 00:10 uwsgi_temp
from aguia-pescadora.
É. Funciona. Considerando que estou vendo várias coisas ao mesmo tempo, até que foi rápido.
Eu ainda não sei se recomendaria esse nível de automação (obter HTTPS sem nem mesmo requisitar) para quem não precisa hospedar muitos domínios e deixar que os usuários mesmos sejam meio independentes.
Porem dessa forma aqui, de certa forma o OpenResty fica próximo do que seria o uso do Caddy.
from aguia-pescadora.
A versão do 2.0-alpha do águia pescadora em https://github.com/EticaAI/aguia-pescadora-ansible-playbooks já deve conter esta funcionalidade.
from aguia-pescadora.
Related Issues (20)
- Estratégia no Águia Pescadora para servir HTTPS HOT 2
- NGinx para servir porta 443 HTTPS na primeira versão em produção HOT 2
- Estratégias para sincronizar arquivos especiais nas VPS que hospedam os nós do cluster (e.g. NAS) via software HOT 1
- Implementação de serviço de arquivos de disco no Tsuru sem uso de Kubernetes HOT 4
- MVP de Tsuru MySQL service (simples, sem HA)
- MVP de Tsuru no provisionador Kubernetes k8s HOT 4
- Teste com Kubernetes, 1 nó
- Teste com k3s (um "Kubernetes Leve" que roda em 512MB de RAM) HOT 2
- Considerar versão de Águia Pescadora usando Ansible/Chef/Saltstack/Puppet/Terraform HOT 4
- MVP de Ansible Playbook de nó tudo-em-um do Tsuru PaaS HOT 4
- Um Ansible Playbook "TL;DR" de um nó tudo-em-um do Tsuru PaaS HOT 7
- Instalação básica de Minio em clusters pequenos (inclusive os de um nó tudo-em-um) HOT 4
- Documentar versões do Águia Pescadora até 2019-07-11 e sinalizar o que foi feito com issues antigos que não serão terminados HOT 1
- Playbook TL;DR v2.0.4-alpha não cria automaticamente url do tsuru-dashboard baseada no parâmetro paas_host
- MVP de tsuru com swarm
- Testes com implementação de versão de Águia Pescadora com host que tenha apenas docker HOT 3
- Deixar mais claro referência sobre o repositóro EticaAI/aguia-pescadora-ansible-playbooks
- MVP de tarefa de configuração simples de firewall (1 nó por vez) HOT 1
- aguia-pescadora-ansible-playbooks/tarefa/firewal falha no primeiro teste ("Ubuntu? Debian?") em função de `gather_facts: no`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aguia-pescadora.