Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deploy OB error "Repository integrity check x" #138

Closed
imbawenzi opened this issue Nov 9, 2022 · 4 comments
Closed

deploy OB error "Repository integrity check x" #138

imbawenzi opened this issue Nov 9, 2022 · 4 comments
Labels
wontfix This will not be worked on

Comments

@imbawenzi
Copy link

imbawenzi commented Nov 9, 2022

> obd cluster deploy test -c /home/ecs-user/testOB/workdir/mini-local-example.yaml
oceanbase-ce-3.1.9 already installed.
+----------------------------------------------------------------------------+
| Packages |
+--------------+---------+----------------+----------------------------------+
| Repository | Version | Release | Md5 |
+--------------+---------+----------------+----------------------------------+
| oceanbase-ce | 3.1.9 | 20221109170052 | af10225cfa8aff666059e8607cbcd3b0 |
+--------------+---------+----------------+----------------------------------+
Repository integrity check x
[ERROR] oceanbase-ce install failed
See https://www.oceanbase.com/product/ob-deployer/error-codes .

> cat /root/.obd/log/obd

[2022-11-09 17:16:49.532] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - mkdir /root/.obd/lock/
[2022-11-09 17:16:49.532] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - try to get share lock /root/.obd/lock/global
[2022-11-09 17:16:49.532] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - share lock /root/.obd/lock/global, count 1
[2022-11-09 17:16:49.532] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - cmd: ['test']
[2022-11-09 17:16:49.532] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - opts: {'config': '/home/ecs-user/testOB/workdir/mini-local-example.yaml', 'force': True, 'clean': False, 'unuselibrepo': None, 'auto_create_tenant': None}
[2022-11-09 17:16:49.532] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - Get Deploy by name
[2022-11-09 17:16:49.532] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - mkdir /root/.obd/cluster/
[2022-11-09 17:16:49.532] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - mkdir /root/.obd/config_parser/
[2022-11-09 17:16:49.533] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - try to get exclusive lock /root/.obd/lock/deploy_test
[2022-11-09 17:16:49.533] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - exclusive lock /root/.obd/lock/deploy_test, count 1
[2022-11-09 17:16:49.533] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - Get deploy info
[2022-11-09 17:16:49.533] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - judge deploy status
[2022-11-09 17:16:49.533] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - config path is None or not
[2022-11-09 17:16:49.533] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - Create deploy by configuration path
[2022-11-09 17:16:49.533] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - exclusive lock /root/.obd/lock/deploy_test, count 2
[2022-11-09 17:16:49.533] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - mkdir /root/.obd/cluster/test
[2022-11-09 17:16:49.533] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - copy /home/ecs-user/testOB/workdir/mini-local-example.yaml /root/.obd/cluster/test/config.yaml
[2022-11-09 17:16:49.533] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - Get deploy configuration
[2022-11-09 17:16:49.543] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - Search best suitable repository
[2022-11-09 17:16:49.543] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - Search package for components...
[2022-11-09 17:16:49.543] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - Get oceanbase-ce repository
[2022-11-09 17:16:49.543] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - mkdir /root/.obd/repository
[2022-11-09 17:16:49.543] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - Search repository oceanbase-ce version: None, tag: None, release: None, package_hash: af10225cfa8aff666059e8607cbcd3b0
[2022-11-09 17:16:49.544] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - try to get share lock /root/.obd/lock/mirror_and_repo
[2022-11-09 17:16:49.544] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - share lock /root/.obd/lock/mirror_and_repo, count 1
[2022-11-09 17:16:49.544] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - mkdir /root/.obd/repository/oceanbase-ce
[2022-11-09 17:16:49.547] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - Found repository oceanbase-ce-3.1.9-20221109170052-af10225cfa8aff666059e8607cbcd3b0
[2022-11-09 17:16:49.547] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - Search oceanbase-ce package from mirror
[2022-11-09 17:16:49.547] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - mkdir /root/.obd/mirror
[2022-11-09 17:16:49.547] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - mkdir /root/.obd/mirror/remote
[2022-11-09 17:16:49.547] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - mkdir /root/.obd/mirror/local
[2022-11-09 17:16:49.547] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - try to get exclusive lock /root/.obd/lock/mirror_and_repo
[2022-11-09 17:16:49.547] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - exclusive lock /root/.obd/lock/mirror_and_repo, count 1
[2022-11-09 17:16:49.547] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - exclusive lock /root/.obd/lock/mirror_and_repo, count 2
[2022-11-09 17:16:49.548] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - load repo config: /root/.obd/mirror/remote/OceanBase.repo
[2022-11-09 17:16:49.548] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - open /root/.obd/mirror/remote/OceanBase.repo for r
[2022-11-09 17:16:49.548] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - exclusive lock /root/.obd/lock/mirror_and_repo, count 3
[2022-11-09 17:16:49.548] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - md5 is af10225cfa8aff666059e8607cbcd3b0
[2022-11-09 17:16:49.549] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - load /root/.obd/mirror/remote/OceanBase-community-stable-el7/.db
[2022-11-09 17:16:49.549] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - MirrorRepositoryType.REMOTE mirror OceanBase-community-stable-el7 found pkg: None
[2022-11-09 17:16:49.549] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - md5 is af10225cfa8aff666059e8607cbcd3b0
[2022-11-09 17:16:49.550] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - load /root/.obd/mirror/remote/OceanBase-development-kit-el7/.db
[2022-11-09 17:16:49.550] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - MirrorRepositoryType.REMOTE mirror OceanBase-development-kit-el7 found pkg: None
[2022-11-09 17:16:49.550] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - md5 is af10225cfa8aff666059e8607cbcd3b0
[2022-11-09 17:16:49.550] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - MirrorRepositoryType.LOCAL mirror local found pkg: None
[2022-11-09 17:16:49.550] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - Use repository oceanbase-ce-3.1.9-20221109170052-af10225cfa8aff666059e8607cbcd3b0
[2022-11-09 17:16:49.550] [3dc2f54c-600f-11ed-b657-00163e1ec512] [INFO] oceanbase-ce-3.1.9 already installed.
[2022-11-09 17:16:49.550] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - Searching install plugin for components ...
[2022-11-09 17:16:49.551] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - Search install plugin for oceanbase-ce
[2022-11-09 17:16:49.551] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - mkdir /root/.obd/plugins
[2022-11-09 17:16:49.551] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - Found for oceanbase-ce-install-3.1.0 for oceanbase-ce-3.1.9
[2022-11-09 17:16:49.551] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - Searching install plugin for components ...
[2022-11-09 17:16:49.551] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - Searching install plugin for components ...
[2022-11-09 17:16:49.551] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - Search install plugin for oceanbase-ce
[2022-11-09 17:16:49.551] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - Found for oceanbase-ce-install-3.1.0 for oceanbase-ce-3.1.9
[2022-11-09 17:16:49.552] [3dc2f54c-600f-11ed-b657-00163e1ec512] [INFO] +----------------------------------------------------------------------------+
[2022-11-09 17:16:49.552] [3dc2f54c-600f-11ed-b657-00163e1ec512] [INFO] | Packages |
[2022-11-09 17:16:49.552] [3dc2f54c-600f-11ed-b657-00163e1ec512] [INFO] +--------------+---------+----------------+----------------------------------+
[2022-11-09 17:16:49.552] [3dc2f54c-600f-11ed-b657-00163e1ec512] [INFO] | Repository | Version | Release | Md5 |
[2022-11-09 17:16:49.552] [3dc2f54c-600f-11ed-b657-00163e1ec512] [INFO] +--------------+---------+----------------+----------------------------------+
[2022-11-09 17:16:49.552] [3dc2f54c-600f-11ed-b657-00163e1ec512] [INFO] | oceanbase-ce | 3.1.9 | 20221109170052 | af10225cfa8aff666059e8607cbcd3b0 |
[2022-11-09 17:16:49.552] [3dc2f54c-600f-11ed-b657-00163e1ec512] [INFO] +--------------+---------+----------------+----------------------------------+
[2022-11-09 17:16:49.552] [3dc2f54c-600f-11ed-b657-00163e1ec512] [INFO] Repository integrity check
[2022-11-09 17:16:49.683] [3dc2f54c-600f-11ed-b657-00163e1ec512] [ERROR] [ERROR] oceanbase-ce install failed
[2022-11-09 17:16:49.683] [3dc2f54c-600f-11ed-b657-00163e1ec512] [INFO] See https://www.oceanbase.com/product/ob-deployer/error-codes .
[2022-11-09 17:16:49.683] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - exclusive lock /root/.obd/lock/mirror_and_repo release, count 2
[2022-11-09 17:16:49.683] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - exclusive lock /root/.obd/lock/mirror_and_repo release, count 1
[2022-11-09 17:16:49.683] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - exclusive lock /root/.obd/lock/mirror_and_repo release, count 0
[2022-11-09 17:16:49.683] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - try to get share lock /root/.obd/lock/mirror_and_repo
[2022-11-09 17:16:49.683] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - share lock /root/.obd/lock/mirror_and_repo release, count 0
[2022-11-09 17:16:49.683] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - unlock /root/.obd/lock/mirror_and_repo
[2022-11-09 17:16:49.683] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - exclusive lock /root/.obd/lock/deploy_test release, count 1
[2022-11-09 17:16:49.683] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - exclusive lock /root/.obd/lock/deploy_test release, count 0
[2022-11-09 17:16:49.683] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - unlock /root/.obd/lock/deploy_test
[2022-11-09 17:16:49.683] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - share lock /root/.obd/lock/global release, count 0
[2022-11-09 17:16:49.683] [3dc2f54c-600f-11ed-b657-00163e1ec512] [DEBUG] - unlock /root/.obd/lock/global

