#Self Hosting Error Cannot Create Default Account

1 messages · Page 1 of 1 (latest)

winged badge
#

Just installed appwrite and upon doing an initial sign up for the default user it errors out with NetworkError when attempting to fetch resource.

formal mural
#

Heyy 👋 Any erros in docker compose logs appwrite?

steel python
winged badge
#
[Error] Timestamp: 2025-05-23T20:45:21+00:00
appwrite  | [Error] Method: 
appwrite  | [Error] URL: /favicon.ico
appwrite  | [Error] Type: Appwrite\Extend\Exception
appwrite  | [Error] Message: Route not found. Please ensure the endpoint is configured correctly and that the API route is valid for this SDK version. Refer to the API docs for more details.
appwrite  | [Error] File: /usr/src/code/app/controllers/general.php
appwrite  | [Error] Line: 1583```
formal mural
#

Interesting 🤔 What steps did you follow when setting up Appwrite locally?

winged badge
#

ran this

#

docker run -it --rm --volume /var/run/docker.sock:/var/run/docker.sock --volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw --entrypoint="install" appwrite/appwrite:1.7.2

#

set default port to something not 80 since i run other services on here

#

and then went to the login page to sign up for an account

formal mural
#

Got it. All sounds correct.
Let's investigate further.

After trying to login/sign up, if you open browser's Console, can you provide a screenshot?
In "Network" tab, can you find the specific request, and show details of that? (payload, response, headers, path..)

winged badge
#

hold on sure

#

CORS issue

formal mural
#

goood, good

#

what's the hostname? Is it localhost?

winged badge
#

yeah

formal mural
#

hmm, lets see.. What URL exactly is blocked by CORS?

#

I am guessing something like http://localhost/v1/account

winged badge
#

yes

formal mural
#

perfect. if you visit it manually (in new browser tab), what does it respond with?

formal mural
winged badge
#

gives me a 404

winged badge
formal mural
#

(if not, we know problem is before appwrite api container)

winged badge
#

no response

#

its just a direct block

formal mural
#

oh, just empty 404?

winged badge
#

oh the return

#

hold on

obtuse roost
formal mural
#

I would expect something like this, for example

winged badge
#

{"message":"User (role: guests) missing scope (account)","code":401,"type":"general_unauthorized_scope","version":"1.7.2"}

formal mural
#

There might be new security measures due to sites, which might be causing trouble for when port is customized.
Trying on my end, Ill get back to you folks in 5-10 mins

winged badge
#

i need 80 open as i use it for other stuffs

#

only other option i guess would be to host on an actual vm

obtuse roost
#

@winged badge out of curiosity, what OS are you using?

winged badge
#

ubuntu

obtuse roost
#

Oh never mind. I’m on a Mac. Was hoping there was some connection with Mac and silicon chips here. Guess not

winged badge
#

nah . . . me thinks its attempting to use the default port for requests despite the fact that there is a different one in there

obtuse roost
#

Yup, that’s what I think as well

winged badge
#

only reason why it would be pulling a CORS error

#

if u take a look at network anything that is not a direct asset is pulled without the port and fails

#

interestingly enough i had used a 1.6 version previously without this problem so seems to be a new issue in regards to 1.7

formal mural
#

Found it, trying to see if there is a fix other than 1.7.3 release

winged badge
#

we gotta wait for 1.7.3? or can we just pull that for the docker instance and remove the 1.7.2

formal mural
#

I am trying to find solution that doesntrequire 1.7.3. Need another 5-10mins

winged badge
#

i should say is it a current version or one in a beta or something

winged badge
#

of course i say that and i didnt even look at literally the one prior to mine

formal mural
#

Grrr, it's so complex. And for us it's just 1 line fix

#

Let me try to reach some engineers for reviews

#

On Friday night

winged badge
#

is it something we can do on our end?

#

like a manual patch i can do

formal mural
# winged badge is it something we can do on our end?
# Clone Console
git clone --single-branch --branch 6.0.8 https://github.com/appwrite/console.git

# Enter directory
cd console

# Build new image
# Took me ~3mins
PUBLIC_APPWRITE_ENDPOINT="http://localhost:9555/" docker build -t appwrite/console:6.0.8 .

# Go back to Appwrite folder
cd ..

# Restart Appwrite
docker compose up -d --force-recreate
#

This, probably

#

but its just so complex I didnt even want to suggest it

winged badge
#

if its literally just run that then how is it complex?

#

ill try it in a minute and see if it works

#

one question though

#

that endpoint should i be using my own port instead of 9555?

formal mural
#

ah, yes, exactly. change port number, I was testing on 9555

formal mural
winged badge
#

should i bring down appwrite before doing it?

#

or will it just refresh it automatically

formal mural
formal mural
winged badge
#

my boss complains i dont follow KISS principle enough myself

#

soooo . . . should the git clone only happen within the appwrite folder itself and not an outside directory?

#

idk if that matters with docker as i dont really use it much for anything

formal mural
#

Enjoy your favourite song, or two, and Ill get back to you

winged badge
#

i did it outside and nothing . . .

#

nope

#

still issues

#

continues to pull from default port

formal mural
#

@winged badge Good news! I managed to get PR merged, and release new version. Please do following:

  1. Open docker.compose.yml file (auto-generated in appwrite folder, created by installation)

  2. Locate appwrite-console service, it should be using image appwrite/console:6.0.8 (or maybe a bit different number)

  3. Set image version to appwrite/console:6.0.11

  4. Save changes

  5. Apply changes with docker compose down && docker compose up -d

  6. Enjoy Appwrite on custom port 🥳

#

Please let me know if this works for you 🙏

winged badge
#

thanks u very much . . . that is some good stuffs this late in the day

formal mural