ServerSync

ServerSync

48.5k Downloads

Client will not delete

2592019238-ai opened this issue · 23 comments

commented

Serversync Version: 1.12.2

Minecraft Version: 1.12.2

Issue: The module client that has been deleted on my server will not be deleted
https://paste.ubuntu.com/p/yphXk8mCMz/
This is serversync-client.log
Already the latest version [serversync-3.7.0-alpha.2-all.jar]

commented

#105将涵盖serversync更新本身,这在工作列表上相当高,但是我确保首先确保实际同步正常工作。

Whether to support when to exclude all files in the folder

commented

#105将涵盖serversync更新本身,这在工作列表上相当高,但是我确保首先确保实际同步正常工作。

Whether to support when to exclude all files in the folder

https://github.com/superzanti/ServerSync/wiki/Ignore-&-include-lists-examples
You may need this, ignore the rules file to complete the operation.

commented

#105将涵盖服务器同步更新本身,这在工作列表上相当高,但是我确保首先确保实际同步正常工作。

是否支持何时排除文件夹中的所有文件

https://github.com/superzanti/ServerSync/wiki/Ignore-&-include-lists-examples
您可能需要这样做,忽略规则文件以完成操作。

This does not work. Can you, how do you set it up?

commented

#105将涵盖服务器同步更新本身,这在工作列表上相当高,但是我确保首先确保实际同步正常工作。

是否支持何时排除文件夹中的所有文件

https://github.com/superzanti/ServerSync/wiki/Ignore-&-include-lists-examples
您可能需要这样做,忽略规则文件以完成操作。

This does not work. Can you, how do you set it up?

"file_ignore_list": [ "**/serversync-*.jar", "mods/1.12.2/**", "**/serversync-*.cfg" ],

Above is 3.7 version of the server. The json configuration files written in it, and "mods / 1.12.2 / * *", so you can ignore the mods folder 1.12.2 folder and all of the files in it.

commented

#105将涵盖服务器同步更新本身,这在工作列表上相当高,但是我确保首先确保实际同步正常工作。

是否支持何时排除文件夹中的所有文件

https://github.com/superzanti/ServerSync/wiki/Ignore-&-include-lists-examples
您可能需要这样做,忽略规则文件以完成操作。

这是行不通的。可以,如何设置?

"file_ignore_list": [ "**/serversync-*.jar", "mods/1.12.2/**", "**/serversync-*.cfg" ],

以上是服务器的3.7版本。其中写入的json配置文件以及“ mods / 1.12.2 / * *”,因此您可以忽略mods文件夹1.12.2文件夹及其中的所有文件。

Why i have no effect

commented

#105将涵盖服务器同步更新本身,这在工作列表上相当高,但是我确保首先确保实际同步正常工作。

是否支持何时排除文件夹中的所有文件

https://github.com/superzanti/ServerSync/wiki/Ignore-&-include-lists-examples
您可能需要这样做,忽略规则文件以完成操作。

这是行不通的。可以,如何设置?

"file_ignore_list": [ "**/serversync-*.jar", "mods/1.12.2/**", "**/serversync-*.cfg" ],
以上是服务器的3.7版本。其中写入的json配置文件以及“ mods / 1.12.2 / * *”,因此您可以忽略mods文件夹1.12.2文件夹及其中的所有文件。

Why i have no effect

My version is used “serversync-3.7.0-alpha.1”,You can try this configuration file, can ignore all folders and files.
serversync-server.zip

commented

The attached config using 3.7.0-alpha.1 appears to ignore the files in mods/1.12.2 for me. Can you outline exactly what result you want to achieve?

Notably, if you are using the alpha branch you probably want to use one of the more recent builds here https://github.com/rheimus/ServerSync/releases

3.7.0-alpha.6 did change the format of the include/ignore list slightly though

commented

Closing this as v4 has released and I have not been able to reproduce deletion issues.

Feel free to raise another issue if the problem persists in v4 onwards.

commented

Hello, please try to use version 3.6.0, I also found this problem in the latest version.

commented

您好,请尝试使用3.6.0版,我也在最新版本中发现了此问题。

3.6.0 Cannot synchronize other folders

commented

I am not 100% sure what the issue being reported is, the client is not deleting a file that you are expecting to be removed?

Have you restarted ServerSync since deleting the file server side?

commented

我不是100%不确定所报告的问题是什么,客户端没有删除您希望删除的文件?

自删除文件服务器端以来,您是否已重新启动ServerSync?

Restarted but not deleted

commented

嗯,看来我还没有在alpha版本中实现删除阶段。我将其添加到列表的顶部。

Ok

commented

Hmm, looks like I haven't actually implemented the delete phase yet in the alpha versions. I'll add that to the top of the list.

commented

alpha.3 has reinstated the delete phase, it also allows you to configure push mode directories if you don't want a directory to delete files that don't exist on the server.
https://github.com/rheimus/ServerSync/releases/tag/3.7.0-alpha.3

commented

alpha.3 has reinstated the delete phase, it also allows you to configure push mode directories if you don't want a directory to delete files that don't exist on the server.
https://github.com/rheimus/ServerSync/releases/tag/3.7.0-alpha.3

Big problem, in the 3.7.0-alpha.3, flash back occurred on the server, the client all is well. I tried CMD and exe.Server log is as
follows:
<
LOG:Loading language file: zh_CN
LOG:Starting server in mode: 2
LOG:Starting scan for managed files: 2020-11-6
LOG:Ignore patterns: {
**/serversync-.jar
**/serversync-
.cfg
}
DEBUG:root dir: D:\minecraft_server

commented

Flash back? Is that a crash.

Is there a stack trace or an error message that occurs, the log there does not seem to indicate any issues, when exactly does the issue occur?

Can you also send me your server configuration file please.

commented

alpha.3已经恢复了删除阶段,如果您不希望目录删除服务器上不存在的文件,它还允许您配置推送模式目录。
https://github.com/rheimus/ServerSync/releases/tag/3.7.0-alpha.3

After updating to "3.7.0-alpha.3", it is found that the clientmods on the server will not be fully synchronized, and the modules in the clientmods will be deleted
This is the serversync-client.log of the client:https://paste.ubuntu.com/p/qdGTPfPnSd/
This is the serversync-server.log of the server:https://paste.ubuntu.com/p/fXbWjVWgXJ/

commented

Looks like the hash and path got switched for clientmods, I have fixed this in alpha.4.

I should probably write an auto test for the setup behavior as well.

commented

似乎已将clientmods的哈希和路径切换了,我已在中修复此问题alpha.4

我可能还应该为设置行为编写一个自动测试。

Image
Is there a problem with me writing this way, if it is ok, I didn’t ignore it

commented

@2592019238-ai Do you want to ignore the entire directory?

If so the pattern that you want is a globstar mods/memory_repo/**, in upcoming versions I will be implementing directory matching so you could just write mods/memory_repo, that is not working yet though.

commented

@2592019238-ai Do you want to ignore the entire directory?

If so the pattern that you want is a globstar mods/memory_repo/**, in upcoming versions I will be implementing directory matching so you could just write mods/memory_repo, that is not working yet though.

Whenever you update, I need to republish the client, can you synchronize ServerSync?

commented

#105 Would cover serversync updating itself, this is fairly high on the work list but I am making sure to get the actual sync working properly first.