Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect Header Check since 6.15 #47

Open
kyralretsam opened this issue Jun 7, 2022 · 54 comments
Open

Incorrect Header Check since 6.15 #47

kyralretsam opened this issue Jun 7, 2022 · 54 comments

Comments

@kyralretsam
Copy link

I have been running this on my RPi3 for about a week with no issues (MCH IS HAPPY!) but this afternoon when I went to login following the 6.15 patch, it wouldn't load. I set my PS4 back to normal networking and it works fine. Here is the output from the script via journalctl

pi@pihole:~ $ sudo systemctl status xivalex
* xivalex.service - XIV Alexander Daemon
     Loaded: loaded (/etc/systemd/system/xivalex.service; enabled; vendor preset: enabled)
     Active: active (running) since Tue 2022-06-07 16:24:54 EDT; 1min 57s ago
   Main PID: 4606 (XIVAlexanderMIT)
      Tasks: 4 (limit: 2060)
     Memory: 11.9M
        CPU: 871ms
     CGroup: /system.slice/xivalex.service
             |-4606 /bin/bash - /usr/local/bin/XIVAlexanderMITM.sh
             |-4608 /usr/bin/python3 /usr/local/bin/XIVAlexanderMITM.py
             |-4783 /usr/bin/python3 /usr/local/bin/XIVAlexanderMITM.py
             `-4784 /usr/bin/python3 /usr/local/bin/XIVAlexanderMITM.py

Jun 07 16:26:42 pihole XIVAlexanderMITM.sh[4784]:     bundle_data = bytearray(zlib.decompress(bundle_data))
Jun 07 16:26:42 pihole XIVAlexanderMITM.sh[4784]: zlib.error: Error -3 while decompressing data: incorrect header check
Jun 07 16:26:42 pihole XIVAlexanderMITM.sh[4784]: 2022-06-07 16:26:42,913        4784        INFO        D->U discarded 00
Jun 07 16:26:43 pihole XIVAlexanderMITM.sh[4608]: 2022-06-07 16:26:43,022        4608(main)        INFO        [4732  ] has exit with status code 0.
Jun 07 16:26:43 pihole XIVAlexanderMITM.sh[4783]: 2022-06-07 16:26:43,288        4783        ERROR        Unknown error occurred while trying to parse bundle
Jun 07 16:26:43 pihole XIVAlexanderMITM.sh[4783]: Traceback (most recent call last):
Jun 07 16:26:43 pihole XIVAlexanderMITM.sh[4783]:   File "/usr/local/bin/XIVAlexanderMITM.py", line 452, in find
Jun 07 16:26:43 pihole XIVAlexanderMITM.sh[4783]:     bundle_data = bytearray(zlib.decompress(bundle_data))
Jun 07 16:26:43 pihole XIVAlexanderMITM.sh[4783]: zlib.error: Error -3 while decompressing data: incorrect header check
Jun 07 16:26:43 pihole XIVAlexanderMITM.sh[4783]: 2022-06-07 16:26:43,293        4783        INFO        D->U discarded 00
@sleong67
Copy link

sleong67 commented Jun 8, 2022

Hi. I'm having this exact same issue. It began to happen today.

image

Any updates on this issue?

@bankjaneo
Copy link

I also have the same problem. I think 6.15 breaks XivMitmLatencyMitigator even with updated Opcode. Thank you dev in advance for the fix he's working on now.

@RayLynx
Copy link

RayLynx commented Jun 8, 2022

unknown-11(1)

@kyralretsam
Copy link
Author

@RayLynx Doesn't look like a problem with the script, you just can't hit github. Have you verified network connectivity? (ie, can you hit sites like Google)

@RayLynx
Copy link

RayLynx commented Jun 8, 2022

@RayLynx Doesn't look like a problem with the script, you just can't hit github. Have you verified network connectivity? (ie, can you hit sites like Google)

yup

@RayLynx
Copy link

RayLynx commented Jun 8, 2022

now i got header check error

@Soreepeong
Copy link
Owner

It should work now, but you need to copy ffxiv.exe from Windows/Mac installation into the linux machine, and the machine must be running under x86 or x86_64. For support for other platforms, I'm accepting contributions. This script is pretty lightweight though, so if you run a rpi or something, a small x86 vm under qemu might work.

@kyralretsam
Copy link
Author

kyralretsam commented Jun 9, 2022

Two questions. First, I see in the commit that you reference the HFS file server. Is that just to get the ffxiv.exe from your Windows/Mac machine to the VM/Linux box?

Second, does it have to be a 6.15 EXE?

@Soreepeong
Copy link
Owner

Yeah, if you know how to use scp, then you're good to go!

@aurilain
Copy link

aurilain commented Jun 9, 2022

Any idea how to fix this?

image

@Soreepeong
Copy link
Owner

Try -o instead. I keep confusing between small o and big o there

@aurilain
Copy link

aurilain commented Jun 9, 2022

That started to work, however now it appears to not actually be downloading anything:

image

@Soreepeong
Copy link
Owner

That would mean that it can't connect to HFS. Is that IP visible to the VM? You may have to pick different local IP.

@bankjaneo
Copy link

It should work now, but you need to copy ffxiv.exe from Windows/Mac installation into the linux machine, and the machine must be running under x86 or x86_64. For support for other platforms, I'm accepting contributions. This script is pretty lightweight though, so if you run a rpi or something, a small x86 vm under qemu might work.

Got it working now. Thank you very much. Do I need to copy update ffxiv.exe to the VM after new patch? My guess is yes. But that's not a problem :)

@aurilain
Copy link

aurilain commented Jun 9, 2022

Ok, changing the of HFS worked, and I was able to get the file into hyper-v.

However, after trying to run the mitigate.py, I get this:

image

Thanks for all your help, im pretty tech illiterate

@bankjaneo
Copy link

Ok, changing the of HFS worked, and I was able to get the file into hyper-v.

However, after trying to run the mitigate.py, I get this:

image

Thanks for all your help, im pretty tech illiterate

For Ubuntu I fixed with this command.

sudo apt install g++ gcc-multilib g++-multilib

@Soreepeong
Copy link
Owner

@bankjaneo You probably won't have to do that; in fact, this code only works with 6.15 ffxiv.exe at the moment.

@aurilain Try typing pacman -S gcc and after it's done, try it again.

@aurilain
Copy link

aurilain commented Jun 9, 2022

I tried this series of commands:

image

Do i need to change some settings to have actual disk space in the VM?

@Soreepeong
Copy link
Owner

Soreepeong commented Jun 9, 2022

That looks like archiso's default ramdisk does not have enough space to accommodate those installs.

This may work mount -o remount,size=4G tmpfs / , but if it doesn't, I'll have to think of something else, or you'll have to install archiso to the VM.

@aurilain
Copy link

aurilain commented Jun 9, 2022

Sadly, that didn't do anything. I'll troubleshoot this more later, thanks for all your help again

@Arkzera
Copy link

Arkzera commented Jun 9, 2022

Hi, im having the exact samee problems as @aurilain, is installing the vm the only way to make it work?
Edit: even with the iso installed i keep getting errors about corrupted/invalid files

@Arkzera
Copy link

Arkzera commented Jun 9, 2022

Quick update, I had to install an ubuntu and run sudo apt install g++ gcc-multilib g++-multilib, its working now

@brwjon
Copy link

brwjon commented Jun 9, 2022

Capture5

Similar issue, had to actually install the vm. Now I get this, what am I doing wrong?

@bankjaneo
Copy link

bankjaneo commented Jun 9, 2022

@brwjon Did you install gcc yet?

Ubuntu

sudo apt install g++ g++-multilib

Arch

pacman -Sy gcc

Edited: Change pacman parameter to -Sy

@brwjon
Copy link

brwjon commented Jun 9, 2022

@bankjaneo Yes I did

@RayLynx
Copy link

RayLynx commented Jun 9, 2022

Sem título
when do pacman -S gcc get this error

@bankjaneo
Copy link

@RayLynx Can you try pacman -Sy gcc

@RayLynx
Copy link

RayLynx commented Jun 9, 2022

Not enough free disk space

@brwjon
Copy link

brwjon commented Jun 9, 2022

Edited: Change pacman parameter to -Sy

@bankjaneo yep, gcc installed, even tried reinstalling it. still getting the same error when running mitigate.py

@bankjaneo
Copy link

@RayLynx Try check disk space by df -h If it's not enough then you need to increase it first.

@brwjon Then I guess, from your picture, there should be something wrong with permission. If you are on Arch, I think you might need to wait for someone who can get it run on Arch to guide you. Personally, I'm on Ubuntu 22.04 and it's working fine now.

@RayLynx
Copy link

RayLynx commented Jun 9, 2022

how i can increase it?

@brwjon
Copy link

brwjon commented Jun 9, 2022

@RayLynx you have to install the OS, instead of running it from the installation media. I had the same problem. should be easy if you know what you're doing, but if (like me) you have no idea how any of this works, here's the guide I used to set it up https://www.youtube.com/watch?v=DPLnBPM4DhI&t=5384s

@cinnamonbird
Copy link

I have a question. As I play on console, I do not have an installation for the PC version of Endwalker. Is there any difference between the FFXIV.exe if I have Endwalker vs if I get it from the Free Trial? Or will I specifically need to buy Endwalker?

@Soreepeong
Copy link
Owner

@cinnamonbird It's the same regardless of expacs you have or whether it's a trial.

@RayLynx
Copy link

RayLynx commented Jun 9, 2022

i think i will have to install OS, tried change the hyper v virtual disk space but did not work

@ghost
Copy link

ghost commented Jun 9, 2022

Tried an installation of Arch Linux and Ubuntu, but getting the same error in both installations that @brwjon had.

@bankjaneo
Copy link

@Mayushii-chan @brwjon Out of curiosity, the ffxiv.exe file that you are using is the original one or modified one with XivAlexander?

@RayLynx
Copy link

RayLynx commented Jun 9, 2022

@bankjaneo you re running ubuntu on VM??

@bankjaneo
Copy link

@RayLynx Yes, I'm running Ubuntu 22.04 on VM. However, the version shouldn't matter.

@RayLynx
Copy link

RayLynx commented Jun 9, 2022

@bankjaneo what VM you re running it? you think if i install ubuntu system on my pc can make it works?

@brwjon
Copy link

brwjon commented Jun 9, 2022

@bankjaneo The .exe that I patched with Alexander is the dx11 one, and I have the dx9 one in my VM so I don't think it changes much

@Mayushii-chan I figured it out, got it working. I downloaded mitigate.py and copied it into my VM, then set permissions to read write & execute for the file and the folder it's in. That gets past the "permission denied" error. The other problem I had was a mismatch of gcc libraries, but while installing gcc there is a little bit of text that mentions the optional 32 bit libraries that can be downloaded. That fixed that problem. It's working fine now o7

@bankjaneo
Copy link

@RayLynx Actually I'm utilizing my VPS that hosted on Amazon EC2 to act as both VPN and XivMitmLatencyMitigator. Technically, it's just another VM that hosted outside my home.

If you want to run this at home, any Linux VM running on QEMU, VirtualBox or Hyper-V should be fine as long as you are not running it on the same pc that you are using to play FFXIV.

What is your current setup anyway?

@brwjon Congratz. And you are right, ffxiv.exe (dx9) didn't get patched. It should be fine.

@RayLynx
Copy link

RayLynx commented Jun 9, 2022

windows 10
8gb ram i5
820m

@ghost
Copy link

ghost commented Jun 9, 2022

@bankjaneo A friend sent it to me, so I can only assume it's original. Definitely not modified by XivAlexander, though.

@brwjon Thank you! I was actually able to get around it by running "sudo su" before the mitigate.py command. Probably a far worse and less elegant solution to it than yours, but at least it is working.

@RayLynx
Copy link

RayLynx commented Jun 9, 2022

@brwjon from the video you sent me, what steps did you take to install the OS?
Do you have a command to install the specifically needed gcc file?

@Arkzera
Copy link

Arkzera commented Jun 9, 2022

P20609-162312 With ubuntu

Do sudo apt install g++ gcc-multilib g++-multilib
U need to import the ffxiv.exe into your vm too, use HFS to do it, the link and a quick tutorial is on readme.

@brwjon
Copy link

brwjon commented Jun 9, 2022

@brwjon from the video you sent me, what steps did you take to install the OS? Do you have a command to install the specifically needed gcc file?

I set up the disk with UEFI, then section 4 and 5. Just basically to get it to a bootable state.

for the gcc stuff:

pacman -S gcc

After that, you need to install the 32bit libraries, when installing, there's a bit of text that says you can optionally install them. just use the same command with that, instead of gcc

@DiegoSalazar231
Copy link

Hi. I'm having troubles with the step 7, I'm not sure how to continue since I wrote the same ip from HFS, but somehow doesn't work. Sorry if the answer is too obvious, I don't have experience on these programs.

20220609_174159

@brwjon
Copy link

brwjon commented Jun 9, 2022

@DiegoSalazar231 in HFS, go to menu -> IP address, and pick another one of those, it should give you a new link that won't time out

@DiegoSalazar231
Copy link

@brwjon Thanks. I picked a new one, and it doesn't time out, but I didn't have to wait a single second, is that ok? I still can't download the ffxiv.exe and only says this :c

20220609_180211

@kyralretsam
Copy link
Author

I stood up a Debian VM on my Synology NAS and reinstalled the script there and it works perfectly :) Thanks much!

I did make a systemd unit file and startup/cleanup scripts to go with it if you want them

@Rappy28
Copy link

Rappy28 commented Jun 12, 2022

@brwjon from the video you sent me, what steps did you take to install the OS?
Do you have a command to install the specifically needed gcc file?

You do not have to install Arch Linux to increase disk space! I got all of this to work on the simple ISO VM today.
Just hit Tab when you are booting up your VM. It's going to bring up a line of options on the bottom. Just add cow_spacesize=1G at the end of the line then continue the VM launch as usual. This gave me enough disk space to install gcc and its 32-bit lib.

I would also recommend using python3's httpserver command to copy ffxiv.exe onto the VM. I could not get HFS to run on OSX Catalina as it only exists as a .exe. I regret spending hours on trying to get Wine to work on Catalina while I could have just used python...

@sleong67
Copy link

Hi guys.

I did all the mentioned steps, even increased / space with cow_spacesize=1G, but when I tried to run the program is giving me this error. I think it might have to do something with the gcc libraries.

image

Thanks in advance.

@madara4567
Copy link

syntax errors, permission denied, and now g++ isnt taking the Soreepeong curl ... What the fuck is going on here. Tried 4 linux distributions, fully installed. Nothing works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests