Open snemir opened 3 years ago
Testing while working on https://metworx.atlassian.net/wiki/spaces/~648806656/pages/edit-v2/299204721
Output from test run of the setup_miniconda.sh script
sergeyn@ip-10-192-41-37:~/TFLGenerator/script$ ./setup_miniconda.sh
+ id -u
+ [ 1003 -ne 0 ]
+ id -un
+ echo Switching from sergeyn to root
Switching from sergeyn to root
+ exec sudo ./setup_miniconda.sh
+ id -u
+ [ 0 -ne 0 ]
+ export MINICONDA_VERSION=py37_4.8.3
+ export PYTHON_VERSION=3.7.7
+ curl -O https://repo.anaconda.com/miniconda/Miniconda3-py37_4.8.3-Linux-x86_64.sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 84.7M 100 84.7M 0 0 172M 0 --:--:-- --:--:-- --:--:-- 172M
+ bash Miniconda3-py37_4.8.3-Linux-x86_64.sh -bp /opt/python/3.7.7
PREFIX=/opt/python/3.7.7
Unpacking payload ...
Collecting package metadata (current_repodata.json): done
Solving environment: done
## Package Plan ##
environment location: /opt/python/3.7.7
added / updated specs:
- _libgcc_mutex==0.1=main
- ca-certificates==2020.1.1=0
- certifi==2020.4.5.1=py37_0
- cffi==1.14.0=py37he30daa8_1
- chardet==3.0.4=py37_1003
- conda-package-handling==1.6.1=py37h7b6447c_0
- conda==4.8.3=py37_0
- cryptography==2.9.2=py37h1ba5d50_0
- idna==2.9=py_1
- ld_impl_linux-64==2.33.1=h53a641e_7
- libedit==3.1.20181209=hc058e9b_0
- libffi==3.3=he6710b0_1
- libgcc-ng==9.1.0=hdf63c60_0
- libstdcxx-ng==9.1.0=hdf63c60_0
- ncurses==6.2=he6710b0_1
- openssl==1.1.1g=h7b6447c_0
- pip==20.0.2=py37_3
- pycosat==0.6.3=py37h7b6447c_0
- pycparser==2.20=py_0
- pyopenssl==19.1.0=py37_0
- pysocks==1.7.1=py37_0
- python==3.7.7=hcff3b4d_5
- readline==8.0=h7b6447c_0
- requests==2.23.0=py37_0
- ruamel_yaml==0.15.87=py37h7b6447c_0
- setuptools==46.4.0=py37_0
- six==1.14.0=py37_0
- sqlite==3.31.1=h62c20be_1
- tk==8.6.8=hbc83047_0
- tqdm==4.46.0=py_0
- urllib3==1.25.8=py37_0
- wheel==0.34.2=py37_0
- xz==5.2.5=h7b6447c_0
- yaml==0.1.7=had09818_2
- zlib==1.2.11=h7b6447c_3
The following NEW packages will be INSTALLED:
_libgcc_mutex pkgs/main/linux-64::_libgcc_mutex-0.1-main
ca-certificates pkgs/main/linux-64::ca-certificates-2020.1.1-0
certifi pkgs/main/linux-64::certifi-2020.4.5.1-py37_0
cffi pkgs/main/linux-64::cffi-1.14.0-py37he30daa8_1
chardet pkgs/main/linux-64::chardet-3.0.4-py37_1003
conda pkgs/main/linux-64::conda-4.8.3-py37_0
conda-package-han~ pkgs/main/linux-64::conda-package-handling-1.6.1-py37h7b6447c_0
cryptography pkgs/main/linux-64::cryptography-2.9.2-py37h1ba5d50_0
idna pkgs/main/noarch::idna-2.9-py_1
ld_impl_linux-64 pkgs/main/linux-64::ld_impl_linux-64-2.33.1-h53a641e_7
libedit pkgs/main/linux-64::libedit-3.1.20181209-hc058e9b_0
libffi pkgs/main/linux-64::libffi-3.3-he6710b0_1
libgcc-ng pkgs/main/linux-64::libgcc-ng-9.1.0-hdf63c60_0
libstdcxx-ng pkgs/main/linux-64::libstdcxx-ng-9.1.0-hdf63c60_0
ncurses pkgs/main/linux-64::ncurses-6.2-he6710b0_1
openssl pkgs/main/linux-64::openssl-1.1.1g-h7b6447c_0
pip pkgs/main/linux-64::pip-20.0.2-py37_3
pycosat pkgs/main/linux-64::pycosat-0.6.3-py37h7b6447c_0
pycparser pkgs/main/noarch::pycparser-2.20-py_0
pyopenssl pkgs/main/linux-64::pyopenssl-19.1.0-py37_0
pysocks pkgs/main/linux-64::pysocks-1.7.1-py37_0
python pkgs/main/linux-64::python-3.7.7-hcff3b4d_5
readline pkgs/main/linux-64::readline-8.0-h7b6447c_0
requests pkgs/main/linux-64::requests-2.23.0-py37_0
ruamel_yaml pkgs/main/linux-64::ruamel_yaml-0.15.87-py37h7b6447c_0
setuptools pkgs/main/linux-64::setuptools-46.4.0-py37_0
six pkgs/main/linux-64::six-1.14.0-py37_0
sqlite pkgs/main/linux-64::sqlite-3.31.1-h62c20be_1
tk pkgs/main/linux-64::tk-8.6.8-hbc83047_0
tqdm pkgs/main/noarch::tqdm-4.46.0-py_0
urllib3 pkgs/main/linux-64::urllib3-1.25.8-py37_0
wheel pkgs/main/linux-64::wheel-0.34.2-py37_0
xz pkgs/main/linux-64::xz-5.2.5-h7b6447c_0
yaml pkgs/main/linux-64::yaml-0.1.7-had09818_2
zlib pkgs/main/linux-64::zlib-1.2.11-h7b6447c_3
Preparing transaction: done
Executing transaction: done
installation finished.
+ /opt/python/3.7.7/bin/pip install virtualenv
WARNING: The directory '/data/home/sergeyn/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting virtualenv
Downloading virtualenv-20.4.7-py2.py3-none-any.whl (7.2 MB)
|████████████████████████████████| 7.2 MB 20.5 MB/s
Collecting filelock<4,>=3.0.0
Downloading filelock-3.0.12-py3-none-any.whl (7.6 kB)
Collecting distlib<1,>=0.3.1
Downloading distlib-0.3.2-py2.py3-none-any.whl (338 kB)
|████████████████████████████████| 338 kB 84.8 MB/s
Collecting appdirs<2,>=1.4.3
Downloading appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
Requirement already satisfied: six<2,>=1.9.0 in /opt/python/3.7.7/lib/python3.7/site-packages (from virtualenv) (1.14.0)
Collecting importlib-metadata>=0.12; python_version < "3.8"
Downloading importlib_metadata-4.5.0-py3-none-any.whl (17 kB)
Collecting typing-extensions>=3.6.4; python_version < "3.8"
Downloading typing_extensions-3.10.0.0-py3-none-any.whl (26 kB)
Collecting zipp>=0.5
Downloading zipp-3.4.1-py3-none-any.whl (5.2 kB)
Installing collected packages: filelock, distlib, appdirs, typing-extensions, zipp, importlib-metadata, virtualenv
Successfully installed appdirs-1.4.4 distlib-0.3.2 filelock-3.0.12 importlib-metadata-4.5.0 typing-extensions-3.10.0.0 virtualenv-20.4.7 zipp-3.4.1
+ rm -rf Miniconda3-py37_4.8.3-Linux-x86_64.sh
+ grep -qF Python /etc/rstudio-connect/rstudio-connect.gcfg
+ rs=1
+ [ 1 -ne 0 ]
+ cat
+ systemctl restart rstudio-connect
sergeyn@ip-10-192-41-37:~/TFLGenerator/script$ cat /etc/rstudio-connect/rstudio-connect.gcfg
; RStudio Connect configuration file
[Server]
AuditLogFormat = json
EmailProvider = Sendmail
SenderEmail = no-reply-rstudio-connect@metrumrg.com
EmailSubjectPrefix = [RStudio-Connect]:
ViewerKiosk = false
HideEmailAddresses = false
MailAll = false
ContentTypeSniffing = false
Address = https://i-0b9074061ecf23bf9.metworx.com/rsconnect
DataDir = /data/rsconnect
[HTTP]
Listen = :3939
NoWarning = true
[Authentication]
Provider = password
Lifetime = 72h
Inactivity = 8h
[Licensing]
LicenseType = local
RemoteRetryFrequency = 10s
ExpirationEmail = true
ExpirationUIWarning = true
[Python]
Enabled = true
Executable = /opt/python/3.7.7/bin/python
sergeyn@ip-10-192-41-37:~/TFLGenerator/script$ /opt/python/3.7.7/bin/python --version
Python 3.7.7
I'm going to deploy from this branch for the purpose of testing.
Adding changes per https://metworx.atlassian.net/wiki/spaces/~918206239/pages/296091845/rstudio+connect+python+investigation#app-level