找回密码
 注册
查看: 4717|回复: 3

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

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2020-1-1 22:10:27 | 显示全部楼层 |阅读模式
Job for mariadb.service failed because the control process exited with error code. See "systemctl status mariadb.service" and "journalctl -xe" for details.
" K7 n2 j' V9 s3 K2 y/ Y/usr/bin/galera_new_cluster: line 31: return: can only `return' from a function or sourced script

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2020-1-1 23:13:42 | 显示全部楼层
2020-01-01 22:16:30 0 [Note] WSREP: Flow-control interval: [16, 16]
/ U# q* v- S& ^1 K2020-01-01 22:16:30 0 [Note] WSREP: Trying to continue unpaused monitor
6 z: J3 L; A0 J. O2020-01-01 22:16:30 0 [Note] WSREP: Restored state OPEN -> JOINED (0)
2 O. H/ b$ A! b4 E, y; l# i2020-01-01 22:16:30 0 [Note] WSREP: Member 0.0 (controller1) synced with group.& A# g' y1 F' {% W5 ?5 N
2020-01-01 22:16:30 0 [Note] WSREP: Shifting JOINED -> SYNCED (TO: 0)
! l0 ?7 ^4 o) c9 c+ W2020-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
! I& [6 k  j& ]* d8 u' q( J2020-01-01 22:16:30 0 [Note] WSREP: SST complete, seqno: 0
- Z1 n! X5 W* J( e* F3 u2020-01-01 22:16:30 0 [Note] InnoDB: Using Linux native AIO3 l4 ]5 e' P) r7 R0 j& \. H  Z
2020-01-01 22:16:30 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
8 t8 ?8 O3 p9 X5 w3 d3 H2020-01-01 22:16:30 0 [Note] InnoDB: Uses event mutexes
: i1 c0 w# h! N2020-01-01 22:16:30 0 [Note] InnoDB: Compressed tables use zlib 1.2.7
' u( |5 {7 b& s3 u( u! {. n$ {2020-01-01 22:16:30 0 [Note] InnoDB: Number of pools: 15 g) M: i1 I9 N8 G2 k4 y! J% k" R: f
2020-01-01 22:16:30 0 [Note] InnoDB: Using SSE2 crc32 instructions& x# [0 h5 K" Q( j
2020-01-01 22:16:30 0 [Note] InnoDB: Initializing buffer pool, total size = 122M, instances = 1, chunk size = 122M
9 \8 g- X2 f+ }  u% l4 ]8 C# o' ]2020-01-01 22:16:30 0 [Note] InnoDB: Completed initialization of buffer pool
$ ]# a0 v# v& Z' l5 h2020-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().
7 q3 c0 e9 P1 \# g6 M- Y3 _/ N2020-01-01 22:16:30 0 [Note] InnoDB: 128 out of 128 rollback segments are active.# ]9 ~0 L, x2 y( z- P
2020-01-01 22:16:30 0 [Note] InnoDB: Creating shared tablespace for temporary tables
: o# P1 O# D( O2020-01-01 22:16:30 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...1 y& a; X! G1 j# z* J
2020-01-01 22:16:30 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.0 w( b# r% Q# @( H1 p0 p4 h6 U; V$ H
2020-01-01 22:16:30 0 [Note] InnoDB: Waiting for purge to start
3 W8 b# V3 q" q& a! D% g( Y4 R4 k- {2020-01-01 22:16:30 0 [Note] InnoDB: 10.3.10 started; log sequence number 1630932; transaction id 21  O+ D/ L2 \( W
2020-01-01 22:16:30 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool$ X1 H& N' ]8 o9 M
2020-01-01 22:16:30 0 [Note] InnoDB: Buffer pool(s) load completed at 200101 22:16:30  d5 U! E9 U. X. A9 |0 z& r
2020-01-01 22:16:30 0 [Note] Plugin 'FEEDBACK' is disabled.
8 F! H/ G! L2 ?5 u" v$ T2020-01-01 22:16:30 0 [Note] Server socket created on IP: '192.168.8.66'.! D4 z/ E5 `! x. X( A0 Q+ L$ e/ W& f
2020-01-01 22:16:30 0 [ERROR] Can't start server: Bind on TCP/IP port. Got error: 98: Address already in use
1 u. n) S; G1 p( s- N/ }2020-01-01 22:16:30 0 [ERROR] Do you already have another mysqld server running on port: 3306 ?: r3 i7 e7 _; Y( z5 y
2020-01-01 22:16:30 0 [ERROR] Aborting, \+ Q! P7 Q( Z1 E- C- h" T

2 t7 }; u) C( b: {Error in my_thread_global_end(): 1 threads didn't exit

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2020-1-1 23:17:29 | 显示全部楼层
发现是port被占用了。知道原因了,需要重新调整方案。haproxy的左右导致端口冲突。! ?2 p3 O: l4 B  N6 T8 B6 p
解决端口问题即可。

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2020-1-1 23:19:52 | 显示全部楼层
/usr/bin/galera_new_cluster: line 31: return: can only `return' from a function or sourced script
3 k9 \2 ?. w: n1 I( j$ }6 l这个表示暂时的告警。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 04:28 , Processed in 0.019372 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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