Closed emilianodellacasa closed 5 years ago
@rultor deploy
@rultor deploy
@emilianodellacasa OK, I'll try to deploy now. You can check the progress here
@rultor deploy
@emilianodellacasa Done! FYI, the full log is here (took me 15min)
@rultor deploy
@rultor deploy
@emilianodellacasa OK, I'll try to deploy now. You can check the progress here
@rultor deploy
@emilianodellacasa Done! FYI, the full log is here (took me 9min)
@rultor deploy
@rultor deploy
@emilianodellacasa OK, I'll try to deploy now. You can check the progress here
@rultor deploy
@emilianodellacasa Done! FYI, the full log is here (took me 9min)
@rultor deploy
@rultor deploy
@emilianodellacasa OK, I'll try to deploy now. You can check the progress here
@rultor deploy
@emilianodellacasa Done! FYI, the full log is here (took me 9min)
@rultor deploy
@rultor deploy
@emilianodellacasa OK, I'll try to deploy now. You can check the progress here
@rultor deploy
@emilianodellacasa Oops, I failed. You can see the full log here (spent 2min)
+ set -e
+ set -o pipefail
++ dirname ./run.sh
+ cd .
+ echo 15312
+ echo '1.68.2 70c246ce3'
1.68.2 70c246ce3
+ date
Wed Mar 13 19:07:20 CET 2019
+ uptime
19:07:20 up 88 days, 9:37, 0 users, load average: 5.36, 5.57, 5.87
+ head=git@github.com:timelesslounge/timelessis.git
+ ff=default
+ image=yegor256/rultor
+ rebase=false
+ squash=false
+ head_branch=master
+ author=emilianodellacasa
+ vars=('--env=head=git@github.com:timelesslounge/timelessis.git' '--env=scripts=( '\''export '\''\'\'''\''head=git@github.com:timelesslounge/timelessis.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''head_branch=master'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''author=emilianodellacasa'\''\'\'''\'''\'' '\'';'\'' '\''sudo add-apt-repository -y ppa:jonathonf/python-3.6'\'' '\'';'\'' '\''sudo apt-get update'\'' '\'';'\'' '\''sudo apt-get -y install python3.6 python3.6-dev python3.6-venv'\'' '\'';'\'' '\''python3.6 -m venv venv'\'' '\'';'\'' '\''. venv/bin/activate'\'' '\'';'\'' '\''pip install -r requirements.txt'\'' '\'';'\'' '\''sudo gem install pdd'\'' '\'';'\'' '\''sudo apt-get install sshpass'\'' '\'';'\'' '\''chmod +x scripts/install/install_db.sh'\'' '\'';'\'' '\''./scripts/install/install_db.sh'\'' '\'';'\'' '\''chmod +x scripts/install/installRedis.sh'\'' '\'';'\'' '\''./scripts/install/installRedis.sh'\'' '\'';'\'' '\''chmod +x ./deploy.sh'\'' '\'';'\'' '\''./deploy.sh'\'' '\'';'\'' )' '--env=head_branch=master' '--env=author=emilianodellacasa')
+ scripts=('export '\''head=git@github.com:timelesslounge/timelessis.git'\''' ';' 'export '\''head_branch=master'\''' ';' 'export '\''author=emilianodellacasa'\''' ';' 'sudo add-apt-repository -y ppa:jonathonf/python-3.6' ';' 'sudo apt-get update' ';' 'sudo apt-get -y install python3.6 python3.6-dev python3.6-venv' ';' 'python3.6 -m venv venv' ';' '. venv/bin/activate' ';' 'pip install -r requirements.txt' ';' 'sudo gem install pdd' ';' 'sudo apt-get install sshpass' ';' 'chmod +x scripts/install/install_db.sh' ';' './scripts/install/install_db.sh' ';' 'chmod +x scripts/install/installRedis.sh' ';' './scripts/install/installRedis.sh' ';' 'chmod +x ./deploy.sh' ';' './deploy.sh' ';')
+ directory=
+ container=timelesslounge_timelessis_543
+ as_root=false
+ mkdir -p /home/rultor/.ssh
+ echo -e 'Host github.com\n\tStrictHostKeyChecking no\n'
+ chmod 600 /home/rultor/.ssh/config
+ git clone git@github.com:timelesslounge/timelessis.git repo
Cloning into 'repo'...
+ cd repo
+ git config user.email me@rultor.com
+ git config user.name rultor
+ '[' -z 'export '\''head=git@github.com:timelesslounge/timelessis.git'\''' ']'
+ cd ..
+ cat
+ '[' false = true ']'
+ cat
+ chmod a+x entry.sh
+ cat
+ echo 'export '\''head=git@github.com:timelesslounge/timelessis.git'\''' ';' 'export '\''head_branch=master'\''' ';' 'export '\''author=emilianodellacasa'\''' ';' 'sudo add-apt-repository -y ppa:jonathonf/python-3.6' ';' 'sudo apt-get update' ';' 'sudo apt-get -y install python3.6 python3.6-dev python3.6-venv' ';' 'python3.6 -m venv venv' ';' '. venv/bin/activate' ';' 'pip install -r requirements.txt' ';' 'sudo gem install pdd' ';' 'sudo apt-get install sshpass' ';' 'chmod +x scripts/install/install_db.sh' ';' ./scripts/install/install_db.sh ';' 'chmod +x scripts/install/installRedis.sh' ';' ./scripts/install/installRedis.sh ';' 'chmod +x ./deploy.sh' ';' ./deploy.sh ';'
+ sensitive=()
+ gpgconf --reload gpg-agent
+ gpg --keyserver hkp://pool.sks-keyservers.net --verbose --recv-keys 9AF0FA4C
gpg: requesting key 9AF0FA4C from hkp server pool.sks-keyservers.net
gpgkeys: key 9AF0FA4C can't be retrieved
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
gpg: keyserver communications error: keyserver helper general error
gpg: keyserver communications error: unknown pubkey algorithm
gpg: keyserver receive failed: unknown pubkey algorithm
'cid' file is absent, container wasn't started correctly
@rultor merge
@rultor merge
@emilianodellacasa It is an issue, not a pull request
@rultor merge
@emilianodellacasa I'm sorry, I don't understand you :( Check this page and try again please
@rultor deploy
@rultor deploy
@emilianodellacasa OK, I'll try to deploy now. You can check the progress here
@rultor deploy
@emilianodellacasa Done! FYI, the full log is here (took me 7min)
@rultor deploy
@rultor deploy
@emilianodellacasa OK, I'll try to deploy now. You can check the progress here
@rultor deploy
@emilianodellacasa Done! FYI, the full log is here (took me 7min)
@rultor deploy
@rultor deploy
@emilianodellacasa OK, I'll try to deploy now. You can check the progress here
@rultor deploy
@emilianodellacasa Done! FYI, the full log is here (took me 9min)
@rultor deploy
@rultor deploy
@emilianodellacasa OK, I'll try to deploy now. You can check the progress here
@rultor deploy
@emilianodellacasa Done! FYI, the full log is here (took me 7min)
@rultor deploy
@rultor deploy
@emilianodellacasa OK, I'll try to deploy now. You can check the progress here
@rultor deploy
@emilianodellacasa Oops, I failed. You can see the full log here (spent 2hr)
sudo -u postgres -H -- psql -d timelessdb -c "INSERT INTO employee
(first_name, last_name, username, phone_number, birth_date,
registration_date, account_status, user_status, email, password, pin_code,
comment, company_id, role_id)
values
('Administrator', 'Timeless', 'administrator', '988888', '', '', 'active', 'active',
'admin@timelesslounge.ru', 'admin!TimeLess!ru', '5847', 'Timeless user', ,
)
"
echo "-- Running web application server"
export FLASK_APP=main.py
export FLASK_ENV=development
export FLASK_RUN_PORT=80
export FLASK_RUN_HOST=165.227.137.109
nohup flask run > /var/log/timeless.log 2>&1 &
rm -rf /app/credentials.json
echo "-- REPLACE: verify web application is running ok"
logout
\u001b]0;root@ubuntu-s-2vcpu-4gb-fra1-01: ~\u0007root@ubuntu-s-2vcpu-4gb-fra1-01:~# cd /app
\u001b]0;root@ubuntu-s-2vcpu-4gb-fra1-01: /app\u0007root@ubuntu-s-2vcpu-4gb-fra1-01:/app# chmod +x /app/scripts/install/deploy/ins
tall_dependencies.sh
\u001b]0;root@ubuntu-s-2vcpu-4gb-fra1-01: /app\u0007root@ubuntu-s-2vcpu-4gb-fra1-01:/app# /app/scripts/install/deploy/install_depe
ndencies.sh
gpg: keyring `/tmp/tmp_oqqisx1/secring.gpg' created
gpg: keyring `/tmp/tmp_oqqisx1/pubring.gpg' created
gpg: requesting key F06FC659 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmp_oqqisx1/trustdb.gpg: trustdb created
gpg: key F06FC659: public key "Launchpad PPA for J Fernyhough" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK
0% [Working]
Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
0% [Waiting for headers] [1 InRelease 2,585 B/109 kB 2%] [Waiting for headers]
Hit:2 http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu xenial InRelease
0% [Waiting for headers] [1 InRelease 14.2 kB/109 kB 13%] [Connecting to apt.po
0% [2 InRelease gpgv 18.0 kB] [Waiting for headers] [1 InRelease 14.2 kB/109 kB
Hit:3 http://mirrors.digitalocean.com/ubuntu xenial InRelease
0% [2 InRelease gpgv 18.0 kB] [Waiting for headers] [1 InRelease 14.2 kB/109 kB
Get:4 http://mirrors.digitalocean.com/ubuntu xenial-updates InRelease [109 kB]
0% [2 InRelease gpgv 18.0 kB] [4 InRelease 14.2 kB/109 kB 13%] [1 InRelease 51.
Hit:5 http://apt.postgresql.org/pub/repos/apt xenial-pgdg InRelease
0% [2 InRelease gpgv 18.0 kB] [4 InRelease 14.2 kB/109 kB 13%] [1 InRelease 104
0% [2 InRelease gpgv 18.0 kB] [4 InRelease 14.2 kB/109 kB 13%]
0% [4 InRelease 63.5 kB/109 kB 58%]
0% [3 InRelease gpgv 247 kB] [4 InRelease 63.5 kB/109 kB 58%]
0% [3 InRelease gpgv 247 kB] [Waiting for headers]
Get:6 http://mirrors.digitalocean.com/ubuntu xenial-backports InRelease [107 kB]
0% [3 InRelease gpgv 247 kB] [6 InRelease 15.7 kB/107 kB 15%]
0% [6 InRelease 107 kB/107 kB 100%]
0% [Working]
0% [5 InRelease gpgv 51.3 kB]
0% [Working]
0% [1 InRelease gpgv 109 kB]
0% [Working]
0% [4 InRelease gpgv 109 kB]
0% [Working]
0% [6 InRelease gpgv 107 kB] [Waiting for headers]
Get:7 http://mirrors.digitalocean.com/ubuntu xenial-updates/universe amd64 Packages [738 kB]
0% [6 InRelease gpgv 107 kB] [7 Packages 54.8 kB/738 kB 7%]
56% [7 Packages 152 kB/738 kB 21%]
100% [Working]
100% [7 Packages store 0 B]
100% [Working]
Fetched 1,063 kB in 0s (1,182 kB/s)
Reading package lists... 0%
Reading package lists... 0%
Reading package lists... 1%
Reading package lists... 6%
Reading package lists... 6%
Reading package lists... 9%
Reading package lists... 9%
Reading package lists... 9%
Reading package lists... 9%
Reading package lists... 9%
Reading package lists... 9%
Reading package lists... 47%
Reading package lists... 47%
Reading package lists... 61%
Reading package lists... 68%
Reading package lists... 68%
Reading package lists... 69%
Reading package lists... 69%
Reading package lists... 69%
Reading package lists... 69%
Reading package lists... 75%
Reading package lists... 75%
Reading package lists... 80%
Reading package lists... 80%
Reading package lists... 80%
Reading package lists... 80%
Reading package lists... 80%
Reading package lists... 80%
Reading package lists... 84%
Reading package lists... 84%
Reading package lists... 86%
Reading package lists... 86%
Reading package lists... 86%
Reading package lists... 86%
Reading package lists... 86%
Reading package lists... 86%
Reading package lists... 86%
Reading package lists... 86%
Reading package lists... 86%
Reading package lists... 86%
Reading package lists... 86%
Reading package lists... 86%
Reading package lists... 86%
Reading package lists... 86%
Reading package lists... 90%
Reading package lists... 90%
Reading package lists... 94%
Reading package lists... 94%
Reading package lists... 94%
Reading package lists... 94%
Reading package lists... 94%
Reading package lists... 94%
Reading package lists... 97%
Reading package lists... 97%
Reading package lists... 98%
Reading package lists... 98%
Reading package lists... 98%
Reading package lists... 98%
Reading package lists... 98%
Reading package lists... 98%
Reading package lists... 98%
Reading package lists... 98%
Reading package lists... 98%
Reading package lists... 98%
Reading package lists... 99%
Reading package lists... 99%
Reading package lists... Done
Reading package lists... 0%
Reading package lists... 100%
Reading package lists... Done
Building dependency tree... 0%
Building dependency tree... 0%
Building dependency tree... 50%
Building dependency tree... 50%
Building dependency tree
Reading state information... 0%
Reading state information... 1%
Reading state information... Done
python3-pip is already the newest version (8.1.1-2ubuntu0.4).
python3.6-dev is already the newest version (3.6.7-1~16.04.york3).
python3.6-venv is already the newest version (3.6.7-1~16.04.york3).
python3.6 is already the newest version (3.6.7-1~16.04.york3).
The following package was automatically installed and is no longer required:
grub-pc-bin
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 18 not upgraded.
Done installing Python 3.6
/usr/bin/psql
Postgres already installed
Restarting Postgres
\u001b[0;1;31mWarning:\u001b[0m timeless_pg.service changed on disk. Run 'systemctl daemon-reload' to reload units.
Job for timeless_pg.service failed because the control process exited with error code. See "systemctl status timeless_pg.service" and "journalctl -xe" for details.
/usr/bin/jq
jq already installed
parse error: Invalid numeric literal at line 1, column 5
b86f7cd6d54ed2e6fd122acbbb68910102a1172bb4894304951116ca665380ec
'pid' file is absent, something was broken
@rultor merge
@rultor merge
@emilianodellacasa It is an issue, not a pull request
@rultor merge
@emilianodellacasa I'm sorry, I don't understand you :( Check this page and try again please
@rultor deploy
@rultor deploy
@emilianodellacasa OK, I'll try to deploy now. You can check the progress here
@rultor deploy
@emilianodellacasa Oops, I failed. You can see the full log here (spent 2min)
+ set -e
+ set -o pipefail
++ dirname ./run.sh
+ cd .
+ echo 3262
+ echo '1.68.2 70c246ce3'
1.68.2 70c246ce3
+ date
Thu Mar 14 15:51:00 CET 2019
+ uptime
15:51:00 up 89 days, 6:21, 0 users, load average: 5.68, 5.70, 5.62
+ head=git@github.com:timelesslounge/timelessis.git
+ ff=default
+ image=yegor256/rultor
+ rebase=false
+ squash=false
+ head_branch=master
+ author=emilianodellacasa
+ vars=('--env=head=git@github.com:timelesslounge/timelessis.git' '--env=scripts=( '\''export '\''\'\'''\''head=git@github.com:timelesslounge/timelessis.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''head_branch=master'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''author=emilianodellacasa'\''\'\'''\'''\'' '\'';'\'' '\''sudo add-apt-repository -y ppa:jonathonf/python-3.6'\'' '\'';'\'' '\''sudo apt-get update'\'' '\'';'\'' '\''sudo apt-get -y install python3.6 python3.6-dev python3.6-venv'\'' '\'';'\'' '\''python3.6 -m venv venv'\'' '\'';'\'' '\''. venv/bin/activate'\'' '\'';'\'' '\''pip install -r requirements.txt'\'' '\'';'\'' '\''sudo gem install pdd'\'' '\'';'\'' '\''sudo apt-get install sshpass'\'' '\'';'\'' '\''chmod +x scripts/install/install_db.sh'\'' '\'';'\'' '\''./scripts/install/install_db.sh'\'' '\'';'\'' '\''chmod +x scripts/install/installRedis.sh'\'' '\'';'\'' '\''./scripts/install/installRedis.sh'\'' '\'';'\'' '\''chmod +x ./deploy.sh'\'' '\'';'\'' '\''./deploy.sh'\'' '\'';'\'' )' '--env=head_branch=master' '--env=author=emilianodellacasa')
+ scripts=('export '\''head=git@github.com:timelesslounge/timelessis.git'\''' ';' 'export '\''head_branch=master'\''' ';' 'export '\''author=emilianodellacasa'\''' ';' 'sudo add-apt-repository -y ppa:jonathonf/python-3.6' ';' 'sudo apt-get update' ';' 'sudo apt-get -y install python3.6 python3.6-dev python3.6-venv' ';' 'python3.6 -m venv venv' ';' '. venv/bin/activate' ';' 'pip install -r requirements.txt' ';' 'sudo gem install pdd' ';' 'sudo apt-get install sshpass' ';' 'chmod +x scripts/install/install_db.sh' ';' './scripts/install/install_db.sh' ';' 'chmod +x scripts/install/installRedis.sh' ';' './scripts/install/installRedis.sh' ';' 'chmod +x ./deploy.sh' ';' './deploy.sh' ';')
+ directory=
+ container=timelesslounge_timelessis_543
+ as_root=false
+ mkdir -p /home/rultor/.ssh
+ echo -e 'Host github.com\n\tStrictHostKeyChecking no\n'
+ chmod 600 /home/rultor/.ssh/config
+ git clone git@github.com:timelesslounge/timelessis.git repo
Cloning into 'repo'...
+ cd repo
+ git config user.email me@rultor.com
+ git config user.name rultor
+ '[' -z 'export '\''head=git@github.com:timelesslounge/timelessis.git'\''' ']'
+ cd ..
+ cat
+ '[' false = true ']'
+ cat
+ chmod a+x entry.sh
+ cat
+ echo 'export '\''head=git@github.com:timelesslounge/timelessis.git'\''' ';' 'export '\''head_branch=master'\''' ';' 'export '\''author=emilianodellacasa'\''' ';' 'sudo add-apt-repository -y ppa:jonathonf/python-3.6' ';' 'sudo apt-get update' ';' 'sudo apt-get -y install python3.6 python3.6-dev python3.6-venv' ';' 'python3.6 -m venv venv' ';' '. venv/bin/activate' ';' 'pip install -r requirements.txt' ';' 'sudo gem install pdd' ';' 'sudo apt-get install sshpass' ';' 'chmod +x scripts/install/install_db.sh' ';' ./scripts/install/install_db.sh ';' 'chmod +x scripts/install/installRedis.sh' ';' ./scripts/install/installRedis.sh ';' 'chmod +x ./deploy.sh' ';' ./deploy.sh ';'
+ sensitive=()
+ gpgconf --reload gpg-agent
+ gpg --keyserver hkp://pool.sks-keyservers.net --verbose --recv-keys 9AF0FA4C
gpg: requesting key 9AF0FA4C from hkp server pool.sks-keyservers.net
gpgkeys: key 9AF0FA4C can't be retrieved
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
gpg: keyserver communications error: keyserver helper general error
gpg: keyserver communications error: unknown pubkey algorithm
gpg: keyserver receive failed: unknown pubkey algorithm
'cid' file is absent, container wasn't started correctly
@rultor deploy
@rultor deploy
@emilianodellacasa OK, I'll try to deploy now. You can check the progress here
@rultor deploy
@emilianodellacasa Oops, I failed. You can see the full log here (spent 2min)
+ set -e
+ set -o pipefail
++ dirname ./run.sh
+ cd .
+ echo 4186
+ echo '1.68.2 70c246ce3'
1.68.2 70c246ce3
+ date
Thu Mar 14 15:59:52 CET 2019
+ uptime
15:59:51 up 89 days, 6:30, 0 users, load average: 5.73, 5.49, 5.53
+ head=git@github.com:timelesslounge/timelessis.git
+ ff=default
+ image=yegor256/rultor
+ rebase=false
+ squash=false
+ head_branch=master
+ author=emilianodellacasa
+ vars=('--env=head=git@github.com:timelesslounge/timelessis.git' '--env=scripts=( '\''export '\''\'\'''\''head=git@github.com:timelesslounge/timelessis.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''head_branch=master'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''author=emilianodellacasa'\''\'\'''\'''\'' '\'';'\'' '\''sudo add-apt-repository -y ppa:jonathonf/python-3.6'\'' '\'';'\'' '\''sudo apt-get update'\'' '\'';'\'' '\''sudo apt-get -y install python3.6 python3.6-dev python3.6-venv'\'' '\'';'\'' '\''python3.6 -m venv venv'\'' '\'';'\'' '\''. venv/bin/activate'\'' '\'';'\'' '\''pip install -r requirements.txt'\'' '\'';'\'' '\''sudo gem install pdd'\'' '\'';'\'' '\''sudo apt-get install sshpass'\'' '\'';'\'' '\''chmod +x scripts/install/install_db.sh'\'' '\'';'\'' '\''./scripts/install/install_db.sh'\'' '\'';'\'' '\''chmod +x scripts/install/installRedis.sh'\'' '\'';'\'' '\''./scripts/install/installRedis.sh'\'' '\'';'\'' '\''chmod +x ./deploy.sh'\'' '\'';'\'' '\''./deploy.sh'\'' '\'';'\'' )' '--env=head_branch=master' '--env=author=emilianodellacasa')
+ scripts=('export '\''head=git@github.com:timelesslounge/timelessis.git'\''' ';' 'export '\''head_branch=master'\''' ';' 'export '\''author=emilianodellacasa'\''' ';' 'sudo add-apt-repository -y ppa:jonathonf/python-3.6' ';' 'sudo apt-get update' ';' 'sudo apt-get -y install python3.6 python3.6-dev python3.6-venv' ';' 'python3.6 -m venv venv' ';' '. venv/bin/activate' ';' 'pip install -r requirements.txt' ';' 'sudo gem install pdd' ';' 'sudo apt-get install sshpass' ';' 'chmod +x scripts/install/install_db.sh' ';' './scripts/install/install_db.sh' ';' 'chmod +x scripts/install/installRedis.sh' ';' './scripts/install/installRedis.sh' ';' 'chmod +x ./deploy.sh' ';' './deploy.sh' ';')
+ directory=
+ container=timelesslounge_timelessis_543
+ as_root=false
+ mkdir -p /home/rultor/.ssh
+ echo -e 'Host github.com\n\tStrictHostKeyChecking no\n'
+ chmod 600 /home/rultor/.ssh/config
+ git clone git@github.com:timelesslounge/timelessis.git repo
Cloning into 'repo'...
+ cd repo
+ git config user.email me@rultor.com
+ git config user.name rultor
+ '[' -z 'export '\''head=git@github.com:timelesslounge/timelessis.git'\''' ']'
+ cd ..
+ cat
+ '[' false = true ']'
+ cat
+ chmod a+x entry.sh
+ cat
+ echo 'export '\''head=git@github.com:timelesslounge/timelessis.git'\''' ';' 'export '\''head_branch=master'\''' ';' 'export '\''author=emilianodellacasa'\''' ';' 'sudo add-apt-repository -y ppa:jonathonf/python-3.6' ';' 'sudo apt-get update' ';' 'sudo apt-get -y install python3.6 python3.6-dev python3.6-venv' ';' 'python3.6 -m venv venv' ';' '. venv/bin/activate' ';' 'pip install -r requirements.txt' ';' 'sudo gem install pdd' ';' 'sudo apt-get install sshpass' ';' 'chmod +x scripts/install/install_db.sh' ';' ./scripts/install/install_db.sh ';' 'chmod +x scripts/install/installRedis.sh' ';' ./scripts/install/installRedis.sh ';' 'chmod +x ./deploy.sh' ';' ./deploy.sh ';'
+ sensitive=()
+ gpgconf --reload gpg-agent
+ gpg --keyserver hkp://pool.sks-keyservers.net --verbose --recv-keys 9AF0FA4C
gpg: requesting key 9AF0FA4C from hkp server pool.sks-keyservers.net
gpgkeys: key 9AF0FA4C can't be retrieved
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
gpg: keyserver communications error: keyserver helper general error
gpg: keyserver communications error: unknown pubkey algorithm
gpg: keyserver receive failed: unknown pubkey algorithm
'cid' file is absent, container wasn't started correctly
@rultor deploy
@rultor deploy
@emilianodellacasa OK, I'll try to deploy now. You can check the progress here
@rultor deploy
@emilianodellacasa Oops, I failed. You can see the full log here (spent 2hr)
values
('Administrator', 'Timeless', 'administrator', '988888', '', '', 'active', 'active',
'admin@timelesslounge.ru', 'admin!TimeLess!ru', '5847', 'Timeless user', ,
)
"
echo "-- Running web application server"
export FLASK_APP=main.py
export FLASK_ENV=development
export FLASK_RUN_PORT=80
export FLASK_RUN_HOST=165.227.137.109
nohup flask run > /var/log/timeless.log 2>&1 &
rm -rf /app/credentials.json
echo "-- REPLACE: verify web application is running ok"
logout
\u001b]0;root@ubuntu-s-2vcpu-4gb-fra1-01: ~\u0007root@ubuntu-s-2vcpu-4gb-fra1-01:~# cd /app
\u001b]0;root@ubuntu-s-2vcpu-4gb-fra1-01: /app\u0007root@ubuntu-s-2vcpu-4gb-fra1-01:/app# chmod +x /app/scripts/install/deploy/ins
tall_dependencies.sh
\u001b]0;root@ubuntu-s-2vcpu-4gb-fra1-01: /app\u0007root@ubuntu-s-2vcpu-4gb-fra1-01:/app# /app/scripts/install/deploy/install_depe
ndencies.sh
gpg: keyring `/tmp/tmpwmy2ap14/secring.gpg' created
gpg: keyring `/tmp/tmpwmy2ap14/pubring.gpg' created
gpg: requesting key F06FC659 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpwmy2ap14/trustdb.gpg: trustdb created
gpg: key F06FC659: public key "Launchpad PPA for J Fernyhough" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK
0% [Working]
Hit:1 http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu xenial InRelease
0% [Connecting to mirrors.digitalocean.com (198.199.99.226)] [Connecting to sec
0% [1 InRelease gpgv 18.0 kB] [Connecting to mirrors.digitalocean.com (198.199.
0% [Connecting to mirrors.digitalocean.com (198.199.99.226)] [Waiting for heade
Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
0% [Waiting for headers] [2 InRelease 2,586 B/109 kB 2%] [Connecting to apt.pos
Hit:3 http://apt.postgresql.org/pub/repos/apt xenial-pgdg InRelease
0% [Waiting for headers] [2 InRelease 17.1 kB/109 kB 16%]
0% [3 InRelease gpgv 51.3 kB] [Waiting for headers] [2 InRelease 17.1 kB/109 kB
0% [3 InRelease gpgv 51.3 kB] [Waiting for headers] [2 InRelease 40.2 kB/109 kB
0% [Connecting to ams2.mirrors.digitalocean.com (95.85.0.50)] [Waiting for head
Hit:4 http://ams2.mirrors.digitalocean.com/ubuntu xenial InRelease
0% [Waiting for headers] [2 InRelease 54.7 kB/109 kB 50%]
0% [4 InRelease gpgv 247 kB] [Waiting for headers] [2 InRelease 54.7 kB/109 kB
0% [4 InRelease gpgv 247 kB] [Waiting for headers]
0% [Waiting for headers]
0% [2 InRelease gpgv 109 kB] [Waiting for headers]
0% [2 InRelease gpgv 109 kB] [Waiting for headers]
Get:5 http://ams2.mirrors.digitalocean.com/ubuntu xenial-updates InRelease [109 kB]
0% [5 InRelease 14.2 kB/109 kB 13%] [2 InRelease gpgv 109 kB] [Waiting for head
0% [5 InRelease 59.1 kB/109 kB 54%] [Waiting for headers]
0% [Waiting for headers]
0% [5 InRelease gpgv 109 kB] [Waiting for headers]
0% [5 InRelease gpgv 109 kB]
Get:6 http://ams2.mirrors.digitalocean.com/ubuntu xenial-backports InRelease [107 kB]
0% [6 InRelease 31.6 kB/107 kB 30%] [5 InRelease gpgv 109 kB]
0% [6 InRelease 31.6 kB/107 kB 30%]
0% [Waiting for headers]
0% [6 InRelease gpgv 107 kB] [Waiting for headers]
30% [Waiting for headers]
30% [Working]
Get:7 http://ams2.mirrors.digitalocean.com/ubuntu xenial-updates/main Sources [331 kB]
32% [7 Sources 49.0 kB/331 kB 15%] [Waiting for headers]
41% [Waiting for headers]
41% [7 Sources store 0 B] [Waiting for headers]
41% [7 Sources store 0 B] [Waiting for headers]
Get:8 http://ams2.mirrors.digitalocean.com/ubuntu xenial-updates/multiverse Sources [8,764 B]
42% [7 Sources store 0 B] [Waiting for headers]
42% [Waiting for headers]
42% [8 Sources store 0 B] [Waiting for headers]
42% [Waiting for headers]
42% [Waiting for headers]
Get:9 http://ams2.mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 Packages [920 kB]
45% [9 Packages 83.7 kB/920 kB 9%] [Waiting for headers]
69% [9 Packages 785 kB/920 kB 85%] [Waiting for headers]
74% [Waiting for headers]
74% [9 Packages store 0 B] [Waiting for headers]
Get:10 http://ams2.mirrors.digitalocean.com/ubuntu xenial-updates/universe amd64 Packages [738 kB]
74% [9 Packages store 0 B] [10 Packages 24.6 kB/738 kB 3%] [Waiting for headers
99% [9 Packages store 0 B] [Waiting for headers]
99% [9 Packages store 0 B]
Get:11 http://ams2.mirrors.digitalocean.com/ubuntu xenial-updates/multiverse amd64 Packages [16.7 kB]
99% [9 Packages store 0 B] [11 Packages 4,096 B/16.7 kB 25%]
99% [9 Packages store 0 B]
100% [Working]
100% [10 Packages store 0 B]
100% [Working]
100% [11 Packages store 0 B]
100% [Working]
Fetched 2,340 kB in 1s (1,461 kB/s)
Reading package lists... 0%
Reading package lists... 0%
Reading package lists... 1%
Reading package lists... 6%
Reading package lists... 6%
Reading package lists... 9%
Reading package lists... 9%
Reading package lists... 9%
Reading package lists... 9%
Reading package lists... 9%
Reading package lists... 9%
Reading package lists... 47%
Reading package lists... 47%
Reading package lists... 61%
Reading package lists... 68%
Reading package lists... 68%
Reading package lists... 69%
Reading package lists... 69%
Reading package lists... 69%
Reading package lists... 69%
Reading package lists... 75%
Reading package lists... 75%
Reading package lists... 80%
Reading package lists... 80%
Reading package lists... 80%
Reading package lists... 80%
Reading package lists... 80%
Reading package lists... 80%
Reading package lists... 84%
Reading package lists... 84%
Reading package lists... 86%
Reading package lists... 86%
Reading package lists... 86%
Reading package lists... 86%
Reading package lists... 86%
Reading package lists... 86%
Reading package lists... 86%
Reading package lists... 86%
Reading package lists... 86%
Reading package lists... 86%
Reading package lists... 86%
Reading package lists... 86%
Reading package lists... 86%
Reading package lists... 86%
Reading package lists... 90%
Reading package lists... 90%
Reading package lists... 94%
Reading package lists... 94%
Reading package lists... 94%
Reading package lists... 94%
Reading package lists... 94%
Reading package lists... 94%
Reading package lists... 97%
Reading package lists... 97%
Reading package lists... 98%
Reading package lists... 98%
Reading package lists... 98%
Reading package lists... 98%
Reading package lists... 98%
Reading package lists... 98%
Reading package lists... 98%
Reading package lists... 98%
Reading package lists... 98%
Reading package lists... 98%
Reading package lists... 99%
Reading package lists... 99%
Reading package lists... Done
Reading package lists... 0%
Reading package lists... 100%
Reading package lists... Done
Building dependency tree... 0%
Building dependency tree... 0%
Building dependency tree... 50%
Building dependency tree... 50%
Building dependency tree
Reading state information... 0%
Reading state information... 1%
Reading state information... Done
python3-pip is already the newest version (8.1.1-2ubuntu0.4).
python3.6-dev is already the newest version (3.6.7-1~16.04.york3).
python3.6-venv is already the newest version (3.6.7-1~16.04.york3).
python3.6 is already the newest version (3.6.7-1~16.04.york3).
The following package was automatically installed and is no longer required:
grub-pc-bin
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 20 not upgraded.
Done installing Python 3.6
/usr/bin/psql
Postgres already installed
Restarting Postgres
\u001b[0;1;31mWarning:\u001b[0m timeless_pg.service changed on disk. Run 'systemctl daemon-reload' to reload units.
Job for timeless_pg.service failed because the control process exited with error code. See "systemctl status timeless_pg.service" and "journalctl -xe" for details.
/usr/bin/jq
jq already installed
parse error: Invalid numeric literal at line 1, column 5
f5f75b5af1bc62d45f8e43fcedc14370e49ab4a4f772b5c1a7ce1fb1594a61e2
'pid' file is absent, something was broken
@rultor deploy
@rultor deploy
@emilianodellacasa OK, I'll try to deploy now. You can check the progress here
@rultor deploy
@emilianodellacasa Oops, I failed. You can see the full log here (spent 2hr)
registration_date, account_status, user_status, email, password, pin_code,
comment, company_id, role_id)
values
('Administrator', 'Timeless', 'administrator', '988888', '', '', 'active', 'active',
'admin@timelesslounge.ru', 'admin!TimeLess!ru', '5847', 'Timeless user', ,
)
"
echo "-- Running web application server"
export FLASK_APP=main.py
export FLASK_ENV=development
export FLASK_RUN_PORT=80
export FLASK_RUN_HOST=165.227.137.109
nohup flask run > /var/log/timeless.log 2>&1 &
rm -rf /app/credentials.json
echo "-- REPLACE: verify web application is running ok"
logout
\u001b]0;root@ubuntu-s-2vcpu-4gb-fra1-01: ~\u0007root@ubuntu-s-2vcpu-4gb-fra1-01:~# cd /app
\u001b]0;root@ubuntu-s-2vcpu-4gb-fra1-01: /app\u0007root@ubuntu-s-2vcpu-4gb-fra1-01:/app# chmod +x /app/scripts/install/deploy/ins
tall_dependencies.sh
\u001b]0;root@ubuntu-s-2vcpu-4gb-fra1-01: /app\u0007root@ubuntu-s-2vcpu-4gb-fra1-01:/app# /app/scripts/install/deploy/install_depe
ndencies.sh
gpg: keyring `/tmp/tmp7swgyrjz/secring.gpg' created
gpg: keyring `/tmp/tmp7swgyrjz/pubring.gpg' created
gpg: requesting key F06FC659 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmp7swgyrjz/trustdb.gpg: trustdb created
gpg: key F06FC659: public key "Launchpad PPA for J Fernyhough" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK
0% [Working]
Hit:1 http://apt.postgresql.org/pub/repos/apt xenial-pgdg InRelease
0% [Waiting for headers] [Connecting to security.ubuntu.com (91.189.91.26)] [Wa
Hit:2 http://mirrors.digitalocean.com/ubuntu xenial InRelease
Hit:3 http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu xenial InRelease
0% [Waiting for headers] [Connecting to security.ubuntu.com (91.189.91.26)]
0% [1 InRelease gpgv 51.3 kB] [Waiting for headers] [Connecting to security.ubu
Get:4 http://mirrors.digitalocean.com/ubuntu xenial-updates InRelease [109 kB]
0% [1 InRelease gpgv 51.3 kB] [4 InRelease 14.2 kB/109 kB 13%] [Connecting to s
0% [4 InRelease 56.2 kB/109 kB 51%] [Waiting for headers]
0% [2 InRelease gpgv 247 kB] [4 InRelease 56.2 kB/109 kB 51%] [Waiting for head
0% [2 InRelease gpgv 247 kB] [Waiting for headers]
Get:5 http://mirrors.digitalocean.com/ubuntu xenial-backports InRelease [107 kB]
0% [2 InRelease gpgv 247 kB] [5 InRelease 21.2 kB/107 kB 20%] [Waiting for head
0% [5 InRelease 107 kB/107 kB 100%] [Waiting for headers]
Get:6 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
0% [6 InRelease 2,585 B/109 kB 2%]
0% [3 InRelease gpgv 18.0 kB] [6 InRelease 2,585 B/109 kB 2%]
0% [6 InRelease 14.2 kB/109 kB 13%]
0% [4 InRelease gpgv 109 kB] [6 InRelease 14.2 kB/109 kB 13%]
0% [6 InRelease 28.6 kB/109 kB 26%]
0% [5 InRelease gpgv 107 kB] [Waiting for headers] [6 InRelease 28.6 kB/109 kB
Get:7 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 Packages [920 kB]
0% [5 InRelease gpgv 107 kB] [7 Packages 37.4 kB/920 kB 4%] [6 InRelease 34.4 k
0% [7 Packages 181 kB/920 kB 20%] [6 InRelease 54.7 kB/109 kB 50%]
0% [7 Packages 546 kB/920 kB 59%]
0% [6 InRelease gpgv 109 kB] [7 Packages 546 kB/920 kB 59%]
0% [6 InRelease gpgv 109 kB]
0% [7 Packages store 0 B] [6 InRelease gpgv 109 kB] [Waiting for headers]
69% [7 Packages store 0 B] [Waiting for headers]
Get:8 http://mirrors.digitalocean.com/ubuntu xenial-updates/universe amd64 Packages [738 kB]
70% [7 Packages store 0 B] [8 Packages 24.4 kB/738 kB 3%]
99% [7 Packages store 0 B]
Get:9 http://mirrors.digitalocean.com/ubuntu xenial-updates/multiverse amd64 Packages [16.7 kB]
99% [7 Packages store 0 B] [9 Packages 8,192 B/16.7 kB 49%]
99% [7 Packages store 0 B]
100% [Working]
100% [8 Packages store 0 B]
100% [Working]
100% [9 Packages store 0 B]
100% [Working]
Fetched 2,000 kB in 0s (2,267 kB/s)
Reading package lists... 0%
Reading package lists... 0%
Reading package lists... 1%
Reading package lists... 6%
Reading package lists... 6%
Reading package lists... 9%
Reading package lists... 9%
Reading package lists... 9%
Reading package lists... 9%
Reading package lists... 9%
Reading package lists... 9%
Reading package lists... 47%
Reading package lists... 47%
Reading package lists... 67%
Reading package lists... 68%
Reading package lists... 68%
Reading package lists... 69%
Reading package lists... 69%
Reading package lists... 69%
Reading package lists... 69%
Reading package lists... 75%
Reading package lists... 75%
Reading package lists... 80%
Reading package lists... 80%
Reading package lists... 80%
Reading package lists... 80%
Reading package lists... 80%
Reading package lists... 80%
Reading package lists... 84%
Reading package lists... 84%
Reading package lists... 86%
Reading package lists... 86%
Reading package lists... 86%
Reading package lists... 86%
Reading package lists... 86%
Reading package lists... 86%
Reading package lists... 86%
Reading package lists... 86%
Reading package lists... 86%
Reading package lists... 86%
Reading package lists... 86%
Reading package lists... 86%
Reading package lists... 86%
Reading package lists... 86%
Reading package lists... 90%
Reading package lists... 90%
Reading package lists... 94%
Reading package lists... 94%
Reading package lists... 94%
Reading package lists... 94%
Reading package lists... 94%
Reading package lists... 94%
Reading package lists... 97%
Reading package lists... 97%
Reading package lists... 98%
Reading package lists... 98%
Reading package lists... 98%
Reading package lists... 98%
Reading package lists... 98%
Reading package lists... 98%
Reading package lists... 98%
Reading package lists... 98%
Reading package lists... 98%
Reading package lists... 98%
Reading package lists... 99%
Reading package lists... 99%
Reading package lists... Done
Reading package lists... 0%
Reading package lists... 100%
Reading package lists... Done
Building dependency tree... 0%
Building dependency tree... 0%
Building dependency tree... 50%
Building dependency tree... 50%
Building dependency tree
Reading state information... 0%
Reading state information... 1%
Reading state information... Done
python3-pip is already the newest version (8.1.1-2ubuntu0.4).
python3.6-dev is already the newest version (3.6.7-1~16.04.york3).
python3.6-venv is already the newest version (3.6.7-1~16.04.york3).
python3.6 is already the newest version (3.6.7-1~16.04.york3).
The following package was automatically installed and is no longer required:
grub-pc-bin
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 20 not upgraded.
Done installing Python 3.6
/usr/bin/psql
Postgres already installed
Restarting Postgres
\u001b[0;1;31mWarning:\u001b[0m timeless_pg.service changed on disk. Run 'systemctl daemon-reload' to reload units.
Job for timeless_pg.service failed because the control process exited with error code. See "systemctl status timeless_pg.service" and "journalctl -xe" for details.
/usr/bin/jq
jq already installed
parse error: Invalid numeric literal at line 1, column 5
4fbfe68897f1f3834a1012042de729f7f1df010dbac6982bee9d0879b4fdc24a
'pid' file is absent, something was broken
@rultor deploy
A simple issue where to try deployment