こちらを参考に
https://www.rosehosting.com/blog/how-to-install-odoo-13-on-centos-8/
Step 1: Connect to Your Server
Before we begin, you need to connect to your server via SSH as the root user. To do this, use the following command:
SSHで接続
なんでもいいでしょうけど、TeraTermで接続します。
Step 2: Update the System
We will update the server with the command:
UPDATE 済なので省略
Step 3: Install Python packages and Odoo Dependencies
Firstly, we will install Python 3 by executing the following command:
1 |
dnf install python36 python36-devel |
dnf となってるけど
1 |
yum -y install python36 python36-devel |
で実行
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# yum -y install python36 python36-devel Last metadata expiration check: 0:00:33 ago on Thu Jan 7 21:29:17 2021. Package python36-3.6.8-2.module_el8.3.0+562+e162826a.x86_64 is already installed. Dependencies resolved. ================================================================================ Package Arch Version Repo Size ================================================================================ Installing: python36-devel x86_64 3.6.8-2.module_el8.3.0+562+e162826a appstream 16 k Installing dependencies: platform-python-devel x86_64 3.6.8-31.el8 appstream 247 k python-rpm-macros noarch 3-39.el8 appstream 14 k python3-rpm-generators noarch 5-6.el8 appstream 24 k Transaction Summary ================================================================================ Install 4 Packages Total download size: 303 k Installed size: 767 k Downloading Packages: [=== ] --- B/s | 0 B --:-- ETA 100% [====================] 1.9 kB/s | 679 B 00:00 ETA(1/4): platform-pyth 0% [ ] --- B/s | 0 B --:-- ETA(1/4): python3-rpm-generators-5-6.el8.noarch.rp 257 kB/s | 24 kB 00:00 (2-3/4): python-rpm- 23% [====- ] 744 kB/s | 71 kB 00:00 ETA(2/4): python-rpm-macros-3-39.el8.noarch.rpm 139 kB/s | 14 kB 00:00 (3-4/4): python36-de 23% [====- ] 743 kB/s | 72 kB 00:00 ETA(3/4): python36-devel-3.6.8-2.module_el8.3.0+56 717 kB/s | 16 kB 00:00 (4/4): platform-pyth 37% [=======- ] 749 kB/s | 113 kB 00:00 ETA(4/4): platform-python-devel-3.6.8-31.el8.x86_6 1.3 MB/s | 247 kB 00:00 -------------------------------------------------------------------------------- Total 555 kB/s | 303 kB 00:00 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : [============ ] 1/1 Preparing : [========================= ] 1/1 Preparing : [====================================== ] 1/1 Preparing : 1/1 Installing : python3-rpm-generators-5- [ ] 1/4 Installing : python3-rpm-generators-5- [===== ] 1/4 Installing : python3-rpm-generators-5- [==================== ] 1/4 Installing : python3-rpm-generators-5- [========================= ] 1/4 Installing : python3-rpm-generators-5-6.el8.noarch 1/4 Installing : python-rpm-macros-3-39.el [ ] 2/4 Installing : python-rpm-macros-3-39.el [======= ] 2/4 Installing : python-rpm-macros-3-39.el [======================== ] 2/4 Installing : python-rpm-macros-3-39.el8.noarch 2/4 Installing : platform-python-devel-3.6 [ ] 3/4 Installing : platform-python-devel-3.6 [= ] 3/4 Installing : platform-python-devel-3.6 [== ] 3/4 Installing : platform-python-devel-3.6 [=== ] 3/4 Installing : platform-python-devel-3.6 [==== ] 3/4 Installing : platform-python-devel-3.6 [===== ] 3/4 Installing : platform-python-devel-3.6 [====== ] 3/4 Installing : platform-python-devel-3.6 [======= ] 3/4 Installing : platform-python-devel-3.6 [======== ] 3/4 Installing : platform-python-devel-3.6 [========= ] 3/4 Installing : platform-python-devel-3.6 [========== ] 3/4 Installing : platform-python-devel-3.6 [=========== ] 3/4 Installing : platform-python-devel-3.6 [============ ] 3/4 Installing : platform-python-devel-3.6 [============= ] 3/4 Installing : platform-python-devel-3.6 [============== ] 3/4 Installing : platform-python-devel-3.6 [=============== ] 3/4 Installing : platform-python-devel-3.6 [================ ] 3/4 Installing : platform-python-devel-3.6 [================= ] 3/4 Installing : platform-python-devel-3.6 [================== ] 3/4 Installing : platform-python-devel-3.6 [=================== ] 3/4 Installing : platform-python-devel-3.6 [==================== ] 3/4 Installing : platform-python-devel-3.6 [===================== ] 3/4 Installing : platform-python-devel-3.6 [====================== ] 3/4 Installing : platform-python-devel-3.6 [======================= ] 3/4 Installing : platform-python-devel-3.6 [======================== ] 3/4 Installing : platform-python-devel-3.6 [========================= ] 3/4 Installing : platform-python-devel-3.6.8-31.el8.x86_64 3/4 Installing : python36-devel-3.6.8-2.mo [ ] 4/4 Installing : python36-devel-3.6.8-2.mo [= ] 4/4 Installing : python36-devel-3.6.8-2.mo [== ] 4/4 Installing : python36-devel-3.6.8-2.mo [========================= ] 4/4 Installing : python36-devel-3.6.8-2.module_el8.3.0+562+e162826a.x 4/4 Running scriptlet: python36-devel-3.6.8-2.module_el8.3.0+562+e162826a.x 4/4 Verifying : platform-python-devel-3.6.8-31.el8.x86_64 1/4 Verifying : python-rpm-macros-3-39.el8.noarch 2/4 Verifying : python3-rpm-generators-5-6.el8.noarch 3/4 Verifying : python36-devel-3.6.8-2.module_el8.3.0+562+e162826a.x 4/4 Installed: platform-python-devel-3.6.8-31.el8.x86_64 python-rpm-macros-3-39.el8.noarch python3-rpm-generators-5-6.el8.noarch python36-devel-3.6.8-2.module_el8.3.0+562+e162826a.x86_64 Complete! |
完了です
With the following command, we will install all the tools and dependencies we need to build the latest Odoo 13.
以下のツールも必要なのでインストール
1 |
yum -y install git gcc wget nodejs libxslt-devel bzip2-devel openldap-devel libjpeg-devel freetype-devel |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# yum -y install git gcc wget nodejs libxslt-devel bzip2--devel openldap-devel libjpeg-devel freetype-devel Failed to set locale, defaulting to C.UTF-8 Last metadata expiration check: 0:24:47 ago on Thu Jan 7 21:29:17 2021. Package wget-1.19.5-10.el8.x86_64 is already installed. Dependencies resolved. ================================================================================ Package Arch Version Repo Size ================================================================================ Installing: bzip2-devel x86_64 1.0.6-26.el8 baseos 224 k freetype-devel x86_64 2.9.1-4.el8_3.1 baseos 464 k gcc x86_64 8.3.1-5.1.el8 appstream 23 M ~省略~ nodejs-1:10.21.0-3.module_el8.2.0+391+8da3adc6.x86_64 nodejs-full-i18n-1:10.21.0-3.module_el8.2.0+391+8da3adc6.x86_64 npm-1:6.14.4-1.10.21.0.3.module_el8.2.0+391+8da3adc6.x86_64 openldap-devel-2.4.46-15.el8.x86_64 perl-Error-1:0.17025-2.el8.noarch perl-Git-2.27.0-1.el8.noarch xz-devel-5.2.4-3.el8.x86_64 zlib-devel-1.2.11-16.el8_2.x86_64 Complete! |
Step 4: Create an Odoo User
With the following command, we will create a new system user and group that we need to run the Odoo service. The home directory we will define in the /opt/odoo
directory.
Odooユーザーを作成します
1 |
useradd -m -U -r -d /opt/odoo -s /bin/bash odoo |
完了
Step 5: Install and Configure PostgreSQL
Install PostgreSQL by executing:
PostgreSQLのインストール
1 |
yum -y install postgresql postgresql-server postgresql-contrib |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
# yum -y install postgresql postgresql-server postgresql-contrib Failed to set locale, defaulting to C.UTF-8 Last metadata expiration check: 0:43:23 ago on Thu Jan 7 21:29:17 2021. Dependencies resolved. ================================================================================ Package Arch Version Repo Size ================================================================================ Installing: postgresql x86_64 10.14-1.module_el8.2.0+487+53cc39ce appstream 1.5 M postgresql-contrib x86_64 10.14-1.module_el8.2.0+487+53cc39ce appstream 804 k postgresql-server x86_64 10.14-1.module_el8.2.0+487+53cc39ce appstream 5.0 M Installing dependencies: libpq x86_64 12.4-1.el8_2 appstream 195 k uuid x86_64 1.6.2-42.el8 appstream 63 k Enabling module streams: postgresql 10 Transaction Summary ================================================================================ Install 5 Packages Total download size: 7.6 M Installed size: 29 M Downloading Packages: (1/5): libpq-12.4-1.el8_2.x86_64.rpm 1.1 MB/s | 195 kB 00:00 (2/5): postgresql-contrib-10.14-1.module_el8.2. 1.8 MB/s | 804 kB 00:00 (3/5): uuid-1.6.2-42.el8.x86_64.rpm 693 kB/s | 63 kB 00:00 (4/5): postgresql-10.14-1.module_el8.2.0+487+53 2.5 MB/s | 1.5 MB 00:00 (5/5): postgresql-server-10.14-1.module_el8.2.0 6.0 MB/s | 5.0 MB 00:00 -------------------------------------------------------------------------------- Total 4.4 MB/s | 7.6 MB 00:01 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : libpq-12.4-1.el8_2.x86_64 1/5 Installing : postgresql-10.14-1.module_el8.2.0+487+53cc39ce.x86_6 2/5 Installing : uuid-1.6.2-42.el8.x86_64 3/5 Running scriptlet: uuid-1.6.2-42.el8.x86_64 3/5 Installing : postgresql-contrib-10.14-1.module_el8.2.0+487+53cc39 4/5 Running scriptlet: postgresql-server-10.14-1.module_el8.2.0+487+53cc39c 5/5 Installing : postgresql-server-10.14-1.module_el8.2.0+487+53cc39c 5/5 Running scriptlet: postgresql-server-10.14-1.module_el8.2.0+487+53cc39c 5/5 Verifying : libpq-12.4-1.el8_2.x86_64 1/5 Verifying : postgresql-10.14-1.module_el8.2.0+487+53cc39ce.x86_6 2/5 Verifying : postgresql-contrib-10.14-1.module_el8.2.0+487+53cc39 3/5 Verifying : postgresql-server-10.14-1.module_el8.2.0+487+53cc39c 4/5 Verifying : uuid-1.6.2-42.el8.x86_64 5/5 Installed: libpq-12.4-1.el8_2.x86_64 postgresql-10.14-1.module_el8.2.0+487+53cc39ce.x86_64 postgresql-contrib-10.14-1.module_el8.2.0+487+53cc39ce.x86_64 postgresql-server-10.14-1.module_el8.2.0+487+53cc39ce.x86_64 uuid-1.6.2-42.el8.x86_64 Complete! |
Then initialize the database:
ポスグレの初期化を行います
1 2 3 4 5 |
# /usr/bin/postgresql-setup initdb WARNING: using obsoleted argument syntax, try --help WARNING: arguments transformed to: postgresql-setup --initdb --unit postgresql * Initializing database in '/var/lib/pgsql/data' ERROR: Initializing database failed, possibly see /var/lib/pgsql/initdb_postgresql.log |
あれ?エラーです
–initdb にして再実行
1 2 3 4 |
# /usr/bin/postgresql-setup --initdb * Initializing database in '/var/lib/pgsql/data' mkdir: cannot create directory '/var/lib/pgsql/data/pg_log': File exists ERROR: Initializing database failed, possibly see /var/lib/pgsql/initdb_postgresql.log |
エラー?
エラーログ
1 2 3 4 5 6 7 8 |
The files belonging to this database system will be owned by user "postgres". This user must also own the server process. initdb: invalid locale settings; check LANG and LC_* environment variables The files belonging to this database system will be owned by user "postgres". This user must also own the server process. initdb: invalid locale settings; check LANG and LC_* environment variables |
postgresユーザーがとか言ってるけど
1 2 3 |
#cat /etc/passwd postgres:x:26:26:PostgreSQL Server:/var/lib/pgsql:/bin/bash |
いてます
LANGがうんぬんと
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# locale locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory LANG=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL= |
ここから ごちゃごちゃ
結局
1 |
# su - postgres |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
bash-4.4$ initdb --encoding=UTF8 --no-locale -D /var/lib/pgsql/data The files belonging to this database system will be owned by user "postgres". This user must also own the server process. The database cluster will be initialized with locale "C". The default text search configuration will be set to "english". Data page checksums are disabled. initdb: directory "/var/lib/pgsql/data" exists but is not empty If you want to create a new database system, either remove or empty the directory "/var/lib/pgsql/data" or run initdb with an argument other than "/var/lib/pgsql/data". bash-4.4$ initdb --encoding=UTF8 --no-locale -D /var/lib/pgsql/data The files belonging to this database system will be owned by user "postgres". This user must also own the server process. The database cluster will be initialized with locale "C". The default text search configuration will be set to "english". Data page checksums are disabled. fixing permissions on existing directory /var/lib/pgsql/data ... ok creating subdirectories ... ok selecting default max_connections ... 100 selecting default shared_buffers ... 128MB selecting default timezone ... Asia/Tokyo selecting dynamic shared memory implementation ... posix creating configuration files ... ok running bootstrap script ... ok performing post-bootstrap initialization ... ok syncing data to disk ... ok WARNING: enabling "trust" authentication for local connections You can change this by editing pg_hba.conf or using the option -A, or --auth-local and --auth-host, the next time you run initdb. Success. You can now start the database server using: pg_ctl -D /var/lib/pgsql/data -l logfile start |
でとりあえず initDB完了
自動起動の設定
1 |
systemctl enable postgresql |
Now, we’re going to create a new PostgreSQL user with the same name as the Odoo user system we created earlier in this tutorial.
odoo のポスグレユーザーを作成
1 |
su - postgres -c "createuser -s odoo" |
Step 6: Install Wkhtmltopdf
Odoo requires the wkhtmltopdf
package, which is an open-source tool that converts the HTML format to PDF so that Odoo can print PDF reports. We will install version 0.12.5, which is the latest version at the time this tutorial was written. The wkhtmltopdf package is not available in the official CentOS 8 repositories, so we will download and install it with the following commands:
html to pdf のインストール
wgetします
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
#cd /opt/ && wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox-0.12.6-1.centos8.x86_64.rpm --2021-01-09 07:10:18-- https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox-0.12.6-1.centos8.x86_64.rpm Resolving github.com (github.com)... 52.69.186.44 Connecting to github.com (github.com)|52.69.186.44|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/131323182/4c2dd800-ab8e-11ea-95aa-09875726406d?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210108%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210108T221020Z&X-Amz-Expires=300&X-Amz-Signature=53e866978754ca6709680a8dcd5077c9109e1f56475810a1e8711d129323aa87&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=131323182&response-content-disposition=attachment%3B%20filename%3Dwkhtmltox-0.12.6-1.centos8.x86_64.rpm&response-content-type=application%2Foctet-stream [following] --2021-01-09 07:10:18-- https://github-production-release-asset-2e65be.s3.amazonaws.com/131323182/4c2dd800-ab8e-11ea-95aa-09875726406d?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210108%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210108T221020Z&X-Amz-Expires=300&X-Amz-Signature=53e866978754ca6709680a8dcd5077c9109e1f56475810a1e8711d129323aa87&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=131323182&response-content-disposition=attachment%3B%20filename%3Dwkhtmltox-0.12.6-1.centos8.x86_64.rpm&response-content-type=application%2Foctet-stream Resolving github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)... 52.217.78.20 Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|52.217.78.20|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 16237416 (15M) [application/octet-stream] Saving to: 'wkhtmltox-0.12.6-1.centos8.x86_64.rpm' wkhtmltox-0.12.6-1. 100%[===================>] 15.48M 5.84MB/s in 2.7s 2021-01-09 07:10:22 (5.84 MB/s) - 'wkhtmltox-0.12.6-1.centos8.x86_64.rpm' saved [16237416/16237416] |
インストールします
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
# dnf localinstall wkhtmltox-0.12.6-1.centos8.x86_64.rpm Failed to set locale, defaulting to C.UTF-8 Last metadata expiration check: 0:41:53 ago on Sat Jan 9 06:34:31 2021. Dependencies resolved. ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: wkhtmltox x86_64 1:0.12.6-1.centos8 @commandline 15 M Installing dependencies: dejavu-fonts-common noarch 2.35-6.el8 baseos 74 k dejavu-sans-fonts noarch 2.35-6.el8 baseos 1.5 M fontconfig x86_64 2.13.1-3.el8 baseos 275 k fontpackages-filesystem noarch 1.44-22.el8 baseos 16 k libX11 x86_64 1.6.8-3.el8 appstream 611 k libX11-common noarch 1.6.8-3.el8 appstream 158 k libXau x86_64 1.0.9-3.el8 appstream 37 k libXext x86_64 1.3.4-1.el8 appstream 45 k libXrender x86_64 0.9.10-7.el8 appstream 33 k libfontenc x86_64 1.1.3-8.el8 appstream 37 k libxcb x86_64 1.13.1-1.el8 appstream 229 k ttmkfdir x86_64 3.0.9-54.el8 appstream 62 k xorg-x11-font-utils x86_64 1:7.5-40.el8 appstream 103 k xorg-x11-fonts-75dpi noarch 7.5-19.el8 appstream 2.8 M xorg-x11-fonts-Type1 noarch 7.5-19.el8 appstream 522 k Transaction Summary ================================================================================ Install 16 Packages Total size: 22 M Total download size: 6.4 M Installed size: 139 M Is this ok [y/N]: y Downloading Packages: (1/15): libXau-1.0.9-3.el8.x86_64.rpm 329 kB/s | 37 kB 00:00 (2/15): libXext-1.3.4-1.el8.x86_64.rpm 1.1 MB/s | 45 kB 00:00 (3/15): libXrender-0.9.10-7.el8.x86_64.rpm 1.5 MB/s | 33 kB 00:00 (4/15): libX11-common-1.6.8-3.el8.noarch.rpm 788 kB/s | 158 kB 00:00 (5/15): libfontenc-1.1.3-8.el8.x86_64.rpm 929 kB/s | 37 kB 00:00 (6/15): ttmkfdir-3.0.9-54.el8.x86_64.rpm 1.5 MB/s | 62 kB 00:00 (7/15): libX11-1.6.8-3.el8.x86_64.rpm 2.1 MB/s | 611 kB 00:00 (8/15): xorg-x11-font-utils-7.5-40.el8.x86_64.r 1.7 MB/s | 103 kB 00:00 (9/15): libxcb-1.13.1-1.el8.x86_64.rpm 1.8 MB/s | 229 kB 00:00 (10/15): dejavu-fonts-common-2.35-6.el8.noarch. 752 kB/s | 74 kB 00:00 (11/15): xorg-x11-fonts-Type1-7.5-19.el8.noarch 2.5 MB/s | 522 kB 00:00 (12/15): xorg-x11-fonts-75dpi-7.5-19.el8.noarch 5.5 MB/s | 2.8 MB 00:00 (13/15): fontconfig-2.13.1-3.el8.x86_64.rpm 810 kB/s | 275 kB 00:00 (14/15): fontpackages-filesystem-1.44-22.el8.no 194 kB/s | 16 kB 00:00 (15/15): dejavu-sans-fonts-2.35-6.el8.noarch.rp 3.2 MB/s | 1.5 MB 00:00 -------------------------------------------------------------------------------- Total 2.6 MB/s | 6.4 MB 00:02 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : fontpackages-filesystem-1.44-22.el8.noarch 1/16 Installing : dejavu-fonts-common-2.35-6.el8.noarch 2/16 Installing : dejavu-sans-fonts-2.35-6.el8.noarch 3/16 Installing : fontconfig-2.13.1-3.el8.x86_64 4/16 Running scriptlet: fontconfig-2.13.1-3.el8.x86_64 4/16 Installing : ttmkfdir-3.0.9-54.el8.x86_64 5/16 Installing : libfontenc-1.1.3-8.el8.x86_64 6/16 Installing : xorg-x11-font-utils-1:7.5-40.el8.x86_64 7/16 Installing : xorg-x11-fonts-75dpi-7.5-19.el8.noarch 8/16 Running scriptlet: xorg-x11-fonts-75dpi-7.5-19.el8.noarch 8/16 Installing : xorg-x11-fonts-Type1-7.5-19.el8.noarch 9/16 Running scriptlet: xorg-x11-fonts-Type1-7.5-19.el8.noarch 9/16 Installing : libXau-1.0.9-3.el8.x86_64 10/16 Installing : libxcb-1.13.1-1.el8.x86_64 11/16 Installing : libX11-common-1.6.8-3.el8.noarch 12/16 Installing : libX11-1.6.8-3.el8.x86_64 13/16 Installing : libXext-1.3.4-1.el8.x86_64 14/16 Installing : libXrender-0.9.10-7.el8.x86_64 15/16 Installing : wkhtmltox-1:0.12.6-1.cen [======= ] 16/16Killed |
最初にlocaleセットで失敗?
気にしないで先に行きます なんか後ででるかも(ーー:)
Step 7: Install and Configure Odoo 13
In this step, we will clone the branch of Odoo 13.0 to the server and use a virtualenv that will create an isolated Python environment for the Odoo 13 instance. But first, we will switch to the Odoo user which we created in the previous steps.
やっとodooインストール
1 |
su - odoo |
1 2 3 4 |
# su - odoo Last failed login: Thu Jan 7 17:09:14 JST 2021 from 165.227.161.121 on ssh:notty There were 12 failed login attempts since the last successful login. [odoo@ ~]$ |
なんか、ログイン失敗してるぞ!とかいってるけで su は出来てるみたいなので
git clone
1 2 3 4 5 6 7 8 9 10 |
$ git clone https://www.github.com/odoo/odoo --depth 1 --branch 13.0 /opt/odoo/odoo13 Cloning into '/opt/odoo/odoo13'... warning: redirecting to https://github.com/odoo/odoo.git/ remote: Enumerating objects: 28592, done. remote: Counting objects: 100% (28592/28592), done. remote: Compressing objects: 100% (23662/23662), done. remote: Total 28592 (delta 8164), reused 12770 (delta 4040), pack-reused 0 Receiving objects: 100% (28592/28592), 122.58 MiB | 7.68 MiB/s, done. Resolving deltas: 100% (8164/8164), done. Killedng files: 54% (13919/25631) |
With the command below we will create a new virtual environment that we will use for the new Odoo 13 instance.
仮想環境の作成
1 |
cd /opt/odoo && python3 -m venv odoo13-venv |
Once the virtual environment is created, we can activate it with this next command:
アクティブ化
1 2 |
[odoo@v133-18 ~]$ source odoo13-venv/bin/activate (odoo13-venv) [odoo@v133-18 ~]$ |
We are now inside the virtual environment, where we can begin with the installation of the required Python modules for the Odoo installation:
1 2 3 4 |
(odoo13-venv) [odoo@v133-18 ~]$ pip3 install -r odoo13/requirements.txt Could not open requirements file: [Errno 2] No such file or directory: 'odoo13/requirements.txt' You are using pip version 9.0.3, however version 20.3.3 is available. You should consider upgrading via the 'pip install --upgrade pip' command. |
When the installation of the Python modules is complete, we can deactivate the virtual environment and return to the root user by using these commands:
root にもどる
1 2 |
(odoo13-venv) [odoo@v133-18 ~]$ deactivate && exit logout |
The following few commands are optional and can be used if you want to use custom modules for the Odoo instance. The best practice is to install custom Odoo modules in a separated directory. Therefore we will create a new directory for the custom modules and change its ownership to the ‘odoo’ user.
以下はオプションですがと。
カスタムモジュール用のディレクトリ作成
1 2 |
[root@v133-18 opt]# mkdir /var/log/odoo13 && touch /var/log/odoo13/odoo.log [root@v133-18 opt]# chown -R odoo: /var/log/odoo13/ |
The next step is to create a configuration file for the new Odoo instance.
インスタンスを作成
1 2 |
[root@v133-18 opt]# nano /etc/odoo.conf -bash: nano: command not found |
ん?
nano はエディタらしいので
1 |
vi /etc/odoo.conf |
1 2 3 4 5 6 7 8 9 10 11 12 |
[options] ; This is the password that allows database operations: admin_passwd = master_password db_host = False db_port = False db_user = odoo db_password = False xmlrpc_port = 8069 ; longpolling_port = 8072 logfile = /var/log/odoo13/odoo.log logrotate = True addons_path = /opt/odoo/odoo13/addons,/opt/odoo/odoo13-custom-addons |
Step 8: Create a systemd Unit File
Now that our Odoo installation is complete, we will create a service unit file so that we can run Odoo as a service. This allows us to run Odoo in the background as a service as well as manage it, just like most other processes on the server.
Create a new odoo13.service
file:
1 |
vi /etc/systemd/system/odoo13.service |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
[Unit] Description=Odoo13 #Requires=postgresql-10.6.service #After=network.target postgresql-10.6.service [Service] Type=simple SyslogIdentifier=odoo13 PermissionsStartOnly=true User=odoo Group=odoo ExecStart=/opt/odoo/odoo13-venv/bin/python3 /opt/odoo/odoo13/odoo-bin -c /etc/odoo.conf StandardOutput=journal+console [Install] WantedBy=multi-user.target |
Once the file is saved and closed, we will reload the daemon so it can acknowledge the newly created unit in systemd.
リロード
1 |
systemctl daemon-reload |
Finally, we can use the following commands to start and enable on boot our new Odoo instance:
odooサービスの起動と自動起動の設定
1 2 3 |
[root@v133-18 opt]# systemctl start odoo13 [root@v133-18 opt]# systemctl enable odoo13 Created symlink /etc/systemd/system/multi-user.target.wants/odoo13.service → /etc/systemd/system/odoo13.service. |
やっと終わり
We can run the status command so that we can check if the new Odoo instance is active and running:
いよいよ、実行確認。ドキドキ(@@!
1 2 3 4 5 6 7 8 9 10 |
[root@v133-18-203-152 opt]# systemctl status odoo13.service ● odoo13.service - Odoo13 Loaded: loaded (/etc/systemd/system/odoo13.service; enabled; vendor preset: > Active: failed (Result: exit-code) since Sat 2021-01-09 08:27:14 JST; 3min 0> Main PID: 211791 (code=exited, status=2) Jan 09 08:27:14 v133-18-203-152.vir.kagoya.net systemd[1]: Started Odoo13. Jan 09 08:27:14 v133-18-203-152.vir.kagoya.net systemd[1]: odoo13.service: Main> Jan 09 08:27:14 v133-18-203-152.vir.kagoya.net systemd[1]: odoo13.service: Fail> lines 1-8/8 (END) |
ガーーーーーーン!!!
failedです(ーー;)
どーすんのこれ?
とりあえず CentOSを再起動してみると
messages ログ
1 2 3 4 |
systemd[1]: Started Odoo13. odoo13[211791]: /opt/odoo/odoo13-venv/bin/python3: can't open file '/opt/odoo/odoo13/odoo-bin': [Errno 2] No such file or directory systemd[1]: odoo13.service: Main process exited, code=exited, status=2/INVALIDARGUMENT systemd[1]: odoo13.service: Failed with result 'exit-code'. |
(@@
/opt/odoo/odoo13/odoo-bin
がないと なんですと!!!
pip3 install -r odoo13/requirements.txt
が失敗してましたね
1 2 3 4 |
(odoo13-venv) [odoo@v133-18 ~]$ pip3 install -r odoo13/requirements.txt Could not open requirements file: [Errno 2] No such file or directory: 'odoo13/requirements.txt' You are using pip version 9.0.3, however version 20.3.3 is available. You should consider upgrading via the 'pip install --upgrade pip' command. |
その前の git がうまくいってないっす。
そっからやり直し
/opt/odoo
の作成から
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
[root@v133-18 opt]# ls odoo wkhtmltox-0.12.6-1.centos8.x86_64.rpm [root@v133-18 opt]# mv odoo odoo_fail [root@v133-18 opt]# ls odoo_fail wkhtmltox-0.12.6-1.centos8.x86_64.rpm [root@v133-18 opt]# mkdir odoo [root@v133-18 opt]# chown odoo:odoo odoo [root@v133-18 opt]# ls -lrt total 15868 -rw-r--r-- 1 root root 16237416 Jun 11 2020 wkhtmltox-0.12.6-1.centos8.x86_64.rpm drwx------ 5 odoo odoo 4096 Jan 9 08:01 odoo_fail drwxr-xr-x 2 odoo odoo 4096 Jan 9 09:48 odoo [root@v133-18-203-152 opt]# |
んでやりなおし
1 |
git clone https://www.github.com/odoo/odoo --depth 1 --branch 13.0 /opt/odoo/odoo13 |
githubのHEADがversion14になってるで
odoo13を手動でダウンロードして配置して以下を実行
1 2 3 4 5 6 7 8 9 10 11 12 13 |
pip3 install -r odoo13/requirements.txt Ignoring gevent: markers 'python_version >= "3.7"' don't match your environment Ignoring gevent: markers 'sys_platform == "win32" and python_version < "3.7"' don't match your environment Ignoring greenlet: markers 'python_version >= "3.7"' don't match your environment Ignoring lxml: markers 'sys_platform != "win32" and python_version >= "3.7"' don't match your environment Ignoring lxml: markers 'sys_platform == "win32"' don't match your environment Ignoring Pillow: markers 'sys_platform == "win32" and python_version >= "3.7"' don't match your environment Ignoring psycopg2: markers 'sys_platform == "win32" or python_version >= "3.8"' don't match your environment Ignoring Werkzeug: markers 'sys_platform == "win32"' don't match your environment Ignoring pypiwin32: markers 'sys_platform == "win32"' don't match your environment Collecting Babel==2.6.0 (from -r odoo13/requirements.txt (line 1)) Downloading https://files.pythonhosted.org/packages/b8/ad/c6f60602d3ee3d92fbed87675b6fb6a6f9a38c223343ababdb44ba201f10/Babel-2.6.0-py2.py3-none-any.whl (8.1MB) 省略 |
んで ステータス確認
やっぱ失敗でございます(ーー;
1 2 3 4 5 |
systemctl status odoo13.service ● odoo13.service - Odoo13 Loaded: loaded (/etc/systemd/system/odoo13.service; enabled; vendor preset: > Active: failed (Result: exit-code) since Sat 2021-01-09 11:22:11 JST; 20s ago Main PID: 64894 (code=exited, status=1/FAILURE) |
1 2 3 4 5 6 7 8 9 10 |
Jan 9 11:22:11 v133-18 systemd[1]: Started Odoo13. Jan 9 11:22:11 v133-18-203-152 odoo13[64894]: Traceback (most recent call last): Jan 9 11:22:11 v133-18-203-152 odoo13[64894]: File "/opt/odoo/odoo13/odoo-bin", line 5, in <module> Jan 9 11:22:11 v133-18-203-152 odoo13[64894]: import odoo Jan 9 11:22:11 v133-18-203-152 odoo13[64894]: File "/opt/odoo/odoo13/odoo/__init__.py", line 75, in <module> Jan 9 11:22:11 v133-18-203-152 odoo13[64894]: import PyPDF2 Jan 9 11:22:11 v133-18-203-152 odoo13[64894]: ModuleNotFoundError: No module named 'PyPDF2' Jan 9 11:22:11 v133-18-203-152 systemd[1]: odoo13.service: Main process exited, code=exited, status=1/FAILURE Jan 9 11:22:11 v133-18-203-152 systemd[1]: odoo13.service: Failed with result 'exit-code'. Jan 9 11:22:23 v133-18-203-152 systemd[1]: Reloading. |
PyPDF2がないと
1 2 3 4 5 6 7 8 |
(odoo13-venv) [odoo@v133-18 ~]$ pip install pypdf2 Collecting pypdf2 Using cached https://files.pythonhosted.org/packages/b4/01/68fcc0d43daf4c6bdbc6b33cc3f77bda531c86b174cac56ef0ffdb96faab/PyPDF2-1.26.0.tar.gz Installing collected packages: pypdf2 Running setup.py install for pypdf2 ... done Successfully installed pypdf2-1.26.0 You are using pip version 9.0.3, however version 20.3.3 is available. You should consider upgrading via the 'pip install --upgrade pip' command. |
python pip でインスコ
で odoo start エラー
今度は No module named werkzeug・・・
これって あかんやつや(ーー
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 |
Collecting Babel==2.6.0 (from -r odoo13/requirements.txt (line 1)) Using cached https://files.pythonhosted.org/packages/b8/ad/c6f60602d3ee3d92fbed87675b6fb6a6f9a38c223343ababdb44ba201f10/Babel-2.6.0-py2.py3-none-any.whl Collecting chardet==3.0.4 (from -r odoo13/requirements.txt (line 2)) Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB) 7% |??? | 10kB 21.0MB/s eta 0:00:01 15% |????? | 20kB 12.6MB/s eta 0:00:01 23% |???????? | 30kB 14.1MB/s eta 0:00:01 30% |?????????? | 40kB 15.4MB/s eta 0:00:01 38% |????????????? | 51kB 13.9MB/s eta 0:00:01 46% |??????????????? | 61kB 14.9MB/s eta 0:00:01 53% |?????????????????? | 71kB 12.0MB/s eta 0:00:01 61% |???????????????????? | 81kB 12.5MB/s eta 0:00:01 69% |??????????????????????? | 92kB 9.9MB/s eta 0:00:01 76% |????????????????????????? | 102kB 10.7MB/s eta 0:00:01 84% |??????????????????????????? | 112kB 10.9MB/s eta 0:00:01 92% |?????????????????????????????? | 122kB 12.0MB/s eta 0:00:01 99% |????????????????????????????????| 133kB 9.3MB/s eta 0:00:01 100% |????????????????????????????????| 143kB 2.5MB/s Collecting decorator==4.3.0 (from -r odoo13/requirements.txt (line 3)) Using cached https://files.pythonhosted.org/packages/bc/bb/a24838832ba35baf52f32ab1a49b906b5f82fb7c76b2f6a7e35e140bac30/decorator-4.3.0-py2.py3-none-any.whl Collecting docutils==0.14 (from -r odoo13/requirements.txt (line 4)) Using cached https://files.pythonhosted.org/packages/36/fa/08e9e6e0e3cbd1d362c3bbee8d01d0aedb2155c4ac112b19ef3cae8eed8d/docutils-0.14-py3-none-any.whl Collecting ebaysdk==2.1.5 (from -r odoo13/requirements.txt (line 5)) Using cached https://files.pythonhosted.org/packages/db/7f/53245710a67cb9de1ad2a0e78c012c6e6e327b05dc8fb4b2e85a7ef0220b/ebaysdk-2.1.5.tar.gz Collecting feedparser==5.2.1 (from -r odoo13/requirements.txt (line 6)) Using cached https://files.pythonhosted.org/packages/91/d8/7d37fec71ff7c9dbcdd80d2b48bcdd86d6af502156fc93846fb0102cb2c4/feedparser-5.2.1.tar.bz2 Collecting gevent==1.1.2 (from -r odoo13/requirements.txt (line 7)) Using cached https://files.pythonhosted.org/packages/43/8f/cb3224a0e6ab663547f45c10d0651cfd52633fde4283bf68d627084df8cc/gevent-1.1.2.tar.gz Collecting greenlet==0.4.10 (from -r odoo13/requirements.txt (line 10)) Using cached https://files.pythonhosted.org/packages/f2/3f/09412b656067f280cf017ce5b6465e6339089129212425111117be5557d9/greenlet-0.4.10.tar.gz Collecting html2text==2018.1.9 (from -r odoo13/requirements.txt (line 12)) Using cached https://files.pythonhosted.org/packages/16/20/de2b458ef434713053dd83209a03a5431ebe0527c8e14d9ae7838ff67d8a/html2text-2018.1.9-py3-none-any.whl Collecting Jinja2==2.10.1 (from -r odoo13/requirements.txt (line 13)) Downloading https://files.pythonhosted.org/packages/1d/e7/fd8b501e7a6dfe492a433deb7b9d833d39ca74916fa8bc63dd1a4947a671/Jinja2-2.10.1-py2.py3-none-any.whl (124kB) 8% |??? | 10kB 14.6MB/s eta 0:00:01 16% |?????? | 20kB 9.1MB/s eta 0:00:01 24% |???????? | 30kB 11.0MB/s eta 0:00:01 32% |??????????? | 40kB 12.0MB/s eta 0:00:01 40% |?????????????? | 51kB 13.8MB/s eta 0:00:01 49% |???????????????? | 61kB 13.9MB/s eta 0:00:01 57% |??????????????????? | 71kB 14.9MB/s eta 0:00:01 65% |????????????????????? | 81kB 15.6MB/s eta 0:00:01 73% |???????????????????????? | 92kB 16.8MB/s eta 0:00:01 81% |??????????????????????????? | 102kB 18.0MB/s eta 0:00:01 90% |????????????????????????????? | 112kB 19.4MB/s eta 0:00:01 98% |????????????????????????????????| 122kB 25.8MB/s eta 0:00:01 100% |????????????????????????????????| 133kB 6.4MB/s Collecting libsass==0.17.0 (from -r odoo13/requirements.txt (line 14)) Using cached https://files.pythonhosted.org/packages/47/09/8182b85d84ab1f7fd05df06b9c32aaa41b77c79c770a7cc511eabe3c23b4/libsass-0.17.0-cp36-cp36m-manylinux1_x86_64.whl Collecting lxml==3.7.1 (from -r odoo13/requirements.txt (line 15)) Using cached https://files.pythonhosted.org/packages/c4/68/cf0ab7e26de58d14d441f19f7f9c2ab15eb109b0b2640f8b19c1da34e9e0/lxml-3.7.1.tar.gz Collecting Mako==1.0.7 (from -r odoo13/requirements.txt (line 18)) Using cached https://files.pythonhosted.org/packages/eb/f3/67579bb486517c0d49547f9697e36582cd19dafb5df9e687ed8e22de57fa/Mako-1.0.7.tar.gz Collecting MarkupSafe==1.1.0 (from -r odoo13/requirements.txt (line 19)) Using cached https://files.pythonhosted.org/packages/08/04/f2191b50fb7f0712f03f064b71d8b4605190f2178ba02e975a87f7b89a0d/MarkupSafe-1.1.0-cp36-cp36m-manylinux1_x86_64.whl Collecting mock==2.0.0 (from -r odoo13/requirements.txt (line 20)) Using cached https://files.pythonhosted.org/packages/e6/35/f187bdf23be87092bd0f1200d43d23076cee4d0dec109f195173fd3ebc79/mock-2.0.0-py2.py3-none-any.whl Collecting num2words==0.5.6 (from -r odoo13/requirements.txt (line 21)) Using cached https://files.pythonhosted.org/packages/aa/6e/6d026d15d1b0fd37a9dd42ecf559f36871cee67158aff5ba652d3130e8b9/num2words-0.5.6-py2.py3-none-any.whl Collecting ofxparse==0.19 (from -r odoo13/requirements.txt (line 22)) Using cached https://files.pythonhosted.org/packages/3f/e3/d780743d5037b27276577cdf82a86fe0b5ab81567bcacec33bf92cdca478/ofxparse-0.19.tar.gz Collecting passlib==1.7.1 (from -r odoo13/requirements.txt (line 23)) Using cached https://files.pythonhosted.org/packages/ee/a7/d6d238d927df355d4e4e000670342ca4705a72f0bf694027cf67d9bcf5af/passlib-1.7.1-py2.py3-none-any.whl Collecting Pillow==5.4.1 (from -r odoo13/requirements.txt (line 24)) Using cached https://files.pythonhosted.org/packages/85/5e/e91792f198bbc5a0d7d3055ad552bc4062942d27eaf75c3e2783cf64eae5/Pillow-5.4.1-cp36-cp36m-manylinux1_x86_64.whl Collecting polib==1.1.0 (from -r odoo13/requirements.txt (line 26)) Using cached https://files.pythonhosted.org/packages/30/a2/e407c3b00cace3d7fc8df14d364deeecfeb96044e1a317de583bc26eae58/polib-1.1.0-py2.py3-none-any.whl Collecting psutil==5.6.6 (from -r odoo13/requirements.txt (line 27)) Using cached https://files.pythonhosted.org/packages/5f/dc/edf6758183afc7591a16bd4b8a44d8eea80aca1327ea60161dd3bad9ad22/psutil-5.6.6.tar.gz Collecting psycopg2==2.7.7 (from -r odoo13/requirements.txt (line 28)) Using cached https://files.pythonhosted.org/packages/37/25/53e8398975aa3323de46a5cc2745aeb4c9db11352ca905d3a15c53b6a816/psycopg2-2.7.7-cp36-cp36m-manylinux1_x86_64.whl Collecting pydot==1.4.1 (from -r odoo13/requirements.txt (line 30)) Using cached https://files.pythonhosted.org/packages/33/d1/b1479a770f66d962f545c2101630ce1d5592d90cb4f083d38862e93d16d2/pydot-1.4.1-py2.py3-none-any.whl Collecting python-ldap==3.1.0 (from -r odoo13/requirements.txt (line 31)) Using cached https://files.pythonhosted.org/packages/7f/1c/28d721dff2fcd2fef9d55b40df63a00be26ec8a11e8c6fc612ae642f9cfd/python-ldap-3.1.0.tar.gz Collecting pyparsing==2.2.0 (from -r odoo13/requirements.txt (line 32)) Using cached https://files.pythonhosted.org/packages/6a/8a/718fd7d3458f9fab8e67186b00abdd345b639976bc7fb3ae722e1b026a50/pyparsing-2.2.0-py2.py3-none-any.whl Collecting PyPDF2==1.26.0 (from -r odoo13/requirements.txt (line 33)) Using cached https://files.pythonhosted.org/packages/b4/01/68fcc0d43daf4c6bdbc6b33cc3f77bda531c86b174cac56ef0ffdb96faab/PyPDF2-1.26.0.tar.gz Collecting pyserial==3.4 (from -r odoo13/requirements.txt (line 34)) Using cached https://files.pythonhosted.org/packages/0d/e4/2a744dd9e3be04a0c0907414e2a01a7c88bb3915cbe3c8cc06e209f59c30/pyserial-3.4-py2.py3-none-any.whl Collecting python-dateutil==2.7.3 (from -r odoo13/requirements.txt (line 35)) Using cached https://files.pythonhosted.org/packages/cf/f5/af2b09c957ace60dcfac112b669c45c8c97e32f94aa8b56da4c6d1682825/python_dateutil-2.7.3-py2.py3-none-any.whl Collecting pytz==2019.1 (from -r odoo13/requirements.txt (line 36)) Using cached https://files.pythonhosted.org/packages/3d/73/fe30c2daaaa0713420d0382b16fbb761409f532c56bdcc514bf7b6262bb6/pytz-2019.1-py2.py3-none-any.whl Collecting pyusb==1.0.2 (from -r odoo13/requirements.txt (line 37)) Using cached https://files.pythonhosted.org/packages/5f/34/2095e821c01225377dda4ebdbd53d8316d6abb243c9bee43d3888fa91dd6/pyusb-1.0.2.tar.gz Collecting qrcode==6.1 (from -r odoo13/requirements.txt (line 38)) Using cached https://files.pythonhosted.org/packages/42/87/4a3a77e59ab7493d64da1f69bf1c2e899a4cf81e51b2baa855e8cc8115be/qrcode-6.1-py2.py3-none-any.whl Collecting reportlab==3.5.13 (from -r odoo13/requirements.txt (line 39)) Using cached https://files.pythonhosted.org/packages/a5/86/9c87291c65e708d346d5324c3b9c1b6bb413b42e4d711386c18a1e015e97/reportlab-3.5.13-cp36-cp36m-manylinux1_x86_64.whl Collecting requests==2.21.0 (from -r odoo13/requirements.txt (line 40)) Using cached https://files.pythonhosted.org/packages/7d/e3/20f3d364d6c8e5d2353c72a67778eb189176f08e873c9900e10c0287b84b/requests-2.21.0-py2.py3-none-any.whl Collecting zeep==3.2.0 (from -r odoo13/requirements.txt (line 41)) Using cached https://files.pythonhosted.org/packages/36/86/4250fd0e6a168328064dc1b33d64550db972bb79f1796b436f9df75253ac/zeep-3.2.0-py2.py3-none-any.whl Collecting vatnumber==1.2 (from -r odoo13/requirements.txt (line 42)) Using cached https://files.pythonhosted.org/packages/d7/7c/869b59cd9cb6ed1057372cb704a3b86688ae8c12cfc7fcaedbc1424f5e7f/vatnumber-1.2.tar.gz Collecting vobject==0.9.6.1 (from -r odoo13/requirements.txt (line 43)) Using cached https://files.pythonhosted.org/packages/da/ce/27c48c0e39cc69ffe7f6e3751734f6073539bf18a0cfe564e973a3709a52/vobject-0.9.6.1.tar.gz Collecting Werkzeug==0.14.1 (from -r odoo13/requirements.txt (line 44)) Using cached https://files.pythonhosted.org/packages/20/c4/12e3e56473e52375aa29c4764e70d1b8f3efa6682bef8d0aae04fe335243/Werkzeug-0.14.1-py2.py3-none-any.whl Collecting XlsxWriter==1.1.2 (from -r odoo13/requirements.txt (line 46)) Using cached https://files.pythonhosted.org/packages/3d/1b/4caecd4efde1d41ba3bef1a81027032a7a6dff7d5112e1731f232c0addb9/XlsxWriter-1.1.2-py2.py3-none-any.whl Collecting xlwt==1.3.* (from -r odoo13/requirements.txt (line 47)) Using cached https://files.pythonhosted.org/packages/44/48/def306413b25c3d01753603b1a222a011b8621aed27cd7f89cbc27e6b0f4/xlwt-1.3.0-py2.py3-none-any.whl Collecting xlrd==1.1.0 (from -r odoo13/requirements.txt (line 48)) Using cached https://files.pythonhosted.org/packages/07/e6/e95c4eec6221bfd8528bcc4ea252a850bffcc4be88ebc367e23a1a84b0bb/xlrd-1.1.0-py2.py3-none-any.whl Collecting six (from libsass==0.17.0->-r odoo13/requirements.txt (line 14)) Downloading https://files.pythonhosted.org/packages/ee/ff/48bde5c0f013094d729fe4b0316ba2a24774b3ff1c52d924a8a4cb04078a/six-1.15.0-py2.py3-none-any.whl Collecting pbr>=0.11 (from mock==2.0.0->-r odoo13/requirements.txt (line 20)) Using cached https://files.pythonhosted.org/packages/fb/48/69046506f6ac61c1eaa9a0d42d22d54673b69e176d30ca98e3f61513e980/pbr-5.5.1-py2.py3-none-any.whl Collecting beautifulsoup4 (from ofxparse==0.19->-r odoo13/requirements.txt (line 22)) Using cached https://files.pythonhosted.org/packages/d1/41/e6495bd7d3781cee623ce23ea6ac73282a373088fcd0ddc809a047b18eae/beautifulsoup4-4.9.3-py3-none-any.whl Collecting pyasn1>=0.3.7 (from python-ldap==3.1.0->-r odoo13/requirements.txt (line 31)) Downloading https://files.pythonhosted.org/packages/62/1e/a94a8d635fa3ce4cfc7f506003548d0a2447ae76fd5ca53932970fe3053f/pyasn1-0.4.8-py2.py3-none-any.whl (77kB) 13% |????? | 10kB 16.2MB/s eta 0:00:01 26% |????????? | 20kB 18.3MB/s eta 0:00:01 39% |????????????? | 30kB 21.3MB/s eta 0:00:01 53% |????????????????? | 40kB 24.0MB/s eta 0:00:01 66% |?????????????????????? | 51kB 25.6MB/s eta 0:00:01 79% |?????????????????????????? | 61kB 27.4MB/s eta 0:00:01 92% |?????????????????????????????? | 71kB 28.7MB/s eta 0:00:01 100% |????????????????????????????????| 81kB 5.2MB/s Collecting pyasn1_modules>=0.1.5 (from python-ldap==3.1.0->-r odoo13/requirements.txt (line 31)) Using cached https://files.pythonhosted.org/packages/95/de/214830a981892a3e286c3794f41ae67a4495df1108c3da8a9f62159b9a9d/pyasn1_modules-0.2.8-py2.py3-none-any.whl Collecting certifi>=2017.4.17 (from requests==2.21.0->-r odoo13/requirements.txt (line 40)) Using cached https://files.pythonhosted.org/packages/5e/a0/5f06e1e1d463903cf0c0eebeb751791119ed7a4b3737fdc9a77f1cdfb51f/certifi-2020.12.5-py2.py3-none-any.whl Collecting urllib3<1.25,>=1.21.1 (from requests==2.21.0->-r odoo13/requirements.txt (line 40)) Downloading https://files.pythonhosted.org/packages/01/11/525b02e4acc0c747de8b6ccdab376331597c569c42ea66ab0a1dbd36eca2/urllib3-1.24.3-py2.py3-none-any.whl (118kB) 8% |??? | 10kB 24.7MB/s eta 0:00:01 17% |?????? | 20kB 29.8MB/s eta 0:00:01 25% |????????? | 30kB 35.9MB/s eta 0:00:01 34% |??????????? | 40kB 39.2MB/s eta 0:00:01 43% |?????????????? | 51kB 41.6MB/s eta 0:00:01 51% |????????????????? | 61kB 45.2MB/s eta 0:00:01 60% |???????????????????? | 71kB 47.6MB/s eta 0:00:01 68% |?????????????????????? | 81kB 50.4MB/s eta 0:00:01 77% |????????????????????????? | 92kB 25.8MB/s eta 0:00:01 86% |???????????????????????????? | 102kB 26.8MB/s eta 0:00:01 94% |??????????????????????????????? | 112kB 28.9MB/s eta 0:00:01 100% |????????????????????????????????| 122kB 7.2MB/s Collecting idna<2.9,>=2.5 (from requests==2.21.0->-r odoo13/requirements.txt (line 40)) Downloading https://files.pythonhosted.org/packages/14/2c/cd551d81dbe15200be1cf41cd03869a46fe7226e7450af7a6545bfc474c9/idna-2.8-py2.py3-none-any.whl (58kB) 17% |?????? | 10kB 24.2MB/s eta 0:00:01 34% |???????????? | 20kB 22.0MB/s eta 0:00:01 52% |????????????????? | 30kB 26.4MB/s eta 0:00:01 69% |??????????????????????? | 40kB 19.0MB/s eta 0:00:01 87% |???????????????????????????? | 51kB 20.9MB/s eta 0:00:01 100% |????????????????????????????????| 61kB 6.8MB/s Collecting appdirs>=1.4.0 (from zeep==3.2.0->-r odoo13/requirements.txt (line 41)) Using cached https://files.pythonhosted.org/packages/3b/00/2344469e2084fb287c2e0b57b72910309874c3245463acd6cf5e3db69324/appdirs-1.4.4-py2.py3-none-any.whl Collecting attrs>=17.2.0 (from zeep==3.2.0->-r odoo13/requirements.txt (line 41)) Using cached https://files.pythonhosted.org/packages/c3/aa/cb45262569fcc047bf070b5de61813724d6726db83259222cd7b4c79821a/attrs-20.3.0-py2.py3-none-any.whl Collecting defusedxml>=0.4.1 (from zeep==3.2.0->-r odoo13/requirements.txt (line 41)) Using cached https://files.pythonhosted.org/packages/06/74/9b387472866358ebc08732de3da6dc48e44b0aacd2ddaa5cb85ab7e986a2/defusedxml-0.6.0-py2.py3-none-any.whl Collecting isodate>=0.5.4 (from zeep==3.2.0->-r odoo13/requirements.txt (line 41)) Using cached https://files.pythonhosted.org/packages/9b/9f/b36f7774ff5ea8e428fdcfc4bb332c39ee5b9362ddd3d40d9516a55221b2/isodate-0.6.0-py2.py3-none-any.whl Collecting requests-toolbelt>=0.7.1 (from zeep==3.2.0->-r odoo13/requirements.txt (line 41)) Downloading https://files.pythonhosted.org/packages/60/ef/7681134338fc097acef8d9b2f8abe0458e4d87559c689a8c306d0957ece5/requests_toolbelt-0.9.1-py2.py3-none-any.whl (54kB) 18% |?????? | 10kB 15.6MB/s eta 0:00:01 37% |???????????? | 20kB 12.5MB/s eta 0:00:01 56% |?????????????????? | 30kB 16.8MB/s eta 0:00:01 75% |????????????????????????? | 40kB 20.3MB/s eta 0:00:01 94% |??????????????????????????????? | 51kB 23.5MB/s eta 0:00:01 100% |????????????????????????????????| 61kB 7.1MB/s Collecting cached-property>=1.3.0 (from zeep==3.2.0->-r odoo13/requirements.txt (line 41)) Using cached https://files.pythonhosted.org/packages/48/19/f2090f7dad41e225c7f2326e4cfe6fff49e57dedb5b53636c9551f86b069/cached_property-1.5.2-py2.py3-none-any.whl Collecting python-stdnum (from vatnumber==1.2->-r odoo13/requirements.txt (line 42)) Using cached https://files.pythonhosted.org/packages/a8/05/8c423a7413b1a68bf52fdca0c72e86ea249772caa79c6adaa0cfa5efe090/python_stdnum-1.14-py2.py3-none-any.whl Collecting soupsieve>1.2; python_version >= "3.0" (from beautifulsoup4->ofxparse==0.19->-r odoo13/requirements.txt (line 22)) Using cached https://files.pythonhosted.org/packages/02/fb/1c65691a9aeb7bd6ac2aa505b84cb8b49ac29c976411c6ab3659425e045f/soupsieve-2.1-py3-none-any.whl |
これ ロードできてない奴は軒並みはいってないってことか?
pip3 install -r odoo13/requirements.txt
のログから入ってないのを拾って
実行
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
pip install Babel pip install decorator pip install docutils pip install ebaysdk pip install feedparser pip install gevent pip install greenlet pip install html2text pip install libsass pip install Mako pip install MarkupSafe pip install mock pip install num2words pip install ofxparse pip install passlib pip install Pillow pip install polib pip install psutil pip install psycopg2 pip install pydot pip install python-ldap pip install pyparsing pip install pyserial pip install pytz pip install pyusb pip install qrcode pip install reportlab pip install requests pip install zeep pip install vatnumber pip install vobject pip install XlsxWriter pip install xlwt pip install xlrd pip install six pip install pbr pip install beautifulsoup4 pip install pyasn1_modules pip install certifi pip install appdirs pip install attrs pip install defusedxml pip install isodate pip install cached-property pip install python-stdnum pip install soupsieve pip install pip install pip install pip install pip install pip install pip install |
1 2 3 4 5 6 7 8 9 10 11 |
systemctl status odoo13.service ● odoo13.service - Odoo13 Loaded: loaded (/etc/systemd/system/odoo13.service; enabled; vendor preset: > Active: active (running) since Sat 2021-01-09 13:09:54 JST; 2s ago Main PID: 93171 (python3) Tasks: 1 (limit: 4984) Memory: 68.9M CGroup: /system.slice/odoo13.service mq93171 /opt/odoo/odoo13-venv/bin/python3 /opt/odoo/odoo13/odoo-bin > Jan 09 13:09:54 v133-18-203-152.vir.kagoya.net systemd[1]: Started Odoo13. |
できました!!
てか active (running)になっただけだけど
画像が出ない(ーー
install libpq-dev postgresql-libs
のインストール
とか試しながら
結局
pip3 install -r odoo13/requirements.txt
がうまくいかない
pip install wheel して
gcc wheel でメモリ不足 DBとめたりして 最後までいったぽいけど
やっぱり画像が出ない(T。T)
いったん終了
解決しました
なぜだかわからないけど
psycopg2 2.7.7
のpip インスコのときエラーで入らなかったので
1 |
pip install psycopg2-binary |
してたのを
1 |
pip uninstall psycopg2-binary |
削除したら、odoo13が起動できなかったので
再度
1 |
pip install psycopg2-binary |
したら icon表示できました