KejawenLab / SemartHris

SemartHris adalah Enterprise Grade HRIS yang khusus diperuntukan bagi Perusahaan di Willayah Hukum Indonesia
MIT License
218 stars 121 forks source link

503 Service Unavailable No server is available to handle this request. #46

Open Wanderfo opened 4 years ago

Wanderfo commented 4 years ago

I have installed it successfully according to the docker installation method, 8080 can be opened, but 8000 port get 503 error

Wanderfo commented 4 years ago
Attaching to semarthris_db_1, semarthris_adminer_1, semarthris_session_1, semarthris_app_1, semarthris_balancer_1
db_1        | 
db_1        | PostgreSQL Database directory appears to contain a database; Skipping initialization
db_1        | 
app_1       | Reading ./composer.json
adminer_1   | [Tue Mar  3 08:21:03 2020] PHP 7.4.3 Development Server (http://[::]:8080) started
app_1       | Loading config file /root/.composer/config.json
db_1        | 2020-03-03 08:21:03.943 UTC [1] LOG:  starting PostgreSQL 12.2 on x86_64-pc-linux-musl, compiled by gcc (Alpine 9.2.0) 9.2.0, 64-bit
session_1   | 1:C 03 Mar 2020 08:21:04.996 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
db_1        | 2020-03-03 08:21:03.943 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
db_1        | 2020-03-03 08:21:03.943 UTC [1] LOG:  listening on IPv6 address "::", port 5432
app_1       | Loading config file /root/.composer/auth.json
session_1   | 1:C 03 Mar 2020 08:21:04.996 # Redis version=5.0.7, bits=64, commit=00000000, modified=0, pid=1, just started
session_1   | 1:C 03 Mar 2020 08:21:04.996 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
db_1        | 2020-03-03 08:21:03.945 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
session_1   | 1:M 03 Mar 2020 08:21:04.997 * Running mode=standalone, port=6379.
session_1   | 1:M 03 Mar 2020 08:21:04.997 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
session_1   | 1:M 03 Mar 2020 08:21:04.997 # Server initialized
session_1   | 1:M 03 Mar 2020 08:21:04.997 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
session_1   | 1:M 03 Mar 2020 08:21:04.997 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
session_1   | 1:M 03 Mar 2020 08:21:04.997 * DB loaded from disk: 0.000 seconds
session_1   | 1:M 03 Mar 2020 08:21:04.997 * Ready to accept connections
app_1       | Loading config file ./composer.json
db_1        | 2020-03-03 08:21:03.956 UTC [20] LOG:  database system was interrupted; last known up at 2020-03-03 08:07:13 UTC
app_1       | Checked CA file /etc/ssl/certs/ca-certificates.crt: valid
app_1       | Executing command (/semarthris): git branch --no-color --no-abbrev -v
db_1        | 2020-03-03 08:21:03.975 UTC [20] LOG:  database system was not properly shut down; automatic recovery in progress
app_1       | Executing command (/semarthris): git describe --exact-match --tags
db_1        | 2020-03-03 08:21:03.976 UTC [20] LOG:  redo starts at 0/184AA20
db_1        | 2020-03-03 08:21:03.976 UTC [20] LOG:  invalid record length at 0/184AA58: wanted 24, got 0
db_1        | 2020-03-03 08:21:03.976 UTC [20] LOG:  redo done at 0/184AA20
app_1       | Executing command (/semarthris): git log --pretty="%H" -n1 HEAD
db_1        | 2020-03-03 08:21:03.980 UTC [1] LOG:  database system is ready to accept connections
app_1       | Executing command (/semarthris): hg branch
app_1       | Executing command (/semarthris): fossil branch list
app_1       | Executing command (/semarthris): fossil tag list
app_1       | Executing command (/semarthris): svn info --xml
app_1       | Reading /root/.composer/composer.json
app_1       | Loading config file /root/.composer/config.json
app_1       | Loading config file /root/.composer/auth.json
app_1       | Loading config file /root/.composer/composer.json
app_1       | Loading config file /root/.composer/auth.json
app_1       | Reading /root/.composer/auth.json
app_1       | Reading /semarthris/vendor/composer/installed.json
app_1       | Reading /root/.composer/vendor/composer/installed.json
app_1       | Loading plugin Symfony\Flex\Flex
app_1       | Loading plugin PackageVersions\Installer
app_1       | Loading plugin Hirak\Prestissimo\Plugin
app_1       | Running 1.9.3 (2020-02-04 12:58:49) with PHP 7.2.24-0ubuntu0.18.04.3 on Linux / 5.3.0-40-generic
app_1       | Reading ./composer.lock
app_1       | Loading composer repositories with package information
app_1       | Installing dependencies (including require-dev) from lock file
app_1       | Reading ./composer.lock
app_1       | Resolving dependencies through SAT
app_1       | Looking at all rules.
app_1       | 
app_1       | Dependency resolution completed in 0.003 seconds
app_1       | Analyzed 364 packages to resolve dependencies
app_1       | Analyzed 1342 rules to resolve dependencies
app_1       | Nothing to install or update
app_1       | Package phpunit/phpunit-mock-objects is abandoned, you should avoid using it. No replacement was suggested.
app_1       | Package zendframework/zend-code is abandoned, you should avoid using it. Use laminas/laminas-code instead.
app_1       | Package zendframework/zend-eventmanager is abandoned, you should avoid using it. Use laminas/laminas-eventmanager instead.
app_1       | Generating optimized autoload files
balancer_1  | INFO:haproxy:dockercloud/haproxy 1.6.7 is running outside Docker Cloud
balancer_1  | INFO:haproxy:Haproxy is running by docker-compose, loading HAProxy definition through docker api
balancer_1  | INFO:haproxy:dockercloud/haproxy PID: 6
balancer_1  | INFO:haproxy:=> Add task: Initial start - Compose Mode
app_1       | ocramius/package-versions:  Generating version class...
app_1       | ocramius/package-versions: ...done generating version class
app_1       | > post-install-cmd: @auto-scripts
app_1       | Executing script cache:clear
balancer_1  | INFO:haproxy:=> Executing task: Initial start - Compose Mode
balancer_1  | INFO:haproxy:==========BEGIN==========
balancer_1  | INFO:haproxy:Linked service: semarthris_app
balancer_1  | INFO:haproxy:Linked container: semarthris_app_1
balancer_1  | INFO:haproxy:HAProxy configuration:
balancer_1  | global
balancer_1  |   log 127.0.0.1 local0
balancer_1  |   log 127.0.0.1 local1 notice
balancer_1  |   log-send-hostname
balancer_1  |   maxconn 4096
balancer_1  |   pidfile /var/run/haproxy.pid
balancer_1  |   user haproxy
balancer_1  |   group haproxy
balancer_1  |   daemon
balancer_1  |   stats socket /var/run/haproxy.stats level admin
balancer_1  |   ssl-default-bind-options no-sslv3
balancer_1  |   ssl-default-bind-ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:AES128-GCM-SHA256:AES128-SHA256:AES128-SHA:AES256-GCM-SHA384:AES256-SHA256:AES256-SHA:DHE-DSS-AES128-SHA:DES-CBC3-SHA
balancer_1  | defaults
balancer_1  |   balance roundrobin
balancer_1  |   log global
balancer_1  |   mode http
balancer_1  |   option redispatch
balancer_1  |   option httplog
balancer_1  |   option dontlognull
balancer_1  |   option forwardfor
balancer_1  |   timeout connect 5000
balancer_1  |   timeout client 50000
balancer_1  |   timeout server 50000
balancer_1  | listen stats
balancer_1  |   bind :1936
balancer_1  |   mode http
balancer_1  |   stats enable
balancer_1  |   timeout connect 10s
balancer_1  |   timeout client 1m
balancer_1  |   timeout server 1m
balancer_1  |   stats hide-version
balancer_1  |   stats realm Haproxy\ Statistics
balancer_1  |   stats uri /
balancer_1  |   stats auth stats:stats
balancer_1  | frontend default_port_80
balancer_1  |   bind :80
balancer_1  |   reqadd X-Forwarded-Proto:\ http
balancer_1  |   maxconn 4096
balancer_1  |   default_backend default_service
balancer_1  | backend default_service
balancer_1  |   server semarthris_app_1 semarthris_app_1:443 check inter 2000 rise 2 fall 3
balancer_1  |   server semarthris_app_1 semarthris_app_1:80 check inter 2000 rise 2 fall 3
balancer_1  | INFO:haproxy:Launching HAProxy
balancer_1  | INFO:haproxy:HAProxy has been launched(PID: 9)
balancer_1  | INFO:haproxy:===========END===========
app_1       | Executed script cache:clear  [OK]
app_1       | Executing script assets:install --symlink --relative public
app_1       | 
app_1       | Executed script assets:install --symlink --relative %PUBLIC_DIR%  [OK]
app_1       | 2020-03-03 08:21:08,620 CRIT Supervisor running as root (no user in config file)
app_1       | 2020-03-03 08:21:08,620 WARN No file matches via include "/etc/supervisor/conf.d/*.conf"
app_1       | Unlinking stale socket /var/run/supervisor.sock
app_1       | 2020-03-03 08:21:08,939 INFO RPC interface 'supervisor' initialized
app_1       | 2020-03-03 08:21:08,940 CRIT Server 'unix_http_server' running without any HTTP authentication checking
app_1       | 2020-03-03 08:21:08,940 INFO supervisord started with pid 36
app_1       | 2020-03-03 08:21:09,944 INFO spawned: 'php-fpm' with pid 39
app_1       | 2020-03-03 08:21:09,947 INFO spawned: 'nginx' with pid 40
app_1       | 2020-03-03 08:21:11,003 INFO success: php-fpm entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
app_1       | 2020-03-03 08:21:11,003 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)

here's the docker-compose build && docker-compose up output

ad3n commented 4 years ago

@MacroHongJian : please run docker ps and send the result here

Wanderfo commented 4 years ago
CONTAINER ID        IMAGE                        COMMAND                  CREATED             STATUS              PORTS                                     NAMES
a8bf3876ce51        d56                          "/bin/bash"              About an hour ago   Up About an hour    80/tcp, 443/tcp                           gracious_keller
db5543f2cceb        dockercloud/haproxy:latest   "/sbin/tini -- docke…"   2 hours ago         Up 40 minutes       443/tcp, 1936/tcp, 0.0.0.0:8000->80/tcp   semarthris_balancer_1
3ff18b76cabc        semarthris_app               "/start.sh"              2 hours ago         Up 40 minutes       80/tcp, 443/tcp                           semarthris_app_1
b3f9d2b1468a        adminer                      "entrypoint.sh docke…"   4 days ago          Up 40 minutes       0.0.0.0:8080->8080/tcp                    semarthris_adminer_1
46f476f4f488        postgres:alpine              "docker-entrypoint.s…"   4 days ago          Up 40 minutes       5432/tcp                                  semarthris_db_1
1e2a761cffad        redis:alpine                 "docker-entrypoint.s…"   4 days ago          Up 40 minutes       6379/tcp                                  semarthris_session_1

