日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 编程资源 > 编程问答 >内容正文

编程问答

sonar 服务器搭建 遇到各种问题

發(fā)布時(shí)間:2023/12/19 编程问答 35 豆豆
生活随笔 收集整理的這篇文章主要介紹了 sonar 服务器搭建 遇到各种问题 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

1. jvm 找不到? ?配置 jvm 配置環(huán)境變量

export JAVA_HOME=/usr/java/jdk1.8.0_51/ export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH:$HOME/bin

2.數(shù)據(jù)庫(kù)連接不上或者 database 找不到

java.lang.IllegalStateException: Can not connect to database. Please check connectivity and settings (see the properties prefixed by 'sonar.jdbc.').

在mysql 中創(chuàng)建 sonar

然后jdbc 配置??jdbc:mysql://10.37.87.229:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance


連接數(shù)據(jù)庫(kù),會(huì)創(chuàng)建一系列表:

2017.11.15 10:35:36 INFO web[][DbMigration] == InitialSchema: migrating ================================================== 2017.11.15 10:35:36 INFO web[][DbMigration] -- create_table(:projects, {}) 2017.11.15 10:35:36 INFO web[][DbMigration] -> 0.0120s 2017.11.15 10:35:36 INFO web[][DbMigration] -> 0 rows 2017.11.15 10:35:36 INFO web[][DbMigration] -- create_table(:snapshots, {}) 2017.11.15 10:35:36 INFO web[][DbMigration] -> 0.0120s 2017.11.15 10:35:36 INFO web[][DbMigration] -> 0 rows 2017.11.15 10:35:36 INFO web[][DbMigration] -- create_table(:metrics, {}) 2017.11.15 10:35:36 INFO web[][DbMigration] -> 0.0110s 2017.11.15 10:35:36 INFO web[][DbMigration] -> 0 rows 2017.11.15 10:35:36 INFO web[][DbMigration] -- create_table(:project_measures, {}) 2017.11.15 10:35:36 INFO web[][DbMigration] -> 0.0450s 2017.11.15 10:35:36 INFO web[][DbMigration] -> 0 rows 2017.11.15 10:35:36 INFO web[][DbMigration] -- create_table(:rules, {}) 2017.11.15 10:35:36 INFO web[][DbMigration] -> 0.0140s 2017.11.15 10:35:36 INFO web[][DbMigration] -> 0 rows 2017.11.15 10:35:36 INFO web[][DbMigration] -- create_table(:rules_parameters, {}) 2017.11.15 10:35:36 INFO web[][DbMigration] -> 0.0070s 2017.11.15 10:35:36 INFO web[][DbMigration] -> 0 rows 2017.11.15 10:35:36 INFO web[][DbMigration] -- create_table(:project_links, {}) 2017.11.15 10:35:36 INFO web[][DbMigration] -> 0.0070s 2017.11.15 10:35:36 INFO web[][DbMigration] -> 0 rows 2017.11.15 10:35:36 INFO web[][DbMigration] == InitialSchema: migrated (0.1180s) ========================================= 2017.11.15 10:35:36 INFO web[][DbMigration] 2017.11.15 10:35:37 INFO web[][DbMigration] == IndexDatabase: migrating ================================================== 2017.11.15 10:35:37 INFO web[][DbMigration] -- index_exists?("projects", "root_id", {:name=>"projects_root_id"}) 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0.0060s 2017.11.15 10:35:37 INFO web[][DbMigration] -- add_index("projects", "root_id", {:name=>"projects_root_id"}) 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0.0110s 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0 rows 2017.11.15 10:35:37 INFO web[][DbMigration] -- index_exists?(:project_measures, [:snapshot_id, :metric_id], {:name=>"measures_sid_metric"}) 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0.0040s 2017.11.15 10:35:37 INFO web[][DbMigration] -- add_index(:project_measures, [:snapshot_id, :metric_id], {:name=>"measures_sid_metric"}) 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0.0070s 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0 rows 2017.11.15 10:35:37 INFO web[][DbMigration] -- index_exists?(:rules_parameters, :rule_id, {:name=>"rules_parameters_rule_id"}) 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0.0030s 2017.11.15 10:35:37 INFO web[][DbMigration] -- add_index(:rules_parameters, :rule_id, {:name=>"rules_parameters_rule_id"}) 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0.0080s 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0 rows 2017.11.15 10:35:37 INFO web[][DbMigration] -- index_exists?(:snapshots, :project_id, {:name=>"snapshot_project_id"}) 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0.0040s 2017.11.15 10:35:37 INFO web[][DbMigration] -- add_index(:snapshots, :project_id, {:name=>"snapshot_project_id"}) 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0.0070s 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0 rows 2017.11.15 10:35:37 INFO web[][DbMigration] -- index_exists?(:snapshots, :parent_snapshot_id, {:name=>"snapshots_parent"}) 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0.0040s 2017.11.15 10:35:37 INFO web[][DbMigration] -- add_index(:snapshots, :parent_snapshot_id, {:name=>"snapshots_parent"}) 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0.0070s 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0 rows 2017.11.15 10:35:37 INFO web[][DbMigration] -- index_exists?(:snapshots, :root_snapshot_id, {:name=>"snapshots_root"}) 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0.0040s 2017.11.15 10:35:37 INFO web[][DbMigration] -- add_index(:snapshots, :root_snapshot_id, {:name=>"snapshots_root"}) 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0.0090s 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0 rows 2017.11.15 10:35:37 INFO web[][DbMigration] -- index_exists?(:snapshots, :qualifier, {:name=>"snapshots_qualifier"}) 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0.0050s 2017.11.15 10:35:37 INFO web[][DbMigration] -- add_index(:snapshots, :qualifier, {:name=>"snapshots_qualifier"}) 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0.0070s 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0 rows 2017.11.15 10:35:37 INFO web[][DbMigration] -- index_exists?(:metrics, :name, {:name=>"metrics_unique_name"}) 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0.0030s 2017.11.15 10:35:37 INFO web[][DbMigration] -- add_index(:metrics, :name, {:unique=>true, :name=>"metrics_unique_name"}) 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0.0060s 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0 rows 2017.11.15 10:35:37 INFO web[][DbMigration] == IndexDatabase: migrated (0.1080s) ========================================= 2017.11.15 10:35:37 INFO web[][DbMigration] 2017.11.15 10:35:37 INFO web[][DbMigration] == CreateUsers: migrating ==================================================== 2017.11.15 10:35:37 INFO web[][DbMigration] -- create_table("users", {}) 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0.0140s 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0 rows 2017.11.15 10:35:37 INFO web[][DbMigration] -- index_exists?(:users, :login, {:name=>"users_login"}) 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0.0030s 2017.11.15 10:35:37 INFO web[][DbMigration] -- add_index(:users, :login, {:name=>"users_login", :unique=>true}) 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0.0080s 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0 rows 2017.11.15 10:35:37 INFO web[][DbMigration] == CreateUsers: migrated (0.0270s) =========================================== 2017.11.15 10:35:37 INFO web[][DbMigration] 2017.11.15 10:35:37 INFO web[][DbMigration] == CreateAdministrator: migrating ============================================ 2017.11.15 10:35:37 INFO web[][DbMigration] == CreateAdministrator: migrated (0.0020s) =================================== 2017.11.15 10:35:37 INFO web[][DbMigration] 2017.11.15 10:35:37 INFO web[][DbMigration] == CreateRulesProfiles: migrating ============================================ 2017.11.15 10:35:37 INFO web[][DbMigration] -- create_table("rules_profiles", {}) 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0.0080s 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0 rows 2017.11.15 10:35:37 INFO web[][DbMigration] -- create_table("active_rules", {}) 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0.0070s 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0 rows 2017.11.15 10:35:37 INFO web[][DbMigration] -- create_table(:active_rule_parameters, {}) 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0.0070s 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0 rows 2017.11.15 10:35:37 INFO web[][DbMigration] == CreateRulesProfiles: migrated (0.0240s) =================================== 2017.11.15 10:35:37 INFO web[][DbMigration] 2017.11.15 10:35:37 INFO web[][DbMigration] == CreateSnapshotSources: migrating ========================================== 2017.11.15 10:35:37 INFO web[][DbMigration] -- create_table(:snapshot_sources, {}) 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0.0160s 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0 rows 2017.11.15 10:35:37 INFO web[][DbMigration] -- index_exists?(:snapshot_sources, :snapshot_id, {:name=>"snap_sources_snapshot_id"}) 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0.0030s 2017.11.15 10:35:37 INFO web[][DbMigration] -- add_index(:snapshot_sources, :snapshot_id, {:name=>"snap_sources_snapshot_id"}) 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0.0060s 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0 rows 2017.11.15 10:35:37 INFO web[][DbMigration] == CreateSnapshotSources: migrated (0.0270s) ================================= 2017.11.15 10:35:37 INFO web[][DbMigration] 2017.11.15 10:35:37 INFO web[][DbMigration] == CreateEventsTable: migrating ============================================== 2017.11.15 10:35:37 INFO web[][DbMigration] -- create_table(:events, {}) 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0.0080s 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0 rows 2017.11.15 10:35:37 INFO web[][DbMigration] -- index_exists?(:events, :resource_id, {:name=>"events_resource_id"}) 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0.0030s 2017.11.15 10:35:37 INFO web[][DbMigration] -- add_index(:events, :resource_id, {:name=>"events_resource_id"}) 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0.0060s 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0 rows 2017.11.15 10:35:37 INFO web[][DbMigration] -- index_exists?(:events, :snapshot_id, {:name=>"events_snapshot_id"}) 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0.0020s 2017.11.15 10:35:37 INFO web[][DbMigration] -- add_index(:events, :snapshot_id, {:name=>"events_snapshot_id"}) 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0.0060s 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0 rows 2017.11.15 10:35:37 INFO web[][DbMigration] == CreateEventsTable: migrated (0.0290s) ===================================== 2017.11.15 10:35:37 INFO web[][DbMigration] 2017.11.15 10:35:37 INFO web[][DbMigration] == CreateProperties: migrating =============================================== 2017.11.15 10:35:37 INFO web[][DbMigration] -- create_table("properties", {}) 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0.0070s 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0 rows 2017.11.15 10:35:37 INFO web[][DbMigration] -- index_exists?(:properties, :prop_key, {:name=>"properties_key"}) 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0.0020s 2017.11.15 10:35:37 INFO web[][DbMigration] -- add_index(:properties, :prop_key, {:name=>"properties_key", :length=>255}) 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0.0060s 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0 rows 2017.11.15 10:35:37 INFO web[][DbMigration] == CreateProperties: migrated (0.0170s) ====================================== 2017.11.15 10:35:37 INFO web[][DbMigration] 2017.11.15 10:35:37 INFO web[][DbMigration] == CreateMeasureData: migrating ============================================== 2017.11.15 10:35:37 INFO web[][DbMigration] -- create_table(:measure_data, {}) 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0.0070s 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0 rows 2017.11.15 10:35:37 INFO web[][DbMigration] -- index_exists?(:measure_data, :measure_id, {:name=>"measure_data_measure_id"}) 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0.0030s 2017.11.15 10:35:37 INFO web[][DbMigration] -- add_index(:measure_data, :measure_id, {:name=>"measure_data_measure_id"}) 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0.0080s 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0 rows 2017.11.15 10:35:37 INFO web[][DbMigration] -- index_exists?(:measure_data, :snapshot_id, {:name=>"m_data_sid"}) 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0.0030s 2017.11.15 10:35:37 INFO web[][DbMigration] -- add_index(:measure_data, :snapshot_id, {:name=>"m_data_sid"}) 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0.0240s 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0 rows 2017.11.15 10:35:37 INFO web[][DbMigration] == CreateMeasureData: migrated (0.0470s) ===================================== 2017.11.15 10:35:37 INFO web[][DbMigration] 2017.11.15 10:35:37 INFO web[][DbMigration] == AddProjectKeeIndex: migrating ============================================= 2017.11.15 10:35:37 INFO web[][DbMigration] -- index_exists?(:projects, :kee, {:name=>"projects_kee"}) 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0.0030s 2017.11.15 10:35:37 INFO web[][DbMigration] -- add_index(:projects, :kee, {:name=>"projects_kee", :length=>255}) 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0.0070s 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0 rows 2017.11.15 10:35:37 INFO web[][DbMigration] == AddProjectKeeIndex: migrated (0.0100s) ==================================== 2017.11.15 10:35:37 INFO web[][DbMigration] 2017.11.15 10:35:37 INFO web[][DbMigration] == CreateGroups: migrating =================================================== 2017.11.15 10:35:37 INFO web[][DbMigration] -- create_table(:groups, {}) 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0.0060s 2017.11.15 10:35:37 INFO web[][DbMigration] -> 0 rows 2017.11.15 10:35:37 INFO web[][DbMigration] == CreateGroups: migrated (0.0100s) ========================================== ............ ............
3.配置 LDAP 插件,缺少這個(gè)插件報(bào)錯(cuò):

