mgilangjanuar / teledrive

The Google Drive/OneDrive/etc alternative using Telegram API
https://teledriveapp.com
GNU General Public License v3.0
2.05k stars 950 forks source link

Installation on UbuntuServer 20.04.4 #282

Closed EtorS closed 1 year ago

EtorS commented 2 years ago

Hi, i have a problem with installation on Ubuntu Server 20.04.

I installed every requisite, but when i try

yarn server typeorm schema:sync

i have this error:

yarn run v1.22.17
$ yarn workspace server typeorm schema:sync
error Command "typeorm" not found.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed.
Exit code: 1
Command: /usr/bin/node
Arguments: /usr/lib/node_modules/yarn/lib/cli.js typeorm schema:sync
Directory: /home/etors/teledrive/server
Output:

info Visit https://yarnpkg.com/en/docs/cli/workspace for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
hivebackup commented 2 years ago

Try to use psql db_name < ./server/src/model/migrations/dump.sql instead, had the same issue and using this instead fixed it

EtorS commented 2 years ago

Try to use psql db_name < ./server/src/model/migrations/dump.sql instead, had the same issue and using this instead fixed it

No luck.. i got another error.. i need a guide for installation on ubuntu 😥

mgilangjanuar commented 2 years ago

Have you tried with docker?

EtorS commented 2 years ago

no, How? Im not an expert sadly.. :(

EtorS commented 2 years ago

Thanks to a friend i managed to install and run the application! But obviously I have a problem 😅. I can't sing in in telegram, i receive the verification code but the site return a generic error and don't let me put the verification code. I think it's related to API_JWT_SECRET, but I don't know what's its is this variable and simply I leave blank.. what I have to put in those JWT variables? Thanks 🙏

mgilangjanuar commented 2 years ago

Cool! It's a random string.

mgilangjanuar commented 2 years ago

Try to pull and rebuild everything, I just refactor the whole installation with docker 😆

EtorS commented 2 years ago

Cool! It's a random string.

YEYYYY Finally!! Everything working! But... i cant upload file greater than 2GB, i setted the variable disable payment check but.. i have to do something else? pay? or?

mgilangjanuar commented 2 years ago

Did you just update your plan in users db to premium?

EtorS commented 2 years ago

Did you just update your plan in users db to premium?

Uhm no, I'll try, can you give me more details? Thanks 🙏

EtorS commented 2 years ago

Did you just update your plan in users db to premium?

Uhm no, I'll try, can you give me more details? Thanks 🙏

Ok, i managed to update the plan to 'premium', but launching the server reset the value to '', I do something wrong?

mgilangjanuar commented 2 years ago

Weird, can you update the env DISABLE_PAYMENT_CHECK to true?

EtorS commented 2 years ago

Weird, can you update the env DISABLE_PAYMENT_CHECK to true?

It's already set to true.. :(

EtorS commented 2 years ago

This is my .env file..

NPM_TOKEN=your_github_token

# server configuration
ENV=production
RPS=

TG_API_ID=nothingtoseehere
TG_API_HASH=nothingtoseehere
TG_BOT_TOKEN=nothingtoseehere
TG_BOT_OWNER_ID=nothingtoseehere
TG_BOT_ERROR_REPORT_ID=

DB_USERNAME=postgres
DB_PASSWORD=postgres
DB_NAME=teledrive

GITHUB_TOKEN=

API_JWT_SECRET=abcd1234
FILES_JWT_SECRET=abcd1234

PAYPAL_CLIENT_ID=
PAYPAL_CLIENT_SECRET=
PAYPAL_PLAN_PREMIUM_ID=

MIDTRANS_MERCHANT_ID=
MIDTRANS_CLIENT_KEY=
MIDTRANS_SERVER_KEY=

UTILS_API_KEY=

DISABLE_PAYMENT_CHECK=true
mgilangjanuar commented 2 years ago

I'll remove all restrictions in a new branch for on-premise installation

birdup000 commented 1 year ago

This seems to be resolved!!