Coder Social home page Coder Social logo

dnf's People

Contributors

1995chen avatar lufeicheng avatar spacevector avatar xanderye avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

dnf's Issues

server启动失败

服务启动失败,日志为:
$ more Log20221010.init [14:34:25] [!] Init Taiwan Garena Auth Key ... publickey.pem Success [14:34:25] [!] Init GlobalData ... [14:34:25] - DBConnector Init(masterdb 127.0.0.1/3306/game/d_taiwan) Success [14:34:25] - DBConnector Get Connection Info Success [14:34:25] - Open DB ... [14:34:25] - Open(type: 1, 127.0.0.1/3306/game/d_taiwan [14:34:25] - Open(type: 2, 127.0.0.1/3306/game/taiwan_cain [14:34:25] - Open(type: 3, 127.0.0.1/3306/game/taiwan_cain_2nd [14:34:25] - Open(type: 4, 127.0.0.1/3306/game/taiwan_cain_log [14:34:25] - Open(type: 6, 127.0.0.1/3306/game/taiwan_login [14:34:25] - Open(type: 7, 127.0.0.1/3306/game/taiwan_prod [14:34:25] - Open(type: 8, 127.0.0.1/3306/game/d_guild [14:34:25] - Open(type: 9, 127.0.0.1/3306/game/taiwan_game_event [14:34:25] - Open(type:10, 127.0.0.1/3306/game/d_taiwan_secu [14:34:25] - Open(type:11, 127.0.0.1/3306/game/taiwan_login_play [14:34:25] - Open(type:12, 127.0.0.1/3306/game/taiwan_cain_auction_gold [14:34:25] - Open(type:13, 127.0.0.1/3306/game/taiwan_se_event [14:34:25] - Open(type:14, 127.0.0.1/3306/game/taiwan_billing [14:34:25] - All DB Open Success [14:34:25] - Init Query Table Success [14:34:25] - Load GM List From DB [14:34:25] - GM m_id: [14:34:25] captcha data initialization failed [14:34:25] [!] Init GlobalData Fail

我在一台内存足够大的设备上运行server。运行命令如下:
docker run -d -e PUBLIC_IP=10.0.22.117 -e DNF_DB_ROOT_PASSWORD=88888888 -e GM_ACCOUNT=dpeng -e GM_PASSWORD=123456 -v /mnt/ssd/dpeng/software/mydata/log:/home/neople/game/log -v /mnt/ssd/dpeng/software/mydata/mysql:/var/lib/mysql -v /mnt/ssd/dpeng/software/mydata/data:/data -p 3000:3306/tcp -p 7600:7600/tcp -p 881:881/tcp -p 20303:20303/tcp -p 20303:20303/udp -p 20403:20403/tcp -p 20403:20403/udp -p 40403:40403/tcp -p 40403:40403/udp -p 7000:7000/tcp -p 7000:7000/udp -p 7001:7001/tcp -p 7001:7001/udp -p 7200:7200/tcp -p 7200:7200/udp -p 10011:10011/tcp -p 31100:31100/tcp -p 30303:30303/tcp -p 30303:30303/udp -p 30403:30403/tcp -p 30403:30403/udp -p 10052:10052/tcp -p 20011:20011/tcp -p 20203:20203/tcp -p 20203:20203/udp -p 30703:30703/udp -p 11011:11011/udp -p 2311-2313:2311-2313/udp -p 30503:30503/udp -p 11052:11052/udp --cpus=32 --memory=64g --memory-swap=-1 --shm-size=16g --name=mydata 1995chen/dnf

镜像版本:1995chen/dnf:latest

arm设备如何折腾?

运行提示
Status: Downloaded newer image for 1995chen/dnf:stable
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
exec /bin/bash: exec format error

可否将启动服务的命令从systemctl更换为service?

用docker pull下来后如果是用systemctl start mysqld总会出现Failed to get D-Bus connection: Operation not permitted的问题,这好像是因为docker的权限问题导致,可否更改为用service命令启动?如果你觉得麻烦,可以说下如何让用户自己修改吗?

sh get-docker.sh这步报错

Executing docker install script, commit: e5543d473431b782227f8908005543bb4389b8de

ERROR: Unsupported distribution ''

错误是这样的,用的CentOS6.9报的错。

没有五国

您好
container启动数十分钟也没有五国
docker 的log如下
2024-07-18 06:45:28,731 INFO spawned: 'relay' with pid 5196
2024-07-18 06:45:29,382 INFO exited: bridge (exit status 0; expected)
2024-07-18 06:45:30,386 INFO spawned: 'bridge' with pid 5216
2024-07-18 06:45:30,387 INFO success: relay entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-07-18 06:45:30,809 INFO exited: relay (exit status 0; expected)
2024-07-18 06:45:31,812 INFO success: bridge entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-07-18 06:45:31,816 INFO spawned: 'relay' with pid 5234
2024-07-18 06:45:32,412 INFO exited: bridge (exit status 0; expected)
2024-07-18 06:45:33,417 INFO spawned: 'bridge' with pid 5254
2024-07-18 06:45:33,418 INFO success: relay entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-07-18 06:45:33,840 INFO exited: relay (exit status 0; expected)
2024-07-18 06:45:34,842 INFO success: bridge entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-07-18 06:45:34,846 INFO spawned: 'relay' with pid 5263
2024-07-18 06:45:35,445 INFO exited: bridge (exit status 0; expected)
2024-07-18 06:45:36,450 INFO spawned: 'bridge' with pid 5283
2024-07-18 06:45:36,450 INFO success: relay entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-07-18 06:45:36,869 INFO exited: relay (exit status 0; expected)
2024-07-18 06:45:37,871 INFO success: bridge entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-07-18 06:45:37,875 INFO spawned: 'relay' with pid 5301

内存磁盘 均够用
df -h
Filesystem Size Used Avail Use% Mounted on
udev 7.8G 0 7.8G 0% /dev
tmpfs 1.6G 2.1M 1.6G 1% /run
/dev/vda1 49G 27G 22G 55% /

free -m
total used free shared buff/cache available
Mem: 15994 4239 9249 230 2504 11186
Swap: 0 0 0

没更换过pvf

卡在了Init DataManager ...

/data/log/siroco11/Log20220121.init 文件中停留在了 /data/log/siroco11/Log20220121.init,docker logs 信息

2-01-21 10:51:00.438995[INFO]------------------------------------------------------------------------------------------------------
2022-01-21 10:51:00.439061[INFO]------------------------------------------------------------------------------------------------------
2022-01-21 10:51:00.439066[INFO]------------------------------------------------------------------------------------------------------
2022-01-21 10:51:00.439070[INFO][framework] gunnersvr start init
2022-01-21 10:51:00.439076[INFO][framework] change work dir to /home/neople/secsvr/gunnersvr
2022-01-21 10:51:00.440121[INFO]------------------------------------------------------------------------------------------------------
2022-01-21 10:51:00.440174[INFO]------------------------------------------------------------------------------------------------------
2022-01-21 10:51:00.440179[INFO]------------------------------------------------------------------------------------------------------
2022-01-21 10:51:00.440183[INFO][framework] zergsvr start init
2022-01-21 10:51:00.440188[INFO][framework] change work dir to /home/neople/secsvr/zergsvr
2022-01-21 10:51:00.442367[INFO]------------------------------------------------------------------------------------------------------
2022-01-21 10:51:00.442431[INFO]------------------------------------------------------------------------------------------------------
2022-01-21 10:51:00.442436[INFO]------------------------------------------------------------------------------------------------------
2022-01-21 10:51:00.442439[INFO][framework] secagent start init
2022-01-21 10:51:00.442445[INFO][framework] change work dir to /home/neople/secsvr/zergsvr
2022-01-21 10:51:00.454319[INFO][framework] cfgsdk init succ. start task succ
2022-01-21 10:51:00.454440[INFO][framework] cfgsdk init succ. start task succ
2022-01-21 10:51:00.454529[INFO][framework] cfgsdk init succ. start task succ
2022-01-21 10:51:00.458351[INFO]Comm_Svrd_Config: load framework config succ.
2022-01-21 10:51:00.459421[INFO]Comm_Svrd_Config: load framework config succ.
2022-01-21 10:51:00.687233[DEBUG][framework] ZEN_Reactor and ZEN_Epoll_Reactor initialized.
2022-01-21 10:51:00.674726[DEBUG][framework] ZEN_Reactor and ZEN_Epoll_Reactor initialized.
2022-01-21 10:51:00.837926[DEBUG][framework] ZEN_Reactor and ZEN_Epoll_Reactor initialized.
2022-01-21 10:51:00.857022[ERROR][zenlib] ZEN_Bus_MMAPPipe::initialize pipe[1] size[52428800] room[52428828] fail.
2022-01-21 10:51:00.857056[INFO][framework] Zerg_MMAP_BusPipe::instance()->init_by_cfg fail,ret = -1.
2022-01-21 10:51:00.857067[ERROR]application: init_instance fail. ret=-1
2022-01-21 10:51:01.684720[INFO][framework] MMAP Pipe init success,gogogo.The more you have,the more you want.
2022-01-21 10:51:01.675102[INFO][framework] MMAP Pipe init success,gogogo.The more you have,the more you want.
2022-01-21 10:51:02.281185[DEBUG]log instance finalize .
2022-01-21 10:51:02.281338[DEBUG]log instance finalize .
start game use LD_PRELOAD mode

_S_MOD_DB_RECONNECT_FOR_AUCTION_TAIWAN_
_S_MOD_USE_MYSQL_OPT_RECONNECT_
In LinuxService::processCommandLine
In ServiceInfo::setInfo
In ServiceInfo::setPIDFileName
Out ServiceInfo::setPIDFileName
Out ServiceInfo::setInfo
19�� signal ���� ����
Called readConfig
Called load_script
[!] Server environment(./cfg/auction_siroco.cfg) script loading : ./cfg/auction_siroco.cfg
[CServerXml] <event_str> Tag Skip!!
[CServerXml] <str> Tag Skip!!
OK readConfig()
ServiceName='./df_auction_r'
������ ������ ����~
ProcessCommandLine5
In LinuxService::checkConfigFile

In LinuxService::start
Run As Service

In make_dir
Out make_dir
Called readConfig
Called load_script
[!] Server environment(./cfg/auction_siroco.cfg) script loading : ./cfg/auction_siroco.cfg
[CServerXml] <event_str> Tag Skip!!
[CServerXml] <str> Tag Skip!!
OK readConfig()
pid file_path-pid/auction_siroco.pid
Out LinuxService::start
Out LinuxService::processCommandLine
In LinuxService::main
Called readConfig
Called load_script
[!] Server environment(./cfg/auction_siroco.cfg) script loading : ./cfg/auction_siroco.cfg
[CServerXml] <event_str> Tag Skip!!
[CServerXml] <str> Tag Skip!!
OK readConfig()
Called prepareRun
Start PortInfo~
Start Threads~
Start SessionPools~
Start Reactor~
Start EncryptTools~
_ServiceFactoryName-./df_auction_r
_ServiceConfigName-./cfg/auction_siroco.cfg
Called run
���� ���̺귯�� ���� ����...
2
2
TCPSendThread ��ü �Ϸ�...
TimerThread ��ü ����...
TimerThread ��ü �Ϸ�...
TCPThread ��ü ����...
TCPThread ��ü �Ϸ�...
NSLDBThread ��ü ����...
NSLDBThread ��ü �Ϸ�...
TCPDispatcher has been created...
InterDispatcher has been created...
DBDispatcher ��ü �Ϸ�...
������ ������ ���� ����
0�� workThread ���� ����
NSLDBThread 0 �� ���� ����-0x8ad00c8
Start up TCPSendThread-0x8acf838
TimerThread ���� ����-0x8acfdc8

=====================DB config check=========================
Game DB IP      : 127.0.0.1
Game DB PORT    : 3306
Game DB Account : game
Game DB Password: 20e35501e56fcedbe8b10c1f8bc3595be8b10c1f8bc3595b
Game DB Name    : taiwan_cain_2nd
Auction DB IP      : 127.0.0.1
Auction DB PORT    : 3306
Auction DB Account : game
Auction DB Password: 20e35501e56fcedbe8b10c1f8bc3595be8b10c1f8bc3595b
Auction DB Name    : taiwan_cain_auction_gold
=====================DB config check=========================

127.0.0.1 taiwan_cain_2nd SUCCESS
127.0.0.1 taiwan_cain_auction_gold SUCCESS
TCPThread ���� ����-0x8ad00a8
------------------------------------------
-		Server Frame Start Ver1.0       -
------------------------------------------
Start up TCPThread
Epoll init::6000
succeeded in binding TCP socket port #30803
***************Fail to exec(select count(*) from auction_history). process exits.************
_S_MOD_DB_RECONNECT_FOR_AUCTION_TAIWAN_
_S_MOD_USE_MYSQL_OPT_RECONNECT_
In LinuxService::processCommandLine
In ServiceInfo::setInfo
In ServiceInfo::setPIDFileName
Out ServiceInfo::setPIDFileName
Out ServiceInfo::setInfo
19�� signal ���� ����
Called readConfig
Called load_script
[!] Server environment(./cfg/point_siroco.cfg) script loading : ./cfg/point_siroco.cfg
[CServerXml] <event_str> Tag Skip!!
[CServerXml] <str> Tag Skip!!
OK readConfig()
ServiceName='df_point_r'
������ ������ ����~
ProcessCommandLine5
In LinuxService::checkConfigFile

In LinuxService::start
Run As Service

In make_dir
Out make_dir
Called readConfig
Called load_script
[!] Server environment(./cfg/point_siroco.cfg) script loading : ./cfg/point_siroco.cfg
[CServerXml] <event_str> Tag Skip!!
[CServerXml] <str> Tag Skip!!
OK readConfig()
pid file_path-pid/point_siroco.pid
Out LinuxService::start
Out LinuxService::processCommandLine
In LinuxService::main
Called readConfig
Called load_script
[!] Server environment(./cfg/point_siroco.cfg) script loading : ./cfg/point_siroco.cfg
[CServerXml] <event_str> Tag Skip!!
[CServerXml] <str> Tag Skip!!
OK readConfig()
Called prepareRun
Start PortInfo~
Start Threads~
Start SessionPools~
Start Reactor~
Start EncryptTools~
_ServiceFactoryName-df_point_r
_ServiceConfigName-./cfg/point_siroco.cfg
Called run
���� ���̺귯�� ���� ����...
2
2
TCPSendThread ��ü �Ϸ�...
TimerThread ��ü ����...
TimerThread ��ü �Ϸ�...
TCPThread ��ü ����...
TCPThread ��ü �Ϸ�...
NSLDBThread ��ü ����...
NSLDBThread ��ü �Ϸ�...
TCPDispatcher has been created...
InterDispatcher has been created...
DBDispatcher ��ü �Ϸ�...
������ ������ ���� ����
0�� workThread ���� ����
NSLDBThread 0 �� ���� ����-0x8da60c8
TimerThread ���� ����-0x8da5dc8
Start up TCPSendThread-0x8da5838

=====================DB config check=========================
Game DB IP      : 127.0.0.1
Game DB PORT    : 3306
Game DB Account : game
Game DB Password: 20e35501e56fcedbe8b10c1f8bc3595be8b10c1f8bc3595b
Game DB Name    : taiwan_cain_2nd
Auction DB IP      : 127.0.0.1
Auction DB PORT    : 3306
Auction DB Account : game
Auction DB Password: 20e35501e56fcedbe8b10c1f8bc3595be8b10c1f8bc3595b
Auction DB Name    : taiwan_cain_auction_cera
=====================DB config check=========================

127.0.0.1 taiwan_cain_2nd SUCCESS
127.0.0.1 taiwan_cain_auction_cera SUCCESS
TCPThread ���� ����-0x8da60a8
------------------------------------------
-		Server Frame Start Ver1.0       -
------------------------------------------
Start up TCPThread
Epoll init::6000
succeeded in binding TCP socket port #30603
***************Fail to exec(select count(*) from auction_history). process exits.************
**********************************************************
* +---   +-+ +  +----         DUNGEON & FIGHTER          *
* |   |  | | |  |                                        *
* |   |  | | |  +----                                    *
* |   |  | | |  |      Open Beta Test on 2005.08.10~     *
* +---   + +-+  |      Copyright(c) 2004,2005 Neople Co. *
**********************************************************
[!] Service Date (22-01-21/10:51)
[!] Check Args ...
m_Server_info.lls_key,: 3240332317335214766634233322344377569687
lls_key :: 3240332317335214766634233322344377569687
[!] Server key Check OK
	- cfg path: ./cfg/siroco11.cfg
	- pid path: ./pid/siroco11.pid
m_Server_info.lls_key,: 3240332317335214766634233322344377569687
lls_key :: 3240332317335214766634233322344377569687
[!] Server key Check OK
	- cfg path: ./cfg/siroco11.cfg
	- pid path: ./pid/siroco11.pid
[!] Check Args Success
[!] Init Log ...
	- log path: ./log/siroco11/
[!] Init Log Success

**********************************************************
* +---   +-+ +  +----         DUNGEON & FIGHTER          *
* |   |  | | |  |                                        *
* |   |  | | |  +----                                    *
* |   |  | | |  |      Open Beta Test on 2005.08.10~     *
* +---   + +-+  |      Copyright(c) 2004,2005 Neople Co. *
**********************************************************
[!] Service Date (22-01-21/10:51)
[!] Check Args ...
m_Server_info.lls_key,: 3240332317335214766634233322344377569687
lls_key :: 3240332317335214766634233322344377569687
[!] Server key Check OK
	- cfg path: ./cfg/siroco52.cfg
	- pid path: ./pid/siroco52.pid
[!] Check Args Success
[!] Init Log ...
	- log path: ./log/siroco52/
[!] Init Log Success
m_Server_info.lls_key,: 3240332317335214766634233322344377569687
lls_key :: 3240332317335214766634233322344377569687
[!] Server key Check OK
	- cfg path: ./cfg/siroco52.cfg
	- pid path: ./pid/siroco52.pid

**********************************************************
* +---   +-+ +  +----         DUNGEON & FIGHTER          *
* |   |  | | |  |                                        *
* |   |  | | |  +----                                    *
* |   |  | | |  |      Open Beta Test on 2005.08.10~     *
* +---   + +-+  |      Copyright(c) 2004,2005 Neople Co. *
**********************************************************
[!] Service Date (22-01-21/10:51)
Application Init() Success!
Application Load() Success!
---Time : 10, 52 ----
avgPing(0, 0, 0)
avgPing Res(0)
avgPing(0, 0, 0)
avgPing Res(0)
---Time : 10, 53 ----
avgPing(0, 0, 0)
avgPing Res(0)
avgPing(0, 0, 0)
avgPing Res(0)
---Time : 10, 54 ----
avgPing(0, 0, 0)
avgPing Res(0)

请问如何挂载dp

我试过修改/root/run文件
if $PRELOAD_LD;then
LD_PRELOAD=/lib/libhook.so ./df_game_r siroco11 start &
sleep 2
LD_PRELOAD=/lib/libhook.so ./df_game_r siroco52 start &
else
./df_game_r siroco11 start &
sleep 2
./df_game_r siroco52 start &
fi
。修改为
LD_PRELOAD=/data/ext/dp2.6/dp2/libdp2pre.so ./df_game_r siroco11 start &
LD_PRELOAD=/data/ext/dp2.6/dp2/libdp2pre.so ./df_game_r siroco52 start &
,但是重启docker之后又恢复成上面的了

进入频道报错

[17:26:51] virtual void MonitorTcpThread::dispatch(void*)(1876): AUCTION - invoke InitTcp() by time out or disconnect
[17:26:51] virtual void MonitorTcpThread::dispatch(void*)(1932): Cera AUCTION - invoke InitTcp() by time out or disconnect
[17:26:51] bool BaseServerProxy::SendTcpPacket(char*, int)(349): cannot send packet because Auction Server is disconnected
[17:26:51] send_packet(687): SEND ERROR DISCONNNECT NOW FD[61] : 32(Broken pipe)
[17:26:51] int BaseServerProxy::OnTcpSend()(399): Auction Server OnSend() Socket[61] Error(Broken pipe)
[17:26:51] int BaseServerProxy::OnTcpSend()(402): Disconnect to Auction Server (send_packet() returns minus value)
[17:26:51] virtual void BaseServerProxy::Disconnect()(328): BaseServerProxy::Disconnect(), ServerName:Auction Server,SocketState:1,IP:127.0.0.1,Port:30803,Socket:61
[17:26:51] bool BaseServerProxy::SendTcpPacket(char*, int)(349): cannot send packet because Cera Auction Server is disconnected
[17:26:51] send_packet(687): SEND ERROR DISCONNNECT NOW FD[62] : 32(Broken pipe)
[17:26:51] int BaseServerProxy::OnTcpSend()(399): Cera Auction Server OnSend() Socket[62] Error(Broken pipe)
[17:26:51] int BaseServerProxy::OnTcpSend()(402): Disconnect to Cera Auction Server (send_packet() returns minus value)
[17:26:51] virtual void BaseServerProxy::Disconnect()(328): BaseServerProxy::Disconnect(), ServerName:Cera Auction Server,SocketState:1,IP:127.0.0.1,Port:30603,Socket:62
[17:26:55] void CUser::DisConnSig(DISCONN_SIG, bool, int)(2359): from (10) m_id[0] uid[7], send(0:1), recv(1), ip(120.245.112.126), dungeon(-1)
[17:26:55] void CUser::UpdateLogout(bool)(8928): trace mid:7 playTime:0 login_time:0 now_time:1671960415
[17:26:55] void CUser::UpdateLogout(bool)(8930): trace mid:7 playTime:0 login_time:1671960415 now_time:1671960415

使用 fallocate 命令快速生成 Swap 文件

root@ubuntu ~# time /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=8000
8000+0 records in
8000+0 records out
8388608000 bytes (8.4 GB, 7.8 GiB) copied, 65.5449 s, 128 MB/s

________________________________________________________
Executed in   65.55 secs    fish           external
   usr time    0.00 secs  585.00 micros    0.00 secs
   sys time    7.47 secs    0.00 micros    7.47 secs

root@ubuntu ~# time /usr/bin/fallocate --length 8GiB /var/swap.2

________________________________________________________
Executed in    3.03 millis    fish           external
   usr time    0.31 millis  314.00 micros    0.00 millis
   sys time    1.29 millis  110.00 micros    1.18 millis

可以看到,dd 在我的阿里云机器上,用了约 65s 生成 swap 文件,而 fallocate 速度快到几乎不耗时间,且我的机型用了 100G 硬盘,其 IOPS 及 IO 速度本来就比大部分用户会选用的 40G 高,大部分用户只会被 dd 用掉更多时间。


也许,还需要兼容不存在 fallocate 命令的系统(大概... 不存在?),可以这样组合命令:

which /usr/bin/fallocate && /usr/bin/fallocate --length 8GiB /var/swap.1 || /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=8000

可以简单的用 --version 参数验证这种处理方式的有效性:

root@ubuntu /var# which /usr/bin/fallocate && /usr/bin/fallocate --version || /bin/dd --version
/usr/bin/fallocate
fallocate from util-linux 2.37.2
root@ubuntu /var# which /usr/bin/fallocatexx && /usr/bin/fallocatexx --version || /bin/dd --version
dd (coreutils) 8.32
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Paul Rubin, David MacKenzie, and Stuart Kemp.

可以看到,在第二次测试中,故意使用了不存在的 fallocatexx,它正确的执行了备选方案 dd --version

服务端容器首次启动显示五国后,客户端显示服务器不可用。

Hello,

我现在按照 https://post.smzdm.com/p/a7d3vrp9/ 这篇文章步骤已经把服务端和客户端都弄好了,但是还是无法进入游戏,客户端、网关管理工具和补丁都是从文中链接下载的。

容器启动显示五国:
image

但是客户端进去服务器都是不可用:
76a32a916fe14a3c0c3b16bce3da1ad3

服务器配置:8核(vCPU) 16 GiB CentOS 7.9 64位

docker run --rm \
-e DNF_DB_ROOT_PASSWORD=88888888 \
-v /opt/conf/dnf/log:/home/neople/game/log \
-v /opt/conf/dnf/mysql:/var/lib/mysql \
-v /opt/conf/dnf/data:/data \
1995chen/dnf:stable /bin/bash /home/template/init/init.sh


docker run -d \
-e PUBLIC_IP=公网IP \
-e DNF_DB_ROOT_PASSWORD=88888888 \
-e GM_ACCOUNT=gm_user \
-e GM_PASSWORD=gm_pass \
-v /opt/conf/dnf/log:/home/neople/game/log \
-v /opt/conf/dnf/mysql:/var/lib/mysql \
-v /opt/conf/dnf/data:/data \
-p 3000:3306/tcp \
-p 7600:7600/tcp \
-p 881:881/tcp \
-p 20303:20303/tcp \
-p 20303:20303/udp \
-p 20403:20403/tcp \
-p 20403:20403/udp \
-p 40403:40403/tcp \
-p 40403:40403/udp \
-p 7000:7000/tcp \
-p 7000:7000/udp \
-p 7001:7001/tcp \
-p 7001:7001/udp \
-p 7200:7200/tcp \
-p 7200:7200/udp \
-p 10011:10011/tcp \
-p 31100:31100/tcp \
-p 30303:30303/tcp \
-p 30303:30303/udp \
-p 30403:30403/tcp \
-p 30403:30403/udp \
-p 10052:10052/tcp \
-p 20011:20011/tcp \
-p 20203:20203/tcp \
-p 20203:20203/udp \
-p 30703:30703/udp \
-p 11011:11011/udp \
-p 2311-2313:2311-2313/udp \
-p 30503:30503/udp \
-p 11052:11052/udp \
--name=dnf 1995chen/dnf:stable

登录器和 Script.pvf 都已经按照文章中的操作替换了。

执行docker restart dnf后会卡在这一步:

[!] Init Log Success
m_Server_info.lls_key,: 3240332317335214766634233322344377569687
lls_key :: 3240332317335214766634233322344377569687
[!] Server key Check OK
        - cfg path: ./cfg/siroco52.cfg
        - pid path: ./pid/siroco52.pid
[!] Init Taiwan Garena Auth Key ... publickey.pem Success
[!] Init GlobalData ...
        - DBConnector Init(masterdb 127.0.0.1/3306/game/d_taiwan) Success
        - DBConnector Get Connection Info Success
        - Open DB ... 
                - Open(type: 1, 127.0.0.1/3306/game/d_taiwan
                - Open(type: 2, 127.0.0.1/3306/game/taiwan_cain
                - Open(type: 3, 127.0.0.1/3306/game/taiwan_cain_2nd
                - Open(type: 4, 127.0.0.1/3306/game/taiwan_cain_log
                - Open(type: 6, 127.0.0.1/3306/game/taiwan_login
                - Open(type: 7, 127.0.0.1/3306/game/taiwan_prod
                - Open(type: 8, 127.0.0.1/3306/game/d_guild
                - Open(type: 9, 127.0.0.1/3306/game/taiwan_game_event
                - Open(type:10, 127.0.0.1/3306/game/d_taiwan_secu
                - Open(type:11, 127.0.0.1/3306/game/taiwan_login_play
                - Open(type:12, 127.0.0.1/3306/game/taiwan_cain_auction_gold
                - Open(type:13, 127.0.0.1/3306/game/taiwan_se_event
                - Open(type:14, 127.0.0.1/3306/game/taiwan_billing
        - All DB Open Success
        - Init Query Table Success
        - Load GM List From DB
        - GM m_id: 

建立数据库初始化的时候报错,没反应,不会出日志

建立数据库初始化的时候报错,没反应,不会出日志。
使用命令如下:
docker run --rm -v /opt/dnf/log:/home/neople/game/log -v /opt/dnf/mysql:/var/lib/mysql -v /opt/dnf/data:/data 1995chen/dnf:stable /bin/bash /home/template/init/init.sh
输入完命令之后,不出日志,直接跳过,如图:
image

docker run之后查看日志就看到报错了

[01:02:20] int CmmChannelProxy::SendPacket(char*, int)(200): SEND ERROR DISCONNNECT NOW FD[40] : 32(Broken pipe)
[01:02:20] int CmmChannelProxy::RecvPacket()(276): RECV ERROR DISCONNNECT NOW FD[40] : 107(Transport endpoint is not connected)
[01:02:20] int CmmChannelProxy::SendPacket(char*, int)(200): SEND ERROR DISCONNNECT NOW FD[40] : 32(Broken pipe)
[01:02:20] int CmmChannelProxy::RecvPacket()(276): RECV ERROR DISCONNNECT NOW FD[40] : 107(Transport endpoint is not connected)

Init ChannelType Fail

[18:36:44] [!] Init ChannelType [18:36:44] [!] Init ChannelType Fail

基本照着instruction 做的,启动dnf server时卡在这里。请问可能的原因是什么呢?

频道无法连接,点击频道无法进入

系统:CentOS7.9 2009
image: 1995chen/dnf:centos7-2.1.4
启动方式和命令:docker run -d -e PUBLIC_IP=172.16.10.128 -e WEB_USER=root -e WEB_PASS=123456 -e DNF_DB_ROOT_PASSWORD=88888888 -e GM_ACCOUNT=gmuser -e GM_PASSWORD=gmpass -v /data/log:/home/neople/game/log -v /data/mysql:/var/lib/mysql -v /data/data:/data -p 2000:180 -p 3306:3306/tcp -p 7600:7600/tcp -p 881:881/tcp -p 7001:7001/tcp -p 7001:7001/udp -p 10011:10011/tcp -p 11011:11011/udp -p 10052:10052/tcp -p 11052:11052/udp -p 7200:7200/tcp -p 7200:7200/udp -p 2311-2313:2311-2313/udp --privileged=true --cap-add=NET_ADMIN --hostname=dnf --cpus=4 --memory=8g --memory-swap=-1 --shm-size=8g --name=dnf 1995chen/dnf:centos7-2.1.4

本机windows已修改hosts为正确方式,已确保以下正确配置
A: 检查Linux服务端防火墙是否关闭
A: 检查云服务器厂商相关端口是否放开
A: 客户端windows是否配置hosts
A: PUBLIC_IP是否填错,windows需要能够访问到这个配置的PUBLIC_IP
A: 使用Dof7.6补丁需要检查DNF.toml中的IP

这项目是不是有后门啊

docker启动后从夜里到中午, 不断有恶意ssh连接

[root@g4rvf log]# lastb
samuel   ssh:notty    103.136.42.230   Tue Jul 12 11:21 - 11:21  (00:00)    
samuel   ssh:notty    103.136.42.230   Tue Jul 12 11:21 - 11:21  (00:00)    
kafka    ssh:notty    103.136.42.230   Tue Jul 12 11:20 - 11:20  (00:00)    
kafka    ssh:notty    103.136.42.230   Tue Jul 12 11:20 - 11:20  (00:00)    
root     ssh:notty    103.136.42.230   Tue Jul 12 11:19 - 11:19  (00:00)    
git      ssh:notty    128.199.228.73   Tue Jul 12 11:19 - 11:19  (00:00)    
git      ssh:notty    128.199.228.73   Tue Jul 12 11:19 - 11:19  (00:00)    
harry    ssh:notty    164.92.147.209   Tue Jul 12 11:18 - 11:18  (00:00)    
harry    ssh:notty    164.92.147.209   Tue Jul 12 11:18 - 11:18  (00:00)    
root     ssh:notty    103.136.42.230   Tue Jul 12 11:18 - 11:18  (00:00)    
root     ssh:notty    103.136.42.230   Tue Jul 12 11:17 - 11:17  (00:00)    
arma3ser ssh:notty    117.220.15.119   Tue Jul 12 11:16 - 11:16  (00:00)    
arma3ser ssh:notty    117.220.15.119   Tue Jul 12 11:16 - 11:16  (00:00)    
root     ssh:notty    103.136.42.230   Tue Jul 12 11:16 - 11:16  (00:00)    
odoo     ssh:notty    92.255.85.70     Tue Jul 12 11:15 - 11:15  (00:00)    
odoo     ssh:notty    92.255.85.70     Tue Jul 12 11:15 - 11:15  (00:00)    
julio    ssh:notty    117.220.15.119   Tue Jul 12 11:15 - 11:15  (00:00)    
julio    ssh:notty    117.220.15.119   Tue Jul 12 11:15 - 11:15  (00:00)    
public   ssh:notty    103.136.42.230   Tue Jul 12 11:15 - 11:15  (00:00)    
public   ssh:notty    103.136.42.230   Tue Jul 12 11:15 - 11:15  (00:00)    
mysql    ssh:notty    20.63.143.58     Tue Jul 12 11:14 - 11:14  (00:00)    
mysql    ssh:notty    20.63.143.58     Tue Jul 12 11:14 - 11:14  (00:00)    
ubuntu   ssh:notty    117.220.15.119   Tue Jul 12 11:14 - 11:14  (00:00)    
root     ssh:notty    103.136.42.230   Tue Jul 12 11:14 - 11:14  (00:00)    
ubuntu   ssh:notty    117.220.15.119   Tue Jul 12 11:14 - 11:14  (00:00)    
lxy      ssh:notty    103.136.42.230   Tue Jul 12 11:13 - 11:13  (00:00)    
lxy      ssh:notty    103.136.42.230   Tue Jul 12 11:12 - 11:12  (00:00)    
haiyun   ssh:notty    164.92.147.209   Tue Jul 12 11:12 - 11:12  (00:00)    
demo3    ssh:notty    117.220.15.119   Tue Jul 12 11:12 - 11:12  (00:00)    
haiyun   ssh:notty    164.92.147.209   Tue Jul 12 11:12 - 11:12  (00:00)    
demo3    ssh:notty    117.220.15.119   Tue Jul 12 11:12 - 11:12  (00:00)    
user     ssh:notty    103.136.42.230   Tue Jul 12 11:11 - 11:11  (00:00)    
user     ssh:notty    103.136.42.230   Tue Jul 12 11:11 - 11:11  (00:00)    
ubuntu   ssh:notty    117.220.15.119   Tue Jul 12 11:11 - 11:11  (00:00)  

我按照步骤安装 报错了,我重试了两次

我按照步骤安装 报错了,我重试了两次,每次都是先全部删除镜像和/data下所有内容,然后先执行数据库,再执行服务端
因为本机的7000 和 7001端口已使用 我在docke往外端口时用了17000和17001 我的理解应该不会有问题才对,而且日志中的错误没找到原因,我还修改了gm密码和外网ip,但我觉得不应该受到这个影响才对
系统CentOS 7.9.2009 x86_64(Py3.7.9)
执行服务端命令如下,数据库命令直接仓库中复制的
docker run -d -e PUBLIC_IP=X.X.X.X -e DNF_DB_ROOT_PASSWORD=88888888 -e GM_ACCOUNT=gm_user -e GM_PASSWORD=6xxxxxxx6a -v /data/log:/home/neople/game/log -v /data/mysql:/var/lib/mysql -v /data/data:/data -p 3000:3306/tcp -p 7600:7600/tcp -p 881:881/tcp -p 20303:20303/tcp -p 20303:20303/udp -p 20403:20403/tcp -p 20403:20403/udp -p 40403:40403/tcp -p 40403:40403/udp -p 17000:7000/tcp -p 17000:7000/udp -p 17001:7001/tcp -p 17001:7001/udp -p 7200:7200/tcp -p 7200:7200/udp -p 10011:10011/tcp -p 31100:31100/tcp -p 30303:30303/tcp -p 30303:30303/udp -p 30403:30403/tcp -p 30403:30403/udp -p 10052:10052/tcp -p 20011:20011/tcp -p 20203:20203/tcp -p 20203:20203/udp -p 30703:30703/udp -p 11011:11011/udp -p 2311-2313:2311-2313/udp -p 30503:30503/udp -p 11052:11052/udp --cpus=1 --memory=1g --memory-swap=-1 --shm-size=8g --name=dnf 1995chen/dnf:centos6-2.0.2
日志文件如下:
Log20221124.log
Log20221124.init.log
Log20221124.cri.log

请把登录器放置于游戏跟根目录下什么意思?

统一网管在线工具可以连接服务器网关,密码也生成了,也同样生成了登录器。但是在登录时提示“请把登录器放置于游戏根目录下”。根目录不是位于服务器 /root下吗,那里已经有一个Config.ini了,登录器放置于根目录下是指把.exe放在/root下吗?还是生成登录器时同步生成的Config.ini放在/root下?那样不会覆盖吗?

服务端无法启动

版本:1995chen/dnf:centos7-1.0.1
数据库初始化:

....
See the manual for more instructions.

You can start the MySQL daemon with:
cd / ; /usr/bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl
cd mysql-test ; perl mysql-test-run.pl

Please report any problems with the /usr/bin/mysqlbug script!

The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com
Failed to get D-Bus connection: Operation not permitted
Starting MySQL. SUCCESS!

一直定在这里 然后我手动docker stop掉了

启动server

......
------------------------------------------
-		Server Frame Start Ver1.0       -
------------------------------------------
Start up TCPThread
Epoll init::6000
succeeded in binding TCP socket port #30603
Reloading script file : ./cfg/point_siroco.cfg
***************Fail to exec(select count(*) from auction_history). process exits.************

游戏登录器在哪?

遇到的几个问题
1,如果宿主机已经安装了mysql,或者3306端口被占用,初始化会失败

2,游戏登录器没找到在哪

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.