Comments (7)
This doesn't actually place lemmy_server in /usr/bin. It uses /usr/bin as the target directory for cargo when building. I believe --root is what is meant to be used here.
Correct. I ran into the same problem.
Documentation https://join-lemmy.org/docs/en/administration/from_scratch.html should be changed
The correct command that it should say is
cargo install lemmy_server --root /usr/ --locked --features embed-pictrs
Then we get the final binary in /usr/bin/
as it should be, and we avoid most of the build garbage being put in system dirs.
Although it does seem to still result in .crates.toml
and .crates2.json
files being placed in /usr/
.
from lemmy-docs.
a cryptic error "Couldn't run DB Migrations" is displayed, with no further information about the error encountered
I see a similar message on my machine, having followed the original guide.
2023-06-12T18:40:45.893739Z INFO lemmy_db_schema::utils: Running Database migrations (This may take a long time)...
thread 'main' panicked at 'Couldn't run DB Migrations', /root/.cargo/registry/src/github.com-1ecc6299db9ec823/lemmy_db_schema-0.17.3/src/utils.rs:165:25
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Will try your suggestion about making the db lemmy user a db superuser. But I am questioning if that is really ideal. In my case I am running a separate PostgreSQL server for Lemmy, so for me it is not a big deal. But for people having different databases with different data on one shared PostgreSQL server it does not seem desirable to have the lemmy db user be a db superuser.
from lemmy-docs.
I changed the lemmy user to a superuser
psql -c "ALTER USER lemmy WITH SUPERUSER;"
but for some reason I still get "Couldn't run DB Migrations", even though my lemmy db user is now a db superuser :S
\du
List of roles
Role name | Attributes | Member of
-----------+------------------------------------------------------------+-----------
lemmy | Superuser | {}
postgres | Superuser, Create role, Create DB, Replication, Bypass RLS | {}
from lemmy-docs.
For me the second issue with "Couldn't run DB Migrations" was that one of the migrations https://github.com/LemmyNet/lemmy/blob/25275b79eed0fb1fe90d27c197725f510f9965bb/migrations/2021-09-20-112945_jwt-secret/up.sql need the pgcrypto
extension.
On the platform I am running on, FreeBSD 13.2-RELEASE, this required that in addition to having postgresql15-server
installed I also needed to have postgresql15-contrib
installed.
from lemmy-docs.
I get a working installation by following these steps, however, --features embed-pictrs
seems to be ignored in my case.
from lemmy-docs.
I get a working installation by following these steps, however,
--features embed-pictrs
seems to be ignored in my case.
Website is down. Possibly theres any backup or other source?!
from lemmy-docs.
Website is down. Possibly theres any backup or other source?!
Not down on my end? You can check it here if you still have issues: https://web.archive.org/web/20230619234739/https://retiolus.net/posts/how-to-install-lemmy-from-scratch/
from lemmy-docs.
Related Issues (20)
- [Request] Podman Install HOT 3
- Add sources to back up "History of Lemmy"
- [Bug]: embed pictrs doesn't work HOT 1
- administration/configuration.html has a faulty link to 'defaults.hjson'
- Contributor local development postgreSQL missing a step HOT 1
- Theming section is outdated
- The client contributer example for Rust is wrong HOT 1
- Document that high db pool size requires increased shared memory for postgres HOT 4
- Suggested backup script is somewhat dangerous HOT 3
- Lemmy migration from a domain name to another HOT 2
- `docker-compose.yml` linked for manual docker install contain ansible if-statements HOT 6
- Introducing Elestio as one-click deployment option with others
- From scratch installation instructions not working HOT 10
- Json Objects in the doc are not loaded in correctly HOT 3
- [Bug]: Incorrect pathing in copy binary command in "from scratch" doc HOT 3
- Object Storage for embedded pict-rs on from scratch install? HOT 7
- Missing pg_format install instructions
- Document how to delete images (pict-rs) HOT 4
- `pnpm translations:generate` is missing in lemmy-ui local development instructions HOT 1
- Dependency Dashboard
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lemmy-docs.