Caused by: org.sonar.api.utils.SonarException: Realm 'LDAP' not found. Please check the property 'sonar.security.realm' in conf/sonar.properties

[root@jenkispreapp246 plugins]# ll total 51732 -rw-r--r-- 1 root root 3012713 Dec 19 2016 jacoco-0.7.7.201606060606.zip -rw-r--r-- 1 root root 128 Dec 13 2016 README.txt -rw-r--r-- 1 root root 6645997 Mar 22 2017 sonar-cfamily-plugin-4.6.0.7071.jar -rw-r--r-- 1 root root 10883208 Dec 12 2016 sonar-csharp-plugin-5.5.1.522.jar -rw-r--r-- 1 root root 9244889 Feb 19 2017 sonar-findbugs-plugin.jar -rw-r--r-- 1 root root 5997408 Feb 19 2017 sonar-java-plugin-4.5.0.8398.jar -rw-r--r-- 1 root root 2270669 May 4 2017 sonar-javascript-plugin-2.14.jar -rw-r--r-- 1 root root 35621 Feb 21 2017 sonar-l10n-zh-plugin-1.14.jar -rw-r--r-- 1 root root 4185611 Dec 19 2016 sonar-ldap-plugin-1.5.1.jar -rw-r--r-- 1 root root 14188 Dec 19 2016 sonar-motion-chart-plugin-1.7.jar -rw-r--r-- 1 root root 3233128 Dec 7 2016 sonar-scm-git-plugin-1.2.jar -rw-r--r-- 1 root root 6564536 Dec 19 2016 sonar-scm-svn-plugin-1.3.jar -rw-r--r-- 1 root root 854081 Dec 19 2016 sonar-web-plugin-2.4.jar [root@jenkispreapp246 plugins]# sz ..

