易陆发现论坛

 找回密码
 开始注册
查看: 362|回复: 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.0 c1 s1 \2 w2 N4 q; A
/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]
7 s; i# V% m' j: g& t9 [6 A2020-01-01 22:16:30 0 [Note] WSREP: Trying to continue unpaused monitor
3 W) n  x0 q- y: U& U6 W" Y4 }( d2020-01-01 22:16:30 0 [Note] WSREP: Restored state OPEN -> JOINED (0)% C# d3 W8 a6 s# C! D! L" K6 T
2020-01-01 22:16:30 0 [Note] WSREP: Member 0.0 (controller1) synced with group.
2 S6 x7 s1 ]8 m8 {" Z5 j% }) q5 F5 V2020-01-01 22:16:30 0 [Note] WSREP: Shifting JOINED -> SYNCED (TO: 0)
9 S4 R, A5 h9 R) y  d2020-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 34 Z# P7 h. \# I# o/ G* w# X
2020-01-01 22:16:30 0 [Note] WSREP: SST complete, seqno: 0% P/ u3 A2 Y: ~
2020-01-01 22:16:30 0 [Note] InnoDB: Using Linux native AIO
' h( h+ E# V. h6 Q! ~: C2020-01-01 22:16:30 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins; u/ y' q9 O6 G, T; }$ _8 N% o
2020-01-01 22:16:30 0 [Note] InnoDB: Uses event mutexes
) C% E( y! e9 u- {) t) ^3 H, P2020-01-01 22:16:30 0 [Note] InnoDB: Compressed tables use zlib 1.2.7
9 w' f" D$ n0 i" I5 n& i* n4 N2020-01-01 22:16:30 0 [Note] InnoDB: Number of pools: 1
% \# z" E3 K# K3 O2020-01-01 22:16:30 0 [Note] InnoDB: Using SSE2 crc32 instructions- |( d, L) Z4 ?( \, p
2020-01-01 22:16:30 0 [Note] InnoDB: Initializing buffer pool, total size = 122M, instances = 1, chunk size = 122M
/ X6 @# C( {: p- J# Q+ X2020-01-01 22:16:30 0 [Note] InnoDB: Completed initialization of buffer pool2 O! T" t. r3 F2 V2 n/ D, }
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().
; S0 g4 \4 M3 J1 v2020-01-01 22:16:30 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
* j) Z, s* V2 L$ H# E* b1 b2020-01-01 22:16:30 0 [Note] InnoDB: Creating shared tablespace for temporary tables
0 z+ }# H6 H) q; ?  q- \9 N2020-01-01 22:16:30 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
" x1 V1 w5 e- ~3 i" ]2020-01-01 22:16:30 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.8 M# [+ l8 R) H4 S: W+ d
2020-01-01 22:16:30 0 [Note] InnoDB: Waiting for purge to start: w, D5 u0 y1 m5 w8 q0 R
2020-01-01 22:16:30 0 [Note] InnoDB: 10.3.10 started; log sequence number 1630932; transaction id 214 e& g; R0 Z0 ^2 L
2020-01-01 22:16:30 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool: r$ d) n8 W# @( y) O
2020-01-01 22:16:30 0 [Note] InnoDB: Buffer pool(s) load completed at 200101 22:16:30
5 x/ q9 I+ I; d/ w: U7 h- ~( f% N0 m) l2020-01-01 22:16:30 0 [Note] Plugin 'FEEDBACK' is disabled.8 n  d  X5 ~" g& C
2020-01-01 22:16:30 0 [Note] Server socket created on IP: '192.168.8.66'.
* U3 g" g8 S' b- O2 W/ F2 L2020-01-01 22:16:30 0 [ERROR] Can't start server: Bind on TCP/IP port. Got error: 98: Address already in use3 z7 H* {$ ^2 y2 I8 v
2020-01-01 22:16:30 0 [ERROR] Do you already have another mysqld server running on port: 3306 ?
* n- b3 N3 o& m, O, i7 P- Y2020-01-01 22:16:30 0 [ERROR] Aborting
$ n# h2 S  W* i; j' l- i) i$ B
" G5 Y& z  J% G1 Z  ^3 y% xError in my_thread_global_end(): 1 threads didn't exit
 楼主| 发表于 2020-1-1 23:17:29 | 显示全部楼层
发现是port被占用了。知道原因了,需要重新调整方案。haproxy的左右导致端口冲突。8 C0 @2 e7 i% f/ C# `% I) W0 T0 |8 Q
解决端口问题即可。
 楼主| 发表于 2020-1-1 23:19:52 | 显示全部楼层
/usr/bin/galera_new_cluster: line 31: return: can only `return' from a function or sourced script
) |4 B* Q/ h9 ?4 x( w这个表示暂时的告警。
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

如有购买积分卡请联系497906712

QQ|返回首页|Archiver|手机版|小黑屋|易陆发现 点击这里给我发消息

GMT+8, 2020-3-30 08:23 , Processed in 0.055180 second(s), 19 queries .

Powered by 龙睿 bbs168x X3.2

© 2001-2020 Comsenz Inc.

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