易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 4712|回复: 3
收起左侧

启动数据库报错 line 31: return: can only `return' from a function or sourced script

[复制链接]
发表于 2020-1-1 22:10:27 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?开始注册

x
Job for mariadb.service failed because the control process exited with error code. See "systemctl status mariadb.service" and "journalctl -xe" for details.4 m# I  M. w2 i/ |( M) B4 f9 z% T
/usr/bin/galera_new_cluster: line 31: return: can only `return' from a function or sourced script
 楼主| 发表于 2020-1-1 23:13:42 | 显示全部楼层
2020-01-01 22:16:30 0 [Note] WSREP: Flow-control interval: [16, 16]
! n0 @* n5 @7 S# m7 R2020-01-01 22:16:30 0 [Note] WSREP: Trying to continue unpaused monitor' ]6 Y) l- X4 V4 n3 s
2020-01-01 22:16:30 0 [Note] WSREP: Restored state OPEN -> JOINED (0)
7 J) n8 S; ^4 S* G" m, t2020-01-01 22:16:30 0 [Note] WSREP: Member 0.0 (controller1) synced with group.
% x9 ]$ [# a; O1 r2020-01-01 22:16:30 0 [Note] WSREP: Shifting JOINED -> SYNCED (TO: 0)  c$ m" b2 k, M9 I; j1 e3 t1 O
2020-01-01 22:16:30 1 [Note] WSREP: New cluster view: global state: 4e52aaaf-2ca1-11ea-a83b-56a67df6c0f2:0, view# 1: Primary, number of nodes: 1, my index: 0, protocol version 3
9 k5 s: S6 ~  C( a2020-01-01 22:16:30 0 [Note] WSREP: SST complete, seqno: 0
4 M, J; I1 S: u: }$ Q8 b2020-01-01 22:16:30 0 [Note] InnoDB: Using Linux native AIO4 {& y  L$ F& `' o  o
2020-01-01 22:16:30 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
( H8 K$ `5 X$ i* N; e! u' r- H2020-01-01 22:16:30 0 [Note] InnoDB: Uses event mutexes: G: v' b0 u4 t. D  O
2020-01-01 22:16:30 0 [Note] InnoDB: Compressed tables use zlib 1.2.7: |# b" d& J4 R  f( n0 q
2020-01-01 22:16:30 0 [Note] InnoDB: Number of pools: 11 Q& s" P) A6 Q7 z5 B$ I
2020-01-01 22:16:30 0 [Note] InnoDB: Using SSE2 crc32 instructions+ u/ O4 q" i( T
2020-01-01 22:16:30 0 [Note] InnoDB: Initializing buffer pool, total size = 122M, instances = 1, chunk size = 122M
* Z# M8 f& |# ^/ q7 F: @+ V  J. \2020-01-01 22:16:30 0 [Note] InnoDB: Completed initialization of buffer pool
# H8 B" x% C* Z" J4 j' u2020-01-01 22:16:30 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
6 q5 `1 f  G. i' a' o  Q6 u1 o7 q. V2020-01-01 22:16:30 0 [Note] InnoDB: 128 out of 128 rollback segments are active.  D" U  g, W9 F6 r3 Z( C* j
2020-01-01 22:16:30 0 [Note] InnoDB: Creating shared tablespace for temporary tables
3 \& v' T7 S' x7 [; A5 M2020-01-01 22:16:30 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...( s  A. }9 g2 V" m
2020-01-01 22:16:30 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.' w  p9 ~, X% ^" U! J
2020-01-01 22:16:30 0 [Note] InnoDB: Waiting for purge to start
* k$ ^# O4 R! K+ z2020-01-01 22:16:30 0 [Note] InnoDB: 10.3.10 started; log sequence number 1630932; transaction id 21
! G3 d, B, ^1 A, ^! [, ?2020-01-01 22:16:30 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool  y, Q: P* F5 v
2020-01-01 22:16:30 0 [Note] InnoDB: Buffer pool(s) load completed at 200101 22:16:30
( r3 H9 @& ]6 ?2 O2020-01-01 22:16:30 0 [Note] Plugin 'FEEDBACK' is disabled.
* ~! K6 W' T) v# E) C- h# m2020-01-01 22:16:30 0 [Note] Server socket created on IP: '192.168.8.66'.7 ^: Y# Z+ S2 v+ U9 k  d
2020-01-01 22:16:30 0 [ERROR] Can't start server: Bind on TCP/IP port. Got error: 98: Address already in use; o  k* `. V1 J  `+ t' g6 g
2020-01-01 22:16:30 0 [ERROR] Do you already have another mysqld server running on port: 3306 ?+ T3 r" w' _! d" \* `
2020-01-01 22:16:30 0 [ERROR] Aborting
& V6 j5 ~' S( V0 \6 p( n: `* N& O' \4 s2 t$ @  s0 W3 L+ L8 h
Error in my_thread_global_end(): 1 threads didn't exit
 楼主| 发表于 2020-1-1 23:17:29 | 显示全部楼层
发现是port被占用了。知道原因了,需要重新调整方案。haproxy的左右导致端口冲突。" Z% G; `% i4 J
解决端口问题即可。
 楼主| 发表于 2020-1-1 23:19:52 | 显示全部楼层
/usr/bin/galera_new_cluster: line 31: return: can only `return' from a function or sourced script
4 A$ a" C8 H6 e0 o6 t( Q这个表示暂时的告警。
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

站长推荐上一条 /4 下一条

北京云银创陇科技有限公司以云计算运维,代码开发

QQ|返回首页|Archiver|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )点击这里给我发消息

GMT+8, 2026-4-8 21:37 , Processed in 0.044588 second(s), 22 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

快速回复 返回顶部 返回列表