@JLY2015
Copy link

JLY2015 commented Nov 9, 2022

please check cluster ”test“ is installed or not in your environment, use command:obd cluster list

@imbawenzi
Copy link
Author

> obd cluster list
+------------------------------------------------------+
| Cluster List |
+--------+---------------------------+-----------------+
| Name | Configuration Path | Status (Cached) |
+--------+---------------------------+-----------------+
| test | /root/.obd/cluster/test | configured |
| mytest | /root/.obd/cluster/mytest | configured |
+--------+---------------------------+-----------------+

deploy with a new name
> obd cluster deploy newtest -c /home/ecs-user/testOB/workdir/mini-local-example.yaml -f
same error

> obd cluster list
+--------------------------------------------------------+
| Cluster List |
+---------+----------------------------+-----------------+
| Name | Configuration Path | Status (Cached) |
+---------+----------------------------+-----------------+
| test | /root/.obd/cluster/test | configured |
| newtest | /root/.obd/cluster/newtest | configured |
| mytest | /root/.obd/cluster/mytest | configured |
+---------+----------------------------+-----------------+

@imbawenzi
Copy link
Author

mini-local-example.yaml

oceanbase-ce:

package_hash: af10225cfa8aff666059e8607cbcd3b0

servers:
# Please don't use hostname, only IP can be supported
- 127.0.0.1
global:
# The working directory for OceanBase Database. OceanBase Database is started under this directory. This is a required field.
home_path: /root/observer
# The directory for data storage. The default value is $home_path/store.
# data_dir: /data
# The directory for clog, ilog, and slog. The default value is the same as the data_dir value.
# redo_dir: /redo
# Please set devname as the network adaptor's name whose ip is in the setting of severs.
# if set severs as "127.0.0.1", please set devname as "lo"
# if current ip is 192.168.1.10, and the ip's network adaptor's name is "eth0", please use "eth0"
devname: lo
mysql_port: 2881 # External port for OceanBase Database. The default value is 2881. DO NOT change this value after the cluster is started.
rpc_port: 2882 # Internal port for OceanBase Database. The default value is 2882. DO NOT change this value after the cluster is started.
zone: zone1
cluster_id: 1
# please set memory limit to a suitable value which is matching resource.
memory_limit: 6G # The maximum running memory for an observer
system_memory: 1G # The reserved system memory. system_memory is reserved for general tenants. The default value is 30G.
datafile_size: 20G # Size of the data file.
log_disk_size: 24G # The size of disk space used by the clog files.
cpu_count: 16
production_mode: true
syslog_level: INFO # System log level. The default value is INFO.
enable_syslog_wf: false # Print system logs whose levels are higher than WARNING to a separate log file. The default value is true.
enable_syslog_recycle: true # Enable auto system log recycling or not. The default value is false.
max_syslog_file_count: 4 # The maximum number of reserved log files before enabling auto recycling. The default value is 0.
# root_password: # root user password, can be empty

@JLY2015
Copy link

JLY2015 commented Nov 9, 2022

Are you using mirror create to build oceanbase-ce 3.1.9 ? in the case, I suggest you create it again

@frf12 frf12 added the wontfix This will not be worked on label Nov 24, 2022
@frf12 frf12 closed this as completed Nov 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants