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

Start Issue [nothing happens after sending metadata.json to channel]. #34

Open
sckraaa opened this issue Oct 30, 2024 · 1 comment
Open

Comments

@sckraaa
Copy link

sckraaa commented Oct 30, 2024

I am really impressed with the work you have done. First of all, thank you!

Unfortunately, I can't get this to run. After the initial setup (config) I get the following:

npm start

> tgfs@1.0.20 start
> yarn build && node dist/src/index.js

yarn run v1.22.22
$ tsc && tsc-alias
Done in 4.18s.
[2024-10-30T16:57:54.725] [INFO] - [Running gramJS version 2.25.3]
[2024-10-30T16:57:54.731] [INFO] - [Connecting to 149.154.*(first server)*:80/TCPFull...] ​
[2024-10-30T16: 57:55.893] [INFO] - [Connection to 149.154.*(first server)*:80/TCPFull complete!]
[2024-10-30T16:57:55.894] [INFO] - [Using LAYER 184 for initial connect] ? phone number? +177********
[2024-10-30T16:58:03.843] [INFO] - [Phone migrated to 1]
[2024-10-30T16:58:03.876] [INFO] - [Reconnecting to new data center 1]
[2024-10-30T16:58:03.916] [WARN] [Disconnecting...]
[2024-10-30T16:58:03.917] [INFO] - [Disconnecting from 149.154.*(first server)*:80/TCPFull...] ​
[2024-10-30T16:58:03.918] [INFO] - [Connecting to 149.154.*(different server ip)*:80/TCPFull...] ​
[2024-10-30T16:58:03.919] [INFO] - [connection closed]
[2024-10-30T16:58:05.799] [INFO] - [Connection to 149.154.(different server ip)*:80/TCPFull complete!] 024-10-30T16:58:05.799] [INFO] - [Using LAYER 184 for initial connect]
? one-time code? 84800
? password? ********
[2024-10-30T16:58:20.704] [INFO] - [Signed in successfully as D*** S*******]
[2024-10-30T16:58:20.705] [INFO] - [Running gramJS version 2.25.3]
[2024-10-30T16:58:20.705] [INFO] - [Connecting to 149.154.*(first server)*:80/TCPFull...] ​
[2024-10-30T16:58:22.150] [INFO] - [Connection to 149.154.*(first server)*:80/TCPFull complete!]
[2024-10-30T16:58:22.151] [INFO] - [Using LAYER 184 for initial connect]
[2024-10-30T16:58:22.209] [INFO] - [Phone migrated to 1]
[2024-10-30T16:58:22.209] [INFO] - [Reconnecting to new data center 1]
[2024-10-30T16:58:22.223] [WARN] - [Disconnecting...]
[2024-10-30T16:58:22.223] [INFO] - [Disconnecting from 149.154.*(first server)*:80/TCPFull...] ​
[2024-10-30T16:58:22.224] [INFO] - [Connecting to 149.154.*(different server)*:80/TCPFull...] ​
[2024-10-30T16:58:22.224] [INFO] - [connection closed] 
[2024-10-30T16:58:24.155] [INFO] - [Connection to 149.154.1*(different server)*:80/TCPFull complete!]
[2024-10-30T16:58:24.155] [INFO] - [Using LAYER 184 for initial connect]
[2024-10-30T16:58:24.529] [INFO] - [Signed in successfully as flo***_storage]
[2024-10-30T16:58:25.199] [INFO] [TGFS] [worker 0] 100% uploaded 4623759515525154516(metadata.json)
[2024-10-30T16:58:25.700] [INFO] [TGFS] sending file metadata.json

after the last line, the metadata.json file is sent to the channel and subsequently attached, but that's it. or is it supposed to be like this? I tried sending a document to the channel (after the bot sent metadata.json), but there is nothing in the mount directory.

other attempts look like this:

root@flowflix:~/tgfs# npm start

> tgfs@1.0.20 start
> yarn build && node dist/src/index.js

yarn run v1.22.22
$ tsc && tsc-alias
Done in 4.55s.
[2024-10-30T17:04:38.741] [INFO] - [Running gramJS version 2.25.3]
[2024-10-30T17:04:38.748] [INFO] - [Connecting to 149.154.*(different server)*:80/TCPFull...]
[2024-10-30T17:04:38.867] [INFO] - [Connection to 149.154.*(different server)*:80/TCPFull complete!]
[2024-10-30T17:04:38.869] [INFO] - [Using LAYER 184 for initial connect]
[2024-10-30T17:04:39.132] [INFO] - [Running gramJS version 2.25.3]
[2024-10-30T17:04:39.134] [INFO] - [Connecting to 149.154.*(different server)*:80/TCPFull...]
[2024-10-30T17:04:39.253] [INFO] - [Connection to 149.154.*(different server)*:80/TCPFull complete!]
[2024-10-30T17:04:39.253] [INFO] - [Using LAYER 184 for initial connect]
[2024-10-30T17:04:39.943] [INFO] - [Starting indirect file download in chunks of 524288 at 0, stride 1048576]
[2024-10-30T17:04:40.092] [INFO] - [Connecting to 149.154.*(different server)*:443/TCPFull...]
[2024-10-30T17:04:40.224] [INFO] - [Connection to 149.154.*(different server)*:443/TCPFull complete!]
[2024-10-30T17:05:10.226] [WARN] - [Disconnecting...]
[2024-10-30T17:05:10.228] [INFO] - [Disconnecting from 149.154.*(different server)*:443/TCPFull...]
[2024-10-30T17:05:10.239] [INFO] - [connection closed]

I'm using Debian 11
npm -v: 10.7.0
nodejs -v: 18.20.4
yarn -v: 1.22.22

config:

telegram:
  api_id: 22******
  api_hash: 21b1******************
  account:
    session_file: ~/.tgfs/account.session
  bot:
    session_file: ~/.tgfs/bot.session
    token: 7246*****************************
  private_file_channel: '23*********'
  public_file_channel: ''
tgfs:
  users:
    user:
      password: password
  download:
    chunk_size_kb: 1024
webdav:
  host: 0.0.0.0
  port: 1900
  path: /
manager:
  host: 0.0.0.0
  port: 1901
  path: /
  bot:
    token: ''
    chat_id: 0
  jwt:
    secret: 6e2sZdBsFHGH7nfqvmYD3AVLolXbi9ZLT6fznrYsTu5giqzYPMgyFCJaWIVhjPs3
    algorithm: HS256
    life: 604800

I also tried another Telegram account, but nothing changed.

I really hope for your help, thank you!

@TheodoreKrypton
Copy link
Owner

Hello, you are not supposed to send files to the channel directly. You should use tgfs cmd or webdav interface to upload files.

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

2 participants