@ad3n

j1top commented 4 years ago

@MacroHongJian did you find solutions ?

Wanderfo commented 4 years ago

of course not

发自我的iPad

在 2020年3月14日,01:46,Taufik Hidayat notifications@github.com 写道:



@MacroHongJianhttps://github.com/MacroHongJian did you find solutions ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/KejawenLab/SemartHris/issues/46#issuecomment-598840336, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AD6JAYZH2YAAXPYPKAYHGUDRHJWNLANCNFSM4LAEMROA.

nurh4 commented 4 years ago

hi... i have same situations with @MacroHongJian there is a solutions ?

Wanderfo commented 4 years ago

still not

发自我的iPad

在 2020年3月22日,18:32,nurh4 notifications@github.com 写道:



hi... i have same situations with @MacroHongJianhttps://github.com/MacroHongJian there is a solutions ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/KejawenLab/SemartHris/issues/46#issuecomment-602177444, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AD6JAY2GTDGUTLZSRHBTKITRIXSKVANCNFSM4LAEMROA.

nurh4 commented 4 years ago

still not 发自我的iPad 在 2020年3月22日,18:32,nurh4 notifications@github.com 写道:  hi... i have same situations with @MacroHongJianhttps://github.com/MacroHongJian there is a solutions ? — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub<#46 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AD6JAY2GTDGUTLZSRHBTKITRIXSKVANCNFSM4LAEMROA.

Have u try manual install I got error sqlstate[08006] [7] could not translate host name "db" to address: name or service not known

Wanderfo commented 4 years ago

i use docker , 8080 port works fine