ente icon indicating copy to clipboard operation
ente copied to clipboard

self-hosting shell script or docs have bugs

Open aleqx opened this issue 2 months ago • 2 comments

Description

Created a new user ente on a Ubuntu 20.04 and verified it has a home dir and valid UID.

adduser ente

Then, the docs say:

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ente-io/ente/main/server/quickstart.sh)"

But running it like that gives an error in line 226: sh: 226: [[: not found ... which means it's meant for bash, not sh

Changing it to:

bash -c "$(curl -fsSL https://raw.githubusercontent.com/ente-io/ente/main/server/quickstart.sh)"

I get

ente@tom:~$ bash -c "$(curl -fsSL https://raw.githubusercontent.com/ente-io/ente/main/server/quickstart.sh)"

 - H E L L O - E N T E -

 E   Created directory my-ente
 N   Created compose.yaml
 T   Created museum.yaml
 E   Do you want to start Ente? (y/n) [n]: y

Starting docker compose

After the cluster has started, open web app at http://localhost:3000
(Verification code will be in the logs here)

unable to get image 'postgres:15': permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.49/images/postgres:15/json": dial unix /var/run/docker.sock: connect: permission denied

Surely it doesn't require to as under root, does it? It would have prepended sudo to the install command.

Am I missing something?

Version

No response

What product are you using?

No response

What platform are you using?

No response

aleqx avatar Oct 31 '25 23:10 aleqx

Add your user to the docker group.

Confirm if you can run this:

sudo docker pull postgres:15

if you can , its a permission issue. Also, your user might not be in the sudoers file , which would prevent this test.

But apparently this isn't an issue with script or docs.

osousa avatar Nov 01 '25 00:11 osousa

Thanks! Will try. EDIT: Yeah, that worked. I did sudo usermod -a -G docker,sudo ente

So are the docs implying root or should the above be included in the docs?

The bash vs sh issue should still be fixed though.

The script itself could also check and warn if (not) root.

aleqx avatar Nov 01 '25 00:11 aleqx