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

Duplicate history entries #4035

Closed
Liam024 opened this issue Apr 17, 2021 · 11 comments
Closed

Duplicate history entries #4035

Liam024 opened this issue Apr 17, 2021 · 11 comments
Labels
needs more information We need more information from the submitter, including logs, to diagnose the issue further. rolling-release Indicating that the installation experiencing the issue is using the rolling-release version. unexpected behaviour For issues that show a part of AzuraCast behaving in a way that is not as intended.

Comments

@Liam024
Copy link

Liam024 commented Apr 17, 2021

Using Docker installation method
Yes

AzuraCast version
Rolling Release #4e6f1d7 (2021-04-17 18:42)

Host Operating System
Debian 10

Describe the bug
Since the last 4e6f1d7 Update the songs are double in my history - playing just not double fortunately. The songs are in the sense just entered twice at the same time (See screenshots - The screenshots refer to different stations + times)

Screenshots
image
image
image
image

@BusterNeece
Copy link
Member

@Abqehebter I'm not seeing this on my local installation. Not sure what's causing it in this case. Will have to investigate further.

@BusterNeece BusterNeece added error An error encountered when running the software. needs more information We need more information from the submitter, including logs, to diagnose the issue further. labels Apr 18, 2021
@Liam024
Copy link
Author

Liam024 commented Apr 18, 2021

@SlvrEagle23 You are right. After updating to the latest rolling release version, it seems to be working again on the two test servers of mine. I'm still keeping an eye on this though.

@Liam024
Copy link
Author

Liam024 commented Apr 18, 2021

It does seem to still happen occasionally, but also not as much as yesterday when I was watching.
It is also good to see that there are no/few problems with it in the NOWPLAYING API, but of course all problems with it in the HISTORY API:

Song Playback Timeline:
image


API Nowplaying (/api/nowplaying/STATION_SHORTCODE):
      {
         "sh_id":44459,
         "played_at":1618755967,
         "duration":179,
         "playlist":"testplaylist",
         "streamer":"",
         "is_request":false,
         "song":{
            "id":"f70c95cf989959052e7b19f530f089e8",
            "text":"Ava Max, Jonas Blue - My Head & My Heart - Jonas Blue Remix",
            "artist":"Ava Max, Jonas Blue",
            "title":"My Head & My Heart - Jonas Blue Remix",
            "album":"My Head & My Heart (Jonas Blue Remix)",
            "genre":"",
            "lyrics":"",
            "art":"Censored",
            "custom_fields":[
               
            ]
         }
      },
      {
         "sh_id":44456,
         "played_at":1618755772,
         "duration":199,
         "playlist":"testplaylist",
         "streamer":"",
         "is_request":false,
         "song":{
            "id":"dc167570d3d03377cb572c6e1d10844b",
            "text":"LA Vision, Gigi D'Agostino - Hollywood",
            "artist":"LA Vision, Gigi D'Agostino",
            "title":"Hollywood",
            "album":"Hollywood",
            "genre":"",
            "lyrics":"",
            "art":"Censored",
            "custom_fields":[
               
            ]
         }
      },
      {
         "sh_id":44455,
         "played_at":1618755769,
         "duration":3,
         "playlist":"adtrigger",
         "streamer":"",
         "is_request":false,
         "song":{
            "id":"586c1559fda5ac5d5a94dbaca8e863f6",
            "text":"START_AD_BREAK - START_AD_BREAK",
            "artist":"START_AD_BREAK",
            "title":"START_AD_BREAK",
            "album":"",
            "genre":"",
            "lyrics":"",
            "art":"Censored",
            "custom_fields":[
               
            ]
         }
      },
API History (/api/station/STATION_SHORTCODE/history):
{
   "listeners_start":0,
   "listeners_end":0,
   "delta_total":0,
   "sh_id":44459,
   "played_at":1618755967,
   "duration":179,
   "playlist":"testplaylist",
   "streamer":"",
   "is_request":false,
   "song": {
      "id":"f70c95cf989959052e7b19f530f089e8",
      "text":"Ava Max, Jonas Blue - My Head & My Heart - Jonas Blue Remix",
      "artist":"Ava Max, Jonas Blue",
      "title":"My Head & My Heart - Jonas Blue Remix",
      "album":"My Head & My Heart (Jonas Blue Remix)",
      "genre":"",
      "lyrics":"",
      "art":"Censored",
      "custom_fields":[
      
   ]
}
},
{
   "listeners_start":0,
   "listeners_end":0,
   "delta_total":0,
   "sh_id":44456,
   "played_at":1618755772,
   "duration":199,
   "playlist":"testplaylist",
   "streamer":"",
   "is_request":false,
   "song":{
      "id":"dc167570d3d03377cb572c6e1d10844b",
      "text":"LA Vision, Gigi D'Agostino - Hollywood",
      "artist":"LA Vision, Gigi D'Agostino",
      "title":"Hollywood",
      "album":"Hollywood",
      "genre":"",
      "lyrics":"",
      "art":"Censored",
      "custom_fields":[
         
      ]
   }
},
{
   "listeners_start":0,
   "listeners_end":0,
   "delta_total":0,
   "sh_id":44457,
   "played_at":1618755772,
   "duration":199,
   "playlist":"testplaylist",
   "streamer":"",
   "is_request":false,
   "song":{
      "id":"dc167570d3d03377cb572c6e1d10844b",
      "text":"LA Vision, Gigi D'Agostino - Hollywood",
      "artist":"LA Vision, Gigi D'Agostino",
      "title":"Hollywood",
      "album":"Hollywood",
      "genre":"",
      "lyrics":"",
      "art":"Censored",
      "custom_fields":[
         
      ]
   }
},
{
   "listeners_start":0,
   "listeners_end":0,
   "delta_total":0,
   "sh_id":44455,
   "played_at":1618755769,
   "duration":3,
   "playlist":"adtrigger",
   "streamer":"",
   "is_request":false,
   "song":{
      "id":"586c1559fda5ac5d5a94dbaca8e863f6",
      "text":"START_AD_BREAK - START_AD_BREAK",
      "artist":"START_AD_BREAK",
      "title":"START_AD_BREAK",
      "album":"",
      "genre":"",
      "lyrics":"",
      "art":"Censored",
      "custom_fields":[
         
      ]
   }
},
Liquidsoap Log
2021/04/18 16:19:32 [lang:3] AzuraCast Feedback Response: OK
2021/04/18 16:21:57 [lang:3] AzuraCast Raw Response: annotate:title="START_AD_BREAK",artist="START_AD_BREAK",duration="3.06",song_id="586c1559fda5ac5d5a94dbaca8e863f6",media_id="212",liq_amplify="0.00dB",playlist_id="13":/var/azuracast/stations/teststation/media/start_ad_break.mp3
2021/04/18 16:21:57 [decoder:3] Method "FFMPEG" accepted "/var/azuracast/stations/teststation/media/start_ad_break.mp3".
2021/04/18 16:22:00 [lang:3] AzuraCast Raw Response: annotate:title="Hollywood",artist="LA Vision, Gigi D'Agostino",duration="199.68",song_id="dc167570d3d03377cb572c6e1d10844b",media_id="49",liq_amplify="0.00dB",playlist_id="1":/var/azuracast/stations/teststation/media/hollywood.mp3
2021/04/18 16:22:00 [decoder:3] Method "FFMPEG" accepted "/var/azuracast/stations/teststation/media/hollywood.mp3".
2021/04/18 16:22:37 [ffmpeg:3] [mp3float @ 0x7f61dc4b2680] Could not update timestamps for discarded samples.
2021/04/18 16:22:37 [next_song:3] Prepared "/var/azuracast/stations/teststation/media/start_ad_break.mp3" (RID 5).
2021/04/18 16:22:37 [ffmpeg:3] [mp3float @ 0x7f61dc669600] Could not update timestamps for skipped samples.
2021/04/18 16:22:37 [ffmpeg:3] [mp3float @ 0x7f61dc669600] Could not update timestamps for discarded samples.
2021/04/18 16:22:37 [next_song:3] Prepared "/var/azuracast/stations/teststation/media/hollywood.mp3" (RID 6).
2021/04/18 16:22:37 [cross_38791:3] Analysis: -47.281519dB / -89.949059dB (4.51s / 3.02s)
2021/04/18 16:22:37 [crossfade:3] No transition: using default.
2021/04/18 16:22:37 [lang:3] AzuraCast Feedback Response: OK
2021/04/18 16:22:42 [lang:3] AzuraCast Feedback Response: OK
2021/04/18 16:22:45 [ffmpeg:3] [mp3float @ 0x7f61dc0e6400] Could not update timestamps for skipped samples.
2021/04/18 16:22:45 [lang:3] AzuraCast Feedback Response: OK
2021/04/18 16:25:20 [lang:3] AzuraCast Raw Response: annotate:title="My Head & My Heart - Jonas Blue Remix",artist="Ava Max, Jonas Blue",duration="179.54",song_id="f70c95cf989959052e7b19f530f089e8",media_id="62",liq_amplify="0.00dB",playlist_id="1":/var/azuracast/stations/teststation/media/my_head__my_heart_-_jonas_blue_remix.mp3
2021/04/18 16:25:20 [decoder:3] Method "FFMPEG" accepted "/var/azuracast/stations/teststation/media/my_head__my_heart_-_jonas_blue_remix.mp3".
2021/04/18 16:25:59 [ffmpeg:3] [mp3float @ 0x7f61dc0e6400] Could not update timestamps for discarded samples.
2021/04/18 16:26:00 [next_song:3] Prepared "/var/azuracast/stations/teststation/media/my_head__my_heart_-_jonas_blue_remix.mp3" (RID 7).
2021/04/18 16:26:00 [ffmpeg:3] [mp3float @ 0x7f61dc422980] Could not update timestamps for skipped samples.
2021/04/18 16:26:00 [cross_38791:3] Analysis: -92.811252dB / -33.278959dB (4.50s / 4.54s)
2021/04/18 16:26:00 [crossfade:3] new >= old + margin, old <= medium and new <= high.
2021/04/18 16:26:00 [crossfade:3] Do not fade if it's already very low.
2021/04/18 16:26:00 [crossfade:3] Transition: crossed, no fade.
2021/04/18 16:26:00 [lang:3] AzuraCast Feedback Response: OK

@Vaalyn Vaalyn added rolling-release Indicating that the installation experiencing the issue is using the rolling-release version. unexpected behaviour For issues that show a part of AzuraCast behaving in a way that is not as intended. and removed error An error encountered when running the software. labels Apr 22, 2021
@Liam024
Copy link
Author

Liam024 commented Apr 25, 2021

This is a very strange "error" that also occurs only occasionally... I have previously uploaded my backup from the production server to the test server, there it appeared. When I reinstalled AzuraCast yesterday, it worked again.
I will bring my production server today times on the latest rolling release version and see if it continues to occur.

@Liam024
Copy link
Author

Liam024 commented Apr 25, 2021

I made an "important" new observation:

As soon as I have only one station running, everything runs as it should.
Thus I have me earlier 2 (So that a total of 3) stations created and this again observed.

Here the error came out, so a song was 2x in the history - With the other 2 stations exactly the same.

So it seems as if the problem is only present at several stations, not at one.

@stale
Copy link

stale bot commented Jul 11, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jul 11, 2021
@Liam024
Copy link
Author

Liam024 commented Aug 2, 2021

I continue to have problems with listing titles in the double sense. As you can see from the JSON here, a total of 3 songs are listed twice and I have absolutely no idea why it does that. Always one second later it lists the song again:

(By the way, I query my JSON here via the AzuraCast API (https://azuracast.example.com/api/station/1/history?start=2021-08-02&end=2021-08-02))

{
   "time":1627864149,
   "load_time":"0.131 ms",
   "from":"01:00",
   "till":"02:00",
   "date":"2021-08-02",
   "station":"1",
   "songHistory":[
      {
         "time":"01:57:32",
         "artist":"PANIC! AT THE DISCO",
         "title":"HIGH HOPES"
      },
      {
         "time":"01:54:14",
         "artist":"ROBIN SCHULZ",
         "title":"ALL WE GOT (FEAT. KIDDO)"
      },
      {
         "time":"01:51:37",
         "artist":"BENNY BLANCO & HALSEY & KHALID",
         "title":"EASTSIDE"
      },
      {
         "time":"01:48:29",
         "artist":"MARTIN GARRIX & DAVID GUETTA",
         "title":"SO FAR AWAY (FEAT. JAMIE SCOTT & ROMY DYA)"
      },
      {
         "time":"01:44:06",
         "artist":"ED SHEERAN & JUSTIN BIEBER",
         "title":"I DON'T CARE"
      },
      {
         "time":"01:44:05",
         "artist":"ED SHEERAN & JUSTIN BIEBER",
         "title":"I DON'T CARE"
      },
      {
         "time":"01:41:56",
         "artist":"TWOCOLORS",
         "title":"BLOODSTREAM"
      },
      {
         "time":"01:37:41",
         "artist":"BASTILLE",
         "title":"THINGS WE LOST IN THE FIRE"
      },
      {
         "time":"01:33:11",
         "artist":"SHOUSE",
         "title":"LOVE TONIGHT"
      },
      {
         "time":"01:33:10",
         "artist":"SHOUSE",
         "title":"LOVE TONIGHT"
      },
      {
         "time":"01:31:55",
         "artist":"LEONY",
         "title":"FADED LOVE"
      },
      {
         "time":"01:27:22",
         "artist":"GALANTIS & ONEREPUBLIC",
         "title":"BONES"
      },
      {
         "time":"01:24:45",
         "artist":"SIGALA & RITA ORA",
         "title":"YOU FOR ME"
      },
      {
         "time":"01:24:44",
         "artist":"SIGALA & RITA ORA",
         "title":"YOU FOR ME"
      },
      {
         "time":"01:21:20",
         "artist":"LA VISION & GIGI D'AGOSTINO",
         "title":"HOLLYWOOD"
      },
      {
         "time":"01:17:51",
         "artist":"THE WEEKND",
         "title":"SAVE YOUR TEARS"
      },
      {
         "time":"01:14:19",
         "artist":"DEORRO & CHRIS BROWN",
         "title":"FIVE MORE HOURS"
      },
      {
         "time":"01:11:10",
         "artist":"TOPIC",
         "title":"BREAKING ME (FEAT. A7S)"
      },
      {
         "time":"01:08:47",
         "artist":"ELLIE GOULDING & DIPLO",
         "title":"CLOSE TO ME (FEAT. SWAE LEE)"
      },
      {
         "time":"01:05:28",
         "artist":"IMAGINE DRAGONS",
         "title":"WHATEVER IT TAKES"
      },
      {
         "time":"01:02:06",
         "artist":"CLUESO",
         "title":"LEIDER BERLIN"
      }
   ]
}

@stale stale bot removed the wontfix label Aug 2, 2021
@stale
Copy link

stale bot commented Oct 2, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Oct 2, 2021
@Liam024
Copy link
Author

Liam024 commented Nov 1, 2021

Another very important addendum and especially important to be able to reproduce this error:

  • With a single station everything runs normally (Or even with only a few stations).
  • With more than 10 (for me it is 15 stations) the error occurs properly.

I have now completely reinstalled AzuraCast and set up everything again to find out. Possibly one can work with the result of me now better?

Unfortunately, I do not know the exact cause.

@stale stale bot removed the wontfix label Nov 1, 2021
@Liam024
Copy link
Author

Liam024 commented Dec 1, 2021

Then I'll save the "error" here, because it doesn't belong to the other issue anymore, but still somehow "comes along":
image

@Liam024
Copy link
Author

Liam024 commented Dec 30, 2021

Fixed with the commit: 09e3c57

@Liam024 Liam024 closed this as completed Dec 30, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Jul 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs more information We need more information from the submitter, including logs, to diagnose the issue further. rolling-release Indicating that the installation experiencing the issue is using the rolling-release version. unexpected behaviour For issues that show a part of AzuraCast behaving in a way that is not as intended.
Projects
None yet
Development

No branches or pull requests

3 participants