Jump to content
major_shepard

ArmA3Sync - launcher and addons synchronization software for ArmA 3

Recommended Posts

Major_Shepard: Atm, I'm hobo:ing it and just crontabbing the "java -jar ArmA3Sync.jar -build <rep. name> each hour, on the hour.

When I have the time I'll do a small script based on:

find /target_directory -type f -mmin -<x minutes>

or more likely; inotify-tools.

Share this post


Link to post
Share on other sites

Of course, as many as you want. just create a shared folder for each one on your FTP/HTTP server and provide url for them.

Share this post


Link to post
Share on other sites
Left click on the folder.

Sorry to bother you again. I dont get it with the userconfig folder. i have 3 folders in the userconfig and build the repo with it. But this repo still delete other userconfig stuff. How to prevent this for all users that sync this repo that nothing gets deleted in their userconfig folder?

Share this post


Link to post
Share on other sites

Hmm this is a client side Thing? is there no Option that "this" folder is delete save, only update?

Share this post


Link to post
Share on other sites

Yes this is client side. The extra local files (with are not on the repository) are ignored form delete and update.

In my repository I have userconfig/a and userconfig/b

Localy I have userconfig/a, userconfig/b, userconfig/c, userconfig/d,

Only userconfig/a and userconfig/b are updated,

userconfig/c, userconfig/d are ignored from update and delete.

Share this post


Link to post
Share on other sites

thats the Problem that this is Client side :) My idea was to flag the userconfig folder that on this folder no folders should be deleted, only updated. So no client need to touch this ;)

Ok, i need to make a tutorial for this, we have some 55-65 year old guys with us, they need a tutorial for every mouse click.

Share this post


Link to post
Share on other sites

Thanks for the great tool!

I have been so far using FTP successfully for my repository and it works beautifully (except for the Arma3Sync clients reporting "Connection has been reset" when loading large files). Now I would like to move to a HTTP repository, mainly because of the improvements that I hope ZSYNC will deliver, but I am having trouble getting this to work. I am using Apache on Windows as part of XAMPP. The repository directory is configured to require a user login, with the exception of the autoconfig file. I have a test client that connects successfully to the repository, runs the "Check for Addons" just fine and finds all the changed files, but when it comes to downloading them, I receive an "An unexpected error has occurred". The access logs show that the user is send and authenticated properly when accessing the .zsync file, but when the actual file is accessed, the login is not sent and access is rejected with a 401.

192.168.178.150 - NSC [18/Feb/2014:19:38:48 +0100] "GET /A3Repository/mod.paa.zsync HTTP/1.1" 200 263 "-" "jazsync"

192.168.178.150 - - [18/Feb/2014:19:38:48 +0100] "GET /A3Repository/mod.paa HTTP/1.1" 401 1307 "-" "Java/1.7.0_51"

I wonder if this is due to something not being correct with the client or if I have failed to set up Apache correctly. Is there anything specific to ZSYNC that needs to be set up?

Thanks & Best Regards,

Gundy

Share this post


Link to post
Share on other sites

Could you try to set the repository with anonymous access and sync?

There is nothing specific to set regarding zsync which is completely embedded into ArmA3Sync.

Edited by Major_Shepard

Share this post


Link to post
Share on other sites

Sorry, forgot to mention, it works when the repository is not password protected.

Share this post


Link to post
Share on other sites

ok. So there is indeed something to see with the HTTP autentication when downloading the .zsync file. Will try to investigate :)

Edited by Major_Shepard

Share this post


Link to post
Share on other sites

Hello,

I'm having issues with A3Sync. Every time I start it up it asks me to identify the arma3 executable file. It also gives me an error when I enter the repository, and wont let it load. Any suggestions?

Thanks.

Share this post


Link to post
Share on other sites

Hello!

I am having problem with my repositary. I think I have set it up completely corect with Http, I can import it but when i try and "Check for addons" then it just says "Failed to connect to repository STU". I dont have a password but I can download individual files.

I have set up a test server on my computer at "D:\ftp\domain\Arma3\STU_Addons" it needs to have the domain or it wont find it.

So we have a webhotel with a ftp and website. But not a game server and im currently using my own computer as a server.

So I have no idea why it wont work with http anonymous connection. Well it can find the autoconfig and all those files.

But it still gets "Failed to connect to repositary STU". So any ideas on why?

Thank you alot!

Share this post


Link to post
Share on other sites
Hello,