配置好插件重啟。

重啟指令:?

shutdown -r now sh /opt/CI/sonarqube-6.2/bin/linux-x86-64/sonar.sh start


4.sonar 系統(tǒng)(服務(wù)器)自帶自己的用戶(hù),admin/admin? ?自己也可以 在設(shè)置里面修改


5.sonar 對(duì)應(yīng)創(chuàng)建的數(shù)據(jù)表

active_rule_parameters,? ? active_rules, authors,? ? ce_activity, ce_queue,? ?ce_scanner_context,? ?ce_task_input,? ?duplications_index, events,? ?file_sources,? ?group_roles, groups, groups_users, internal_properties,? ?issue_changes, issues, loaded_templates, manual_measures, metrics,? ?notifications, organizations,? ?perm_templates_groups, perm_templates_users, perm_tpl_characteristics, permission_templates, project_links, project_measures, project_qprofiles, projects, properties, qprofile_changes, quality_gate_conditions, quality_gates,? ?resource_index, r? ule_repositories,? rules,? rules_parameters, r ules_profiles,? ?schema_migrations,? ?snapshots,? ?user_roles, user_tokens,? ?users,? ?webhook_deliveries




總結(jié)

以上是生活随笔為你收集整理的sonar 服务器搭建 遇到各种问题的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。

主站蜘蛛池模板: 麻豆疯狂做受xxxx高潮视频 | 亚洲精品国产福利 | 欧美特一级片 | 久久羞羞| 在线观看av片| 强开小受嫩苞第一次免费视频 | 一级免费毛片 | 日本免费中文字幕 | 久久久久久色 | 国产毛毛片| 污视频在线免费观看 | 久久情趣视频 | 日本污视频在线观看 | 国产美女无遮挡永久免费观看 | 韩国成人理伦片免费播放 | 天堂中文字幕 | av 一区二区三区 | 国产成人专区 | 中文字幕在线播放一区二区 | аⅴ资源中文在线天堂 | 国产成人精品久久 | 日韩精品xxxx| 国产剧情精品 | 美女福利视频 | 日本亲与子乱xxx | 97视频免费在线观看 | 日本一级一片免费视频 | 尤物一区二区 | 涩涩av | 91超碰在线观看 | 国产女主播一区二区 | 国产欧美日韩综合精品 | 日韩有码第一页 | 亚洲淫片 | 香蕉精品视频在线观看 | 国产av一区精品 | 精品香蕉99久久久久网站 | 国产精品99久久久精品无码 | 亚洲熟妇av乱码在线观看 | 天天干天天添 | 一区二区三区欧美精品 | 一区二区三区四区五区在线视频 | 亚洲开心网 | 九九影视理伦片 | 国产成人精品一区二区无码呦 | 国产3级在线 | 精品人妻互换一区二区三区 | 国产微拍一区 | 日韩视频免费观看高清完整版在线观看 | 日韩综合精品 | 久久亚洲网站 | 国产 日韩 欧美 精品 | 香蕉污视频在线观看 | 九九热视频这里只有精品 | 免费在线国产精品 | 欧美影院久久 | 依人成人综合网 | 欧美一区二区免费在线观看 | 性做久久久久久久久 | 国产乱码av| 成人av资源| 精品少妇一区二区三区密爱 | 亚洲国产精品18久久久久久 | 欧美女人一区二区 | 劲爆欧美第一页 | 成人国产精品免费观看 | 人人澡超碰碰 | 特级淫片aaaaaaa级附近的 | 亚色91 | 另类第一页 | 中文字幕一区二区三区乱码在线 | 久久久久久穴 | 黄色的网站在线观看 | fc2ppv色の美マンに中出し | 就要操av| 欧美日韩亚洲在线观看 | 亚洲国产免费视频 | 800av在线视频 | 日批视频在线播放 | 就是喜欢被他干 | 色老板av | 国产av精国产传媒 | 天堂中文字幕免费一区 | 亚洲男人的天堂在线观看 | 暴力调教一区二区三区 | 国产裸体永久免费无遮挡 | 日韩精品一区二区三区电影 | 亚洲av无码一区二区三区网站 | 国产精品资源在线观看 | 亚洲精品一区二区三区影院忠贞 | 婷婷亚洲五月 | 视频免费在线观看 | 久久久亚洲欧美 | av不卡一区二区三区 | 久久久久久久久黄色 | 青青草偷拍视频 | 国产欧美一区二 | 亚洲一区视频在线播放 | 免费在线观看一区 |