calzoneman / sync

Node.JS Server and JavaScript/HTML Client for synchronizing online media
Other
1.47k stars 232 forks source link

Migrate chandumps (from files to database). #831

Closed bytestostring closed 5 years ago

bytestostring commented 5 years ago

Server Problem

Hello!

I tried:

Description of the Problem

System Information

Does migrator.js still work?

calzoneman commented 5 years ago

That script is probably broken since it hasn't been used in some years.

It shouldn't be too hard to fix, I've been meaning to do that for a while and deprecate the old flatfile-based channels.

calzoneman commented 5 years ago

Edited OP slightly to fix the formatting of the stack trace.

calzoneman commented 5 years ago

Hi,

I fixed a minor issue that I think was causing it not to work. Please try again now, and reopen if it still doesn't work.

bytestostring commented 5 years ago

Hi, calzoneman!

The script output is normal, but a table "channel_data" is still empty after start the script. I have tried 3-4 times. Before start script I have disabled the CyTube.

node lib/channel-storage/migrator.js
No log backend bound for jsli.  Logging to stdout.
[WARN] config: Missing config key config.listen.0.http; using default: true
[WARN] config: Missing config key config.listen.1; using default: {"ip":"0.0.0.0","port":1337,"io":true}
[WARN] config: No Twitch Client ID set.  Twitch VOD links will not work.  See twitch-client-id in config.template.yaml and https://github.com/justintv/Twitch-API/blob/master/authentication.md#developer-setupfor more information on registering a client ID
[WARN] config: No Mixer Client ID set.  Mixer.com links will not work.  See mixer-client-id in config.template.yaml for more information on registering a client ID
[INFO] config: Loaded configuration from config.yaml
[INFO] config: No camo configuration found, chat images will not be proxied.
[INFO] config: No prometheus configuration found, defaulting to disabled
[INFO] config: No email configuration found, defaulting to disabled
[WARN] metrics: No metrics reporter configured.  Metrics will not be recorded.
Migrated /r/---
Migrated /r/00000
Migrated /r/0012
Migrated /r/1
Migrated /r/animeserge
Migrated /r/animu
Migrated /r/animumu
Migrated /r/ararararagi
Migrated /r/arrdipuppy
Migrated /r/art
Migrated /r/artspace
Migrated /r/as_above_so_below
.....%and_over_100_channels_migrated_without_errors%.....
Migrated /r/zp
Migration complete
bytestostring commented 5 years ago

I can't re-open the issue because closed not by me. Could you re-open it or I need create new issue?

Thank you.

calzoneman commented 5 years ago

Please try the latest commit.

bytestostring commented 5 years ago

Please try the latest commit.

It works! Successfully migration. Thank you very much!