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

[Bug]: Problems syncing changes #1826

Closed
1 task done
ExZiByte opened this issue Oct 25, 2023 · 4 comments
Closed
1 task done

[Bug]: Problems syncing changes #1826

ExZiByte opened this issue Oct 25, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@ExZiByte
Copy link

Verified issue does not already exist?

  • I have searched and found no existing issue

What happened?

Fresh install of Actual trying to import my transactions in OFX format also tried in the CSV format.

Firefox console has

Error: PostError: <html>
<head><title>413 Request Entity Too Large</title></head>
<body>
<center><h1>413 Request Entity Too Large</h1></center>
<hr><center>nginx</center>
</body>
</html>

What error did you receive?

I get a popup stating "We had problems syncing your changes"

Where are you hosting Actual?

Locally via Yarn

What browsers are you seeing the problem on?

Firefox

Operating System

Windows 10

@ExZiByte ExZiByte added the bug Something isn't working label Oct 25, 2023
@ExZiByte ExZiByte closed this as not planned Won't fix, can't repro, duplicate, stale Oct 25, 2023
@hossain-khan
Copy link

hossain-khan commented Aug 7, 2024

For future reference, I have also experienced same issue.

Request

curl 'https://actual-server/sync/upload-user-file' \
  -H 'DNT: 1' \
  -H 'X-ACTUAL-TOKEN: XYZ' \
  -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36' \
  -H 'Content-Type: application/encrypted-file' \
  -H 'Referer: https://actual-server/static/js/browser-server.Kf_xQo8f.js' \
  -H 'X-ACTUAL-NAME: Expense' \
  -H 'X-ACTUAL-FORMAT: 2' \
  -H 'X-ACTUAL-FILE-ID: fda-xyz-1699' \
  --data-raw 4.1MB-encrypted-file

Response

<html>
<head><title>413 Request Entity Too Large</title></head>
<body>
<center><h1>413 Request Entity Too Large</h1></center>
<hr><center>nginx/1.18.0 (Ubuntu)</center>
</body>
</html>
  • Server version: v24.8.0
  • Installation: Docker

I am guessing having non-synced local version is fine.

Screenshot 2024-08-11 162212

Screenshot 2024-08-11 162401

Screenshot 2024-08-11 162446

@hossain-khan
Copy link

hossain-khan commented Aug 11, 2024

Quick update - I reported the same issue at Discord #support


I created new server at pikapod - App: v24.8.0 | Server: v24.8.0
And imported same 2 budget files, and syncing is working fine for both of them.

Must be something wrong with my installation.

I will go through the doc again at https://actualbudget.org/docs/install/docker and post updates on my findings. Thanks

@hossain-khan
Copy link

ℹ️ Update

The issue was specific to my setup of using reverse proxy using Nginx.

By default, the default value for client_max_body_size in Nginx is 1 MB.

After I set that to client_max_body_size 50M; I was able to upload and make the budget file as cloud file. 😅 ✅

@pavekovt
Copy link

pavekovt commented Nov 6, 2024

For someone how's running Actual in Kubernetes and using nginx ingress controller you can add annotation to your individual ingress resources to increase client_max_body_size:

  • Official NGINX Ingress: nginx.ingress.kubernetes.io/proxy-body-size: "50m"
  • Official Kubernetes Ingress: nginx.org/client-max-body-size: "50m"

Annotation depends of which nginx controller you are running:

If you are using the official NGINX Ingress, the correct annotation is here: https://docs.nginx.com/nginx-ingress-controller/configuration/ingress-resources/advanced-configuration-with-annotations/

If you are using the official Kubernetes Ingress based on NGINX, the correct annotation is this: https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/#custom-max-body-size

Source: https://stackoverflow.com/a/73548785

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants