易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 4713|回复: 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.
8 Z# k- r; N# Y/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]
, @9 V# k7 W0 D0 z# W! p- l+ {2020-01-01 22:16:30 0 [Note] WSREP: Trying to continue unpaused monitor: E5 ?: G# x  V, [
2020-01-01 22:16:30 0 [Note] WSREP: Restored state OPEN -> JOINED (0)
$ `+ ~( N% m4 `( v; @, P3 ~, I" ]2020-01-01 22:16:30 0 [Note] WSREP: Member 0.0 (controller1) synced with group./ I% }2 `* b$ Q8 r8 b# C: b( a
2020-01-01 22:16:30 0 [Note] WSREP: Shifting JOINED -> SYNCED (TO: 0)+ R, l) E/ y; B
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  G! m: x1 @/ f/ }
2020-01-01 22:16:30 0 [Note] WSREP: SST complete, seqno: 05 ~0 l/ V6 |% O  W& Z8 u
2020-01-01 22:16:30 0 [Note] InnoDB: Using Linux native AIO
# Z, @  \& H2 G; f! k* {2020-01-01 22:16:30 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins4 ~* a! }1 y/ k# f( h& P) r- K7 a
2020-01-01 22:16:30 0 [Note] InnoDB: Uses event mutexes
" p- [/ y' ?; R- L4 e) w; H2020-01-01 22:16:30 0 [Note] InnoDB: Compressed tables use zlib 1.2.7
: k' o. r2 ?6 O2 `* H8 h2020-01-01 22:16:30 0 [Note] InnoDB: Number of pools: 1
7 Z8 @( r  a+ ?1 D: K# {2020-01-01 22:16:30 0 [Note] InnoDB: Using SSE2 crc32 instructions& ~8 a  f# i7 A7 v( f2 k
2020-01-01 22:16:30 0 [Note] InnoDB: Initializing buffer pool, total size = 122M, instances = 1, chunk size = 122M9 ~9 G' O* \4 }0 ^
2020-01-01 22:16:30 0 [Note] InnoDB: Completed initialization of buffer pool7 b+ F" P' z9 P* b: Y! W& u
2020-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().
$ ?: r) N8 V* _( |$ {" c  x2020-01-01 22:16:30 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
+ O( v! [* y! O9 N+ R" a2020-01-01 22:16:30 0 [Note] InnoDB: Creating shared tablespace for temporary tables& o! z, u: P) F/ p) T
2020-01-01 22:16:30 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
" G* O6 f0 G4 S( ~  M8 t" q2020-01-01 22:16:30 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2 x! C* P* I7 X9 M- Q( J* \9 K+ B2020-01-01 22:16:30 0 [Note] InnoDB: Waiting for purge to start
) y5 J. F  i2 ?# I2 j2020-01-01 22:16:30 0 [Note] InnoDB: 10.3.10 started; log sequence number 1630932; transaction id 21) m- |+ C1 A4 o: [3 _) ?
2020-01-01 22:16:30 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2 v" |  ?8 q4 K/ x* m$ c+ z6 T' e2020-01-01 22:16:30 0 [Note] InnoDB: Buffer pool(s) load completed at 200101 22:16:30. s" j2 ?  b- |. p
2020-01-01 22:16:30 0 [Note] Plugin 'FEEDBACK' is disabled., c% {: [* B6 W
2020-01-01 22:16:30 0 [Note] Server socket created on IP: '192.168.8.66'.
: z! L! w4 Y5 \: L* N. D2020-01-01 22:16:30 0 [ERROR] Can't start server: Bind on TCP/IP port. Got error: 98: Address already in use& A5 E  r5 u& P, O' e; |$ U5 x* I
2020-01-01 22:16:30 0 [ERROR] Do you already have another mysqld server running on port: 3306 ?
" r7 u7 k2 s+ ^- }% T& L2020-01-01 22:16:30 0 [ERROR] Aborting' ^% b: @* Y& k2 z3 `0 O7 E
  ?( y1 k2 j6 b# Z* K, T
Error in my_thread_global_end(): 1 threads didn't exit
 楼主| 发表于 2020-1-1 23:17:29 | 显示全部楼层
发现是port被占用了。知道原因了,需要重新调整方案。haproxy的左右导致端口冲突。
3 n& h9 ]! U# ?7 p) v解决端口问题即可。
 楼主| 发表于 2020-1-1 23:19:52 | 显示全部楼层
/usr/bin/galera_new_cluster: line 31: return: can only `return' from a function or sourced script
$ i1 }% a) d7 u9 H3 K. W这个表示暂时的告警。
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

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

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

GMT+8, 2026-4-8 23:59 , Processed in 0.047202 second(s), 22 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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