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

Supabase start fails with unexpected EOF #1095

Closed
tirthpatell opened this issue Jan 10, 2024 · 6 comments
Closed

Supabase start fails with unexpected EOF #1095

tirthpatell opened this issue Jan 10, 2024 · 6 comments

Comments

@tirthpatell
Copy link

Just as the title says, everything was going smoothly until it reached that particular sql migrastion file 20240108234545_add_file_items.sql. And then it fails with unexpected EOF error

CleanShot 2024-01-10 at 17 56 48@2x

@JesseGuerrero
Copy link

I get a similar issue with the first .sql file
image

Arch Linux...

@kkartunov
Copy link

The vector type and the hnsw index method are part of the pgvector extension. Make sure that this extension is installed and enabled in your PostgreSQL database.

I am not sure how to do that in supabase. Tried but faild. Thus for now just commenting the index creation lines will get you going. App will work without indexes on those fields, probably slower but for local is not so important.

image

@tirthpatell
Copy link
Author

Can confim, the solution by @kkartunov worked. Thanks. I am going to close this.

@spammenotinoz
Copy link
Contributor

Hi, after much effort I was able to re-create the EOF issue, believe the cause was not having NodeJS at the required level prior to the install, and or the default node still being the older version.

#Cleanup (This should remove old versions of NodeJS, but only if installed via apt-get
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
apt-get remove nodejs

#Install Node (This should install the latest and change the default to the new install, in-case the removal did not work)
nvm install node
nvm install --lts
/home/linuxbrew/.linuxbrew/bin/brew reinstall supabase/tap/supabase #Just to be safe, re-install supabase (can't run as root)
docker volume rm supabase_config_chatbotui supabase_db_chatbotui supabase_edge_runtime_chatbotui supabase_inbucket_chatbotui supabase_storage_chatbotui #deletes the old supabase docker volumes
rm -R (your chatbot-ui directory) #important as the failed start modifes files, you want to start with a clean clone
#Validate the chatbot-ui folder is gone
edit your config.toml as required
edit your migration file as required
get back in the chatbot-ui folder and run
update your .env.local or set your system\variables, whatever approach you us
supabase start

@rdkdepak
Copy link

rdkdepak commented Oct 7, 2024

Hi, I’m encountering a similar issue with the first .sql file, but the error message is vague. I’ve tried a clean install of Node.js using version 18 as specified. I even commented out those index values, although it didn’t reach that part of the file. I also installed pgvector and PostgreSQL. However, I'm unsure how to integrate it with Supabase. I'm using an Ubuntu 22 VM on VirtualBox. I noticed a suggestion to set the CPU to "host," but that’s the default setting in VirtualBox.
image

@M0ns1gn0r
Copy link

@rdkdepak see my workaround here #1868

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants