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

/bin/update-data fails with no explanation #800

Open
gerbsen opened this issue Feb 21, 2025 · 1 comment
Open

/bin/update-data fails with no explanation #800

gerbsen opened this issue Feb 21, 2025 · 1 comment

Comments

@gerbsen
Copy link
Contributor

gerbsen commented Feb 21, 2025

Hey there, I'm trying to setup a local dev environment. I follow the README.md file guide. If I run bin/docker-dev-up the setup fails for

docker compose run voctoweb bin/update-data

after some time without any given explanation. I tried debugging a bit, but not sure where to look exactly. Maybe it's a memory issue since those files are quite large?

voctoweb git:(main) ✗ docker compose run --remove-orphans voctoweb bin/update-data
WARN[0000] The "DEV_DOMAIN" variable is not set. Defaulting to a blank string.
WARN[0000] The "DEV_DOMAIN" variable is not set. Defaulting to a blank string.
[+] Creating 5/5
 ✔ Container voctoweb-voctoweb-run-e9d39cfe84ae  Removed                                                                                                                                     0.0s
 ✔ Container voctoweb-redis-1                    Running                                                                                                                                     0.0s
 ✔ Container voctoweb-postgres-1                 Running                                                                                                                                     0.0s
 ✔ Container voctoweb-elasticsearch-1            Running                                                                                                                                     0.0s
 ✔ Container voctoweb-sidekiq-1                  Running                                                                                                                                     0.0s
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0tmp/fixtures/
tmp/fixtures/web_feeds.yml
 88  128M   88  113M    0     0  4809k      0  0:00:27  0:00:24  0:00:03 5212ktmp/fixtures/news.yml
tmp/fixtures/recordings.yml
tmp/fixtures/conferences.yml
 92  128M   92  118M    0     0  4823k      0  0:00:27  0:00:25  0:00:02 5187ktmp/fixtures/events.yml
100  128M  100  128M    0     0  4877k      0  0:00:26  0:00:26 --:--:-- 5345k
tmp/fixtures/event_view_counts.yml

== Updating database ==
** Invoke db:fixtures:load_jsonb (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:fixtures:load_jsonb
** Execute db:fixtures:load
/voctoweb/test/fixtures/../../tmp/fixtures/conferences.yml contains invisible non-breaking spaces, you may want to remove those
/voctoweb/test/fixtures/../../tmp/fixtures/events.yml contains invisible non-breaking spaces, you may want to remove those
/voctoweb/test/fixtures/../../tmp/fixtures/web_feeds.yml contains invisible non-breaking spaces, you may want to remove those
D, [2025-02-21T14:41:45.193407 #12] DEBUG -- :   TRANSACTION (1.3ms)  BEGIN
D, [2025-02-21T14:41:45.197853 #12] DEBUG -- :   ↳ lib/tasks/db_load_fixtures_with_jsonb.rake:14:in `block (3 levels) in <top (required)>'
D, [2025-02-21T14:41:45.206836 #12] DEBUG -- :    (4.7ms)  ALTER TABLE "active_admin_comments" DISABLE TRIGGER ALL;ALTER TABLE "admin_users" DISABLE TRIGGER ALL;ALTER TABLE "api_keys" DISABLE TRIGGER ALL;ALTER TABLE "conferences" DISABLE TRIGGER ALL;ALTER TABLE "event_view_counts" DISABLE TRIGGER ALL;ALTER TABLE "events" DISABLE TRIGGER ALL;ALTER TABLE "news" DISABLE TRIGGER ALL;ALTER TABLE "recording_views" DISABLE TRIGGER ALL;ALTER TABLE "recordings" DISABLE TRIGGER ALL;ALTER TABLE "web_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL
D, [2025-02-21T14:41:45.208131 #12] DEBUG -- :   ↳ lib/tasks/db_load_fixtures_with_jsonb.rake:14:in `block (3 levels) in <top (required)>'

== Command ["FIXTURES_DIR=../../tmp/fixtures bin/rake db:fixtures:load_jsonb --trace"] failed ==
@gerbsen
Copy link
Contributor Author

gerbsen commented Feb 21, 2025

After deleting the web_feeds.yml file the import does work as expected. So is the problem the web_feeds file or the database import?

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

1 participant