Skip to content

Load Balanced Instanced (such as servd.host) fail to import JSON Files. #2664

@J-Protz

Description

@J-Protz

Describe the bug

Took me a while to figure this one out - but on my local and staging environments, importing a form via the JSON Import was working flawlessly, but when I went to production, it kept giving me errors saying the requested URL didn't exist. One out of maybe 30 tries got me through and I was finally able to import the form.

Anyway, I learned through servd support that temp uploads in load balanced environments can be wonky, so they advised I made a filesystem and pointed craft to this for temp asset uploads, however this weirdly didn't seem to solve the problem either. After some investigation, it seems the JSON files get put under runtime/temp, instead of the configurable asset temp directory, so I've been unable to find a solution to get imports working.

Thanks!

Image

Steps to reproduce

  1. Use a Craft 5.8.21 instance with Formie 3.1.6
  2. Make a form on your local enviroment
  3. Set up a load balanced environment (on servd.host ideally, haven't tested elsewhere)
  4. Export the form from local as JSON
  5. Import the form on the load balanced environment

Form settings

  • Multi-page form: Yes
  • Submission Method: Ajax
  • Client-side Validation: No
  • Custom Form Templates: Yes

Craft CMS version

5.8.21

Plugin version

3.1.6

Multi-site?

Yes

Additional context

We tested making the servd staging environment load balanced, and this reproduced the issue, where previously it only happened on production. I think making the temp upload location configurable or defaulting to the asset temp location would work well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions