Beatseek uncovers the gaps in your music collection by verifying your local files against the Spotify API.
KNOWN ISSUES:
fly proxy 15432:5432 -a beatseek-db
in a dedicated terminal to keep the proxy active.
artisan
."Only valid bearer authentication supported"
oban_jobs
table or displayed when using the UI for an individual artist** (MatchError) no match of right hand side value: {:ok, %{"error" => %{"message" => "Only valid bearer authentication supported", "status" => 400}}}
(beatseek 0.1.0) lib/beatseek/verification/spotify.ex:17: Beatseek.Verification.Spotify.get_artist/1
SPOTIFY_USER_ID
, SPOTIFY_CLIENT_ID
, and SPOTIFY_CLIENT_SECRET
were not set or not migrated to v2.fly secrets set <copied line from .env>
and repeated until all variables have been set.DATABASE_URL
, RELEASE_COOKIE
, and SECRET_KEY_BASE
."Constraint error when attempting to insert struct: * albums_pkey (unique_constraint)"
** (Ecto.ConstraintError) constraint error when attempting to insert struct:
* albums_pkey (unique_constraint)
If you would like to stop this constraint violation from raising an
exception and instead add it as an error to your changeset, please
call `unique_constraint/3` on your changeset with the constraint
`:name` as an option.
The changeset has not defined any constraint.
create unique_index(:albums, [:artist_id, :name])
so it should be a unique artist_id AND name here.SELECT last_value FROM albums_id_seq;
or SELECT pg_sequence_last_value('public.albums_id_seq');
also works
SELECT setval('albums_id_seq', (SELECT MAX(id) FROM albums));
for each table affected, artists
and albums
.To start your Phoenix server:
mix setup
to install and setup dependenciesmix phx.server
or inside IEx with iex -S mix phx.server
Now you can visit localhost:4000
from your browser.
Ready to run in production? Please check our deployment guides.