I'm having issues with A3Sync. Every time I start it up it asks me to identify the arma3 executable file. It also gives me an error when I enter the repository, and wont let it load. Any suggestions?

Thanks.

Looks like you don't run ArmA3Sync with Admistrator priviledges and/or ArmA3Sync does not have write permission on his installation directory.

---------- Post added at 01:15 AM ---------- Previous post was at 01:12 AM ----------

Hello!

I am having problem with my repositary. I think I have set it up completely corect with Http, I can import it but when i try and "Check for addons" then it just says "Failed to connect to repository STU". I dont have a password but I can download individual files.

I have set up a test server on my computer at "D:\ftp\domain\Arma3\STU_Addons" it needs to have the domain or it wont find it.

So we have a webhotel with a ftp and website. But not a game server and im currently using my own computer as a server.

So I have no idea why it wont work with http anonymous connection. Well it can find the autoconfig and all those files.

But it still gets "Failed to connect to repositary STU". So any ideas on why?

Thank you alot!

It is a bit confuse.

Does the repository is host on the FTP or on the Web server ?

Could you give me the url of your repository by PM please?

Edited by Major_Shepard

Share this post


Link to post
Share on other sites

With the requirement to authenticated currently turned off at the server and testing with my local client being successful, I thought I would be ready for prime time. Seems like I wasn't so lucky. One of my friends tested with me and for whatever reason his Arma3Sync wasn't able to sync. Pulling the data from the autoconfig was no problem, but then checking for add-ons did fail with a "Failed to connect to repository" message. Looking at my Apache access logs, his requests are rejected with a 400 message.

85.176.98.52 - - [20/Feb/2014:00:31:03 +0100] "GET /A3Repository/.a3s/autoconfig HTTP/1.1" 200 303 "-" "Java/1.7.0_02"
85.176.98.52 - - [20/Feb/2014:00:31:08 +0100] "GET /A3Repository HTTP/1.1" 400 324 "-" "-"
85.176.98.52 - - [20/Feb/2014:00:31:08 +0100] "GET /A3Repository/.a3s/sync HTTP/1.1" 400 324 "-" "-"
85.176.98.52 - - [20/Feb/2014:00:31:08 +0100] "GET /A3Repository/.a3s/serverinfo HTTP/1.1" 400 324 "-" "-"
85.176.98.52 - - [20/Feb/2014:00:31:09 +0100] "GET /A3Repository/.a3s/changelogs HTTP/1.1" 400 324 "-" "-"
85.176.98.52 - - [20/Feb/2014:00:31:09 +0100] "GET /A3Repository/.a3s/events HTTP/1.1" 400 324 "-" "-"
85.176.98.52 - - [20/Feb/2014:00:31:10 +0100] "GET /A3Repository HTTP/1.1" 400 324 "-" "-"

When I test with my local client, I have no such problem. Here are the logs for when it works:

84.46.15.214 - - [20/Feb/2014:00:27:46 +0100] "GET /A3Repository HTTP/1.1" 301 374 "-" "Java/1.7.0_51"
84.46.15.214 - - [20/Feb/2014:00:27:46 +0100] "GET /A3Repository/ HTTP/1.1" 200 2718 "-" "Java/1.7.0_51"
84.46.15.214 - - [20/Feb/2014:00:27:46 +0100] "GET /A3Repository/.a3s/sync HTTP/1.1" 200 29336 "-" "Java/1.7.0_51"

I'll send you my autoconfig URL via PM.

Share this post


Link to post
Share on other sites

Have tested your repo, check for addons and download work just fine here.

It's a client side problem.

Check firewall, anti-virus program and all that kind of shit. :)

Share this post


Link to post
Share on other sites
Have tested your repo, check for addons and download work just fine here.

It's a client side problem.

Check firewall, anti-virus program and all that kind of shit. :)

Thanks you very much, will have that checked.

Share this post


Link to post
Share on other sites

So far I have been unable to figure out what is wrong with that client, been spending quite some time remote controlling it. However, had another friend try the repository and he had no problems to connect properly.

While looking at the Apache server access logs, I noticed the following.

46.59.182.18 - - [20/Feb/2014:23:39:35 +0100] "GET /A3Repository HTTP/1.1" 301 374 "-" "Java/1.7.0_51"
46.59.182.18 - - [20/Feb/2014:23:39:35 +0100] "GET /A3Repository/ HTTP/1.1" 403 1073 "-" "Java/1.7.0_51"
46.59.182.18 - - [20/Feb/2014:23:39:35 +0100] "GET /A3Repository/.a3s/sync HTTP/1.1" 200 29336 "-" "Java/1.7.0_51"
46.59.182.18 - - [20/Feb/2014:23:39:35 +0100] "GET /A3Repository/.a3s/serverinfo HTTP/1.1" 200 199 "-" "Java/1.7.0_51"
46.59.182.18 - - [20/Feb/2014:23:39:35 +0100] "GET /A3Repository/.a3s/changelogs HTTP/1.1" 200 555 "-" "Java/1.7.0_51"
46.59.182.18 - - [20/Feb/2014:23:39:35 +0100] "GET /A3Repository/.a3s/events HTTP/1.1" 200 429 "-" "Java/1.7.0_51"

Probably nothing big, but for whatever reason A3S is accessing the repository base folder without the tailing forward slash, getting redirected and requesting the repository base folder and being denied by Apache because I turned indexes off. Seems to be an unnecessary activity.

Edit: Just realized that with indexes turned off, checking the the repository status (green circular arrows) works, but checking for addons fails. From what I read the general recommendation is to have indexes off. Can I ask you to change the behaviour of Arma3Sync accordingly?

Edited by Gundy

Share this post


Link to post
Share on other sites

Update on the HTTP access issues with the 400 response:

It appears to have been the "Enable HTTP checking" option in the "Web access protection" module of ESET Smart Security 7. Deactivating it is returning nice 200 responses from the web server to everything Arma3Sync does.

Edited by Gundy

Share this post


Link to post
Share on other sites

Is it possible for ZSYNC to have issues with files already present on the clients before I made the switch to HTTP? I have had more than one client reloading the same file over and over again and all that seems to help is to delete the offending file from the client and restart the sync process.

Share this post


Link to post
Share on other sites

I don't really understand what your are trying to say. When you check for Addons, if a file is marked Updated or deleted it means that SHA1 does not match with the server. There is no automatic redownload process.

Share this post


Link to post
Share on other sites

I mean that a client already has a file @something/addons/something.pbo @ say version 1 of that file. Now I create a repository on the server, same file, but @ version 2 (so file is different). I run the build process for the repository, A3S creates all these wonderful .zsync files. The client then connects to the repository, the file gets marked as different and A3S tries to download that file using the ZSYNC process. For whatever reason there is a problem and A3S keeps re-requesting that file, never finishing it.

Here is the Apache server log of that happening:

85.176.108.26 - - [22/Feb/2014:01:27:07 +0100] "GET /A3Repository/@CLF_Units/addons/caf_chech_t.pbo HTTP/1.1" 200 37796193 "-" "Java/1.7.0_51"
85.176.108.26 - - [22/Feb/2014:01:27:07 +0100] "GET /A3Repository/@CLF_Units/addons/caf_chech_t.pbo HTTP/1.1" 200 37796193 "-" "jazsync"
85.176.108.26 - - [22/Feb/2014:01:27:33 +0100] "GET /A3Repository/@CLF_Units/addons/caf_chech_t.pbo HTTP/1.1" 200 37796193 "-" "jazsync"
85.176.108.26 - - [22/Feb/2014:01:27:53 +0100] "GET /A3Repository/@CLF_Units/addons/caf_chech_t.pbo HTTP/1.1" 200 37796193 "-" "jazsync"
85.176.108.26 - - [22/Feb/2014:01:28:19 +0100] "GET /A3Repository/@CLF_Units/addons/caf_chech_t.pbo HTTP/1.1" 200 37796193 "-" "jazsync"
85.176.108.26 - - [22/Feb/2014:01:28:40 +0100] "GET /A3Repository/@CLF_Units/addons/caf_chech_t.pbo HTTP/1.1" 200 37796193 "-" "jazsync"
85.176.108.26 - - [22/Feb/2014:01:29:01 +0100] "GET /A3Repository/@CLF_Units/addons/caf_chech_t.pbo HTTP/1.1" 200 37796193 "-" "jazsync"
85.176.108.26 - - [22/Feb/2014:01:29:27 +0100] "GET /A3Repository/@CLF_Units/addons/caf_chech_t.pbo HTTP/1.1" 200 37796193 "-" "jazsync"
85.176.108.26 - - [22/Feb/2014:01:29:48 +0100] "GET /A3Repository/@CLF_Units/addons/caf_chech_t.pbo HTTP/1.1" 200 37796193 "-" "jazsync"
....

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×