Anvil not auto-saving, versions not merging... HELP!

What I’m trying to do:
I recently completed a first round of changes to my app on a branch called ‘master_with_changes’, and I’d like to implement them (merge to master, then branch again) to start a second round of changes. However, I keep getting an error when I edit the ‘master_new’ version, or check-out the ‘master’, etc. Nothing I do will get these branches to merge. I keep getting: “Error Internal server error: 81078970651f” or “Internal server error: 423f2a50fb72”.

Now…the app doesn’t even auto-save which has completely halted my work.

What I’ve tried and what’s not working:

I then tried to sync with git, etc, but it was constantly resetting my app every time I made a change. So I disconnected git from my account.

I then tried to ‘clone’ the app, but it clones my ‘master’, not ‘master_with_changes’!

This product is currently in beta, and is live with testers. I desperately need some help to: correct auto saving, understand how to properly merge and do version control (because I’ve tried everything and nothing works). The documents don’t provide any support at all as it is super basic instructions…but I keep getting internal server errors.

Does anyone have any experience with this?

It’s incredibly frustrating. Anvil is my go-to solution to implement LLMs, so I have no idea where to even start if anvil can’t resolve these issues.

Clone link:
It doesn’t clone my latest version… it only clones ‘master’ which was 1 month ago at least.

Merge the changes into another branch and then carry forward

Hey, thanks for the reply. However, I can’t merge a branch into anything other than master.

I tried creating a new branch called ‘merge_me’, and the only option is to merge with ‘master’.

(FYI. This ‘master_new’ is the version I’ve been working on for a month. So I branched ‘master_new’ to ‘merge_me’. Regardless, both only merge to ‘master’…and ‘master’ is the default branch that clones to a new app. So I can’t even clone ‘master_new’ to a new app either.)

Make the branch you want to merge into the “Editing branch.” Then right click on the commit you want to merge into it and select “Merge.”

image

Hey Tim,

I appreciate that. However, when I do…it says “internal error”. That’s the issue I’m having (same as in the original question). Thank you for your response though!

I can only imagine that this is pretty frustrating and scary.

Often “internal server error” is a sign Anvil Staff is needed to help. That error code helps them diagnose the issue. It’s 4am at Anvil HQ, but maybe someone will be able to help you tomorrow. (I’m not Anvil Staff, to be clear—only expressing a wish for you.)

1 Like

Hi @taylorerwin,

Whenever I have had similar issues - i do the merge via a Github directly.
If you have synced your repo to github this should be straight forward, go to github and create a pull request.

Hope it helps!

Hi @taylorerwin,

As @hugetim says, those codes correspond to internal error reports on our end. I’ve just searched our recent logs for 81078970651f and 423f2a50fb72, and can’t find either of them. I’m wondering if they were recorded long enough ago that those logs have aged out. Can you please try again and give us a “fresh” error code?

Finally, if you’re willing to abandon the changes on your current master branch, you can open your (old) master branch, then right-click on a newer commit (perhaps the commit currently pointed to by your master_new branch) and choose “reset master to this version”. That allows you to move the master branch forward without merging.

1 Like

What I’m trying to do:
Create a clone from a branch which is not Master

What I’ve tried and what’s not working:
Merge changes to Master - before attempting the clone - results in ‘Internal server error: bb03da9b0dad’

Code Sample:

# this is a formatted code snippet.
# paste your code between ``` 

Clone link:
share a copy of your app

Same issue with me. Version history on this is really hard to navigate. So many errors. The docs don’t provide any guidance.

I’ve merged these threads. Could anyone who has this merging issue please email the ID of the app and the branch you’re trying to merge to support@anvil.works so we can reproduce and investigate?

Hey there Meredydd,

I just tried to merge my ‘master_new’ back into my ‘master’, and I get this error: Internal server error: c907292426b6. All my other error codes were recorded within the last 48 hours.

I’m not willing to abandon the changes, as I’ve made 140 changes in the last 6 weeks.

I still also get the ‘you have made changes to the ‘master_new’ branch elsewhere, reset app’ warning.

I will email you now. I’m really hoping to resolve this issue shortly as I have a product launch on October 6, and I have a lot of work to do leading up to it!

At the risk of speaking out of turn, are any of these 140 changes on the original ‘master’ branch? If not, and if the ‘master_new’ branch is a direct descendant of the ‘master’ branch, then you won’t lose those changes if you were to…

Tim,

Thanks for the information! I will give that a try if I don’t hear anything back from the support team. I’m very paranoid about losing these changes- but I understand what you’re saying (that I can just ‘reset master to here’ and it will implement all those changes.).

In the meantime, I’ve cloned my version to github, then downloaded and started a new project from that clone. I then merged ‘master_new’ to master and it worked! However, I did lose my 25 tables, which I now have to manually ‘add from existing table’ back into this new app… which seems a little bizarre. I’m wondering why we can’t just copy tables. Instead, I have to clone my app, then ‘add from existing’.

Anyway, thanks for all your help so far!

1 Like

On the tables, another option might be to use shared tables, to share the tables from the original app. I haven’t thought through the pros and cons of that, though.