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

[BUDI-7587] Unable to import application #11960

Closed
andyburgessmd opened this issue Oct 3, 2023 · 21 comments
Closed

[BUDI-7587] Unable to import application #11960

andyburgessmd opened this issue Oct 3, 2023 · 21 comments
Assignees
Labels
bug Something isn't working linear

Comments

@andyburgessmd
Copy link

andyburgessmd commented Oct 3, 2023

Checklist

  • I have searched budibase discussions and github issues to check if my issue already exists

Hosting

  • Self
    • Method: docker via hossted
    • Budibase Version: 2.11.0

Describe the bug
Due to issues with cloud hosted version (#11855) I have been trying to migrate to a self-hosted version, which I have running via hossted on AWS.
When I try to import a application which has been exported from my cloud version, the import fails with the message in console of 'Cannot import a non-text based file.'
image
I have tested importing back to a cloud tenant and it also shows this issue.

To Reproduce
Steps to reproduce the behaviour:

  1. Export an application
  2. Create a new application and try to use the exported file to import into the application
  3. View error shown in builder and console

Expected behavior
The application should import.

App Export
I will provide this privately is needed.

Desktop:

  • OS: Windows 10
  • Browser: Edge for Buisness
  • Version: 117.0.2045.43

BUDI-7587

@andyburgessmd andyburgessmd added the bug Something isn't working label Oct 3, 2023
@aptkingston
Copy link
Member

Hi Andy. Just to double check, are you using an encrypted export or not? I've just tested both types of export, and they both do correctly import again without an issue. Is your export downloaded properly as a .tar.gz file? If it's encrypted then it should end in .enc.tar.gz.

@andyburgessmd
Copy link
Author

@aptkingston I am exporting unencrypted and I get a .tar.gz file. I've tried with and without table data and neither works.

@andyburgessmd
Copy link
Author

Andrews app-export-1696339861234.tar.zip
Unable to add as tar.gz so had to zip it to get it to be attached.
This a very simple application I have just created - 1 table with 1 row and 1 screen. I have tried to import this to new self hosted tenant and it fails.

@aptkingston
Copy link
Member

I'll take a look - thanks for the export.

@aptkingston
Copy link
Member

Does that export fail if you import it into cloud as well?

@andyburgessmd
Copy link
Author

@aptkingston yes it fails on cloud as well

@aptkingston
Copy link
Member

Could you email me the unzipped version, just exactly as you got it from Budibase? That test app is fine.
andrew[at]budibase.com

@andyburgessmd
Copy link
Author

Sent, hopefully my outbound email won't block it

@aptkingston
Copy link
Member

Looks like it might have been blocked because I didn't receive anything. Are you able to jump on discord?

@andyburgessmd
Copy link
Author

Sent from my gmail instead

@aptkingston
Copy link
Member

That export works fine for me, tested in both cloud and self host. I really can't think of a reason why this wouldn't work for you, especially in cloud... Do you get that same HTTP 500 with "Cannot import a non-text file" in cloud too?

@mike12345567 mike12345567 changed the title Unable to import application [BUDI-7587] Unable to import application Oct 3, 2023
@andyburgessmd
Copy link
Author

@aptkingston I have also just sent the file to my mac and tested from that and it did work. Could this be down to the way that windows is handling the file?

@melohagan
Copy link
Collaborator

@aptkingston I have also just sent the file to my mac and tested from that and it did work. Could this be down to the way that windows is handling the file?

We have a suspicion that this is the case, will need to investigate further.

@melohagan
Copy link
Collaborator

I tried this on cloud via a Windows laptop and could not reproduce, it worked fine.

@melohagan melohagan assigned melohagan and unassigned melohagan Oct 4, 2023
@melohagan
Copy link
Collaborator

Hey @andyburgessmd

I was able to replicate the Cannot import a non-text based file error. I received this when trying to import the app export as provided, i.e. with the .tar.zip format. This is invalid.

App exports must have the file extension .tar.gz to be imported into Budibase.

I was able to import your app by extracting the files from your zip file, and running the following command:

tar -cvzf andrews.tar.gz -C Andrews .
Screenshot 2023-10-04 at 10 14 35

@andyburgessmd
Copy link
Author

@melohagan the file was zipped so that it could be transferred, sending the .tar.gz was being blocked.
"Unable to add as tar.gz so had to zip it to get it to be attached."
I was trying to import the .tar.gz file

@melohagan
Copy link
Collaborator

@melohagan the file was zipped so that it could be transferred, sending the .tar.gz was being blocked. "Unable to add as tar.gz so had to zip it to get it to be attached." I was trying to import the .tar.gz file

Could you please upload the .tar.gz file to a cloud drive and send through a download link please?

@andyburgessmd
Copy link
Author

@melohagan
https://drive.google.com/file/d/1d4kPM6TfAY_4r9UGmNRInUWO0lzwWSqs/view?usp=sharing

@melohagan
Copy link
Collaborator

Imports for me on cloud and self-hosted. Will try on Windows later on.

@melohagan
Copy link
Collaborator

Hey @andyburgessmd I tried importing that app export you provided on a Windows laptop, and it was fine. I'm not really sure what to suggest.

@andyburgessmd
Copy link
Author

Thanks for testing @melohagan. I'm going to raise it with our group IT, I bet they have done something annoying like scan it and strip out something.
I'll let you know what they say if its relevant.

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

No branches or pull requests

4 participants