this post was submitted on 28 Jun 2023
1 points (100.0% liked)

Lemmy Support

4651 readers
1 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 6 years ago
MODERATORS
 

So I seem to have "successfully" set up a Lemmy from Scratch server on Ubuntu 22.04 .. The problem I'm having is it doesn't seem to go to a registration page, and when you try to sign up for a new account, or do anything really, it seems to endlessly spin. Any ideas?

you are viewing a single comment's thread
view the rest of the comments
[–] DocTator@lemmy.ml 0 points 2 years ago (1 children)
[–] RoundSparrow@lemmy.ml 1 points 2 years ago (1 children)

Dong from scratch, make sure your lemmy-ui github checkout was 0.18 - as those logs look like what the outdated docs say.

[–] DocTator@lemmy.ml 2 points 2 years ago (1 children)

When trying to build lemmy ui with github checkout 0.18 I get this error :

error /var/lib/lemmy-ui/node_modules/sharp: Command failed.
Exit code: 1
Command: (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
Arguments: 
Directory: /var/lib/lemmy-ui/node_modules/sharp
Output:
sharp: Installation error: EACCES: permission denied, mkdir '/home/lemmy/.npm'
sharp: Are you trying to install as a root or sudo user?
sharp: - For npm <= v6, try again with the "--unsafe-perm" flag
sharp: - For npm >= v8, the user must own the directory "npm install" is run in
sharp: Please see https://sharp.pixelplumbing.com/install for required dependencies

Error: ENOENT: no such file or directory, open '/home/lemmy/.yarnrc'

[–] RoundSparrow@lemmy.ml 2 points 2 years ago (1 children)

looks like a file permission problem. would 1) delete the entire /var/lib/lemmy-ui tree, 2) make sure you are dong sudo -u lemmy bash and on the correct account, 3) start over at git checkout

[–] DocTator@lemmy.ml 1 points 2 years ago

tried that with the same result. It works if I git checkout 0.16.7 as stated in the docs, but every time I try to build using 0.18.0 it'll throw that file permission error.