Back

500 Internal Error on Function Settings

  • 0
  • Functions
  • Web
SpencerSama
1 Apr, 2023, 14:08

No, on vps server

TL;DR
User is experiencing a 500 Internal Error on Function Settings. The issue only affects projects that existed before migration. User suggests running the migration command again, but it may not have run correctly. Another user suggests checking docker logs for errors and reproducing the issue while checking browser network logs for the specific endpoint that resulted in the error. User also suggests restarting the appwrite instance using the commands "docker compose down" and "docker compose up -d". The 500 error indicates an issue with the server. Restarting the appwrite instance may help troubleshoot the problem.
safwan
1 Apr, 2023, 14:08

regardless, 500 means there's an issue with the server. easiest way to troubleshoot, is to restart the appwrite instance

safwan
1 Apr, 2023, 14:09

have you tried that?

safwan
1 Apr, 2023, 14:09

docker compose down

docker compose up -d

SpencerSama
1 Apr, 2023, 14:09

Let me try

safwan
1 Apr, 2023, 14:09

yep

SpencerSama
1 Apr, 2023, 14:14

After restart the appwrite instance, i have same issues

safwan
1 Apr, 2023, 14:53

is it only the functions page? or other pages too?

Drake
1 Apr, 2023, 14:54

Can you open the browser network logs, try to reproduce the issue, and see what endpoint resulted in 500?

SpencerSama
1 Apr, 2023, 22:40

Only settings Functions

SpencerSama
1 Apr, 2023, 22:42

sure

SpencerSama
1 Apr, 2023, 22:45
Drake
1 Apr, 2023, 23:18

So the variables API returned the 500 error.

Would you please look through your docker logs for the appwrite container to find the 500 error for the variables endpoint?

SpencerSama
1 Apr, 2023, 23:41

How do I proceed?

rohit90314
2 Apr, 2023, 18:07

Run this command on your VPS server where appwrite is hosted docker compose logs appwrite and check if you see any errors. Try this just after you have reproduced the error

SpencerSama
2 Apr, 2023, 20:46

ok

SpencerSama
2 Apr, 2023, 20:59
Drake
2 Apr, 2023, 21:03

hmm i haven't seen that error before...did you maybe have an older version of appwrite and then not run the migrate command fully when upgrading?

SpencerSama
2 Apr, 2023, 21:06

Maybe, but when I do an update I always run the migration command.

Drake
2 Apr, 2023, 21:10

maybe it didn't run correctly?

SpencerSama
2 Apr, 2023, 21:11

What can I do? Run the migration command again?

Drake
2 Apr, 2023, 21:47

What version are you on now?

SpencerSama
3 Apr, 2023, 01:37

1.2.1

Drake
3 Apr, 2023, 01:39

You can try to backup and then run:

TypeScript
docker compose exec appwrite exec migrate version=1.0.3
SpencerSama
3 Apr, 2023, 14:30

In fact I just made an observation, I noticed that it is only the projects that existed before the migration that are affected. While the new ones work without any problem.

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more