[GH-ISSUE #1905] The MAC is invalid when docker compose down and up again #1030

Closed
opened 2026-02-26 02:35:00 +03:00 by kerem · 8 comments
Owner

Originally created by @freezy7 on GitHub (Mar 2, 2025).
Original GitHub issue: https://github.com/koel/koel/issues/1905

I initially installed Koel using Docker without any issues. However, being unfamiliar with it, I didn’t record the APP_KEY which was automatically generated during the initialization. This key was in the .env file, but I didn't save it at the time.

Later, I purchased Koel Plus and activated it. However, the collaboration feature isn’t working. I can invite friends, generate invitation links, and see them in my playlist, but they can't access my playlist.

I thought restarting might help, so I used the docker compose down command, which removed the container and reset the .env file. When I started the container again, the website displayed an error: “The MAC is invalid.” This error prevents me from logging into Koel, and I hope to get some help with this.

I think this issue is related to the fact that the data is bound to the APP_KEY. I lost the original APP_KEY, and I’m not sure if there’s any way to retrieve it.

Image Image
Originally created by @freezy7 on GitHub (Mar 2, 2025). Original GitHub issue: https://github.com/koel/koel/issues/1905 I initially installed Koel using Docker without any issues. However, being unfamiliar with it, I didn’t record the APP_KEY which was automatically generated during the initialization. This key was in the .env file, but I didn't save it at the time. Later, I purchased Koel Plus and activated it. However, the collaboration feature isn’t working. I can invite friends, generate invitation links, and see them in my playlist, but they can't access my playlist. I thought restarting might help, so I used the docker compose down command, which removed the container and reset the .env file. When I started the container again, the website displayed an error: “The MAC is invalid.” This error prevents me from logging into Koel, and I hope to get some help with this. I think this issue is related to the fact that the data is bound to the **APP_KEY**. I lost the original **APP_KEY**, and I’m not sure if there’s any way to retrieve it. <img width="1199" alt="Image" src="https://github.com/user-attachments/assets/d7859d6d-c1ad-4e4b-96ea-e1e050ea593d" /> <img width="1226" alt="Image" src="https://github.com/user-attachments/assets/e49df637-aba4-44c8-ac9b-a3bf03ca9d4f" />
kerem closed this issue 2026-02-26 02:35:00 +03:00
Author
Owner

@freezy7 commented on GitHub (Mar 2, 2025):

I have read issue #1781 .They are very similar, the only problem is that I no longer have the original APP_KEY

<!-- gh-comment-id:2692695673 --> @freezy7 commented on GitHub (Mar 2, 2025): I have read issue #1781 .They are very similar, the only problem is that I no longer have the original APP_KEY
Author
Owner

@phanan commented on GitHub (Mar 2, 2025):

If you've lost the app key I'm afraid there's no way to restore it. Since the license is encrypted with the app key, you basically lost the license, too—but I'm willing to restore it for you, of course. I'm more curious about the issue of not being able to share playlists.

<!-- gh-comment-id:2692719254 --> @phanan commented on GitHub (Mar 2, 2025): If you've lost the app key I'm afraid there's no way to restore it. Since the license is encrypted with the app key, you basically lost the license, too—but I'm willing to restore it for you, of course. I'm more curious about the issue of not being able to share playlists.
Author
Owner

@freezy7 commented on GitHub (Mar 2, 2025):

If you've lost the app key I'm afraid there's no way to restore it. Since the license is encrypted with the app key, you basically lost the license, too—but I'm willing to restore it for you, of course. I'm more curious about the issue of not being able to share playlists.

Alright, I'll have clearing the data and reinstalling it. please help me restore the license key, I will try the playlist share again.

<!-- gh-comment-id:2692736230 --> @freezy7 commented on GitHub (Mar 2, 2025): > If you've lost the app key I'm afraid there's no way to restore it. Since the license is encrypted with the app key, you basically lost the license, too—but I'm willing to restore it for you, of course. I'm more curious about the issue of not being able to share playlists. Alright, I'll have clearing the data and reinstalling it. please help me restore the license key, I will try the playlist share again.
Author
Owner

@phanan commented on GitHub (Mar 2, 2025):

Just deactivated your key — you can now use it again. You can also always
do it yourself via LemonSqueezy.

Am So., 2. März 2025 um 20:33 Uhr schrieb Holiday @.***

:

If you've lost the app key I'm afraid there's no way to restore it. Since
the license is encrypted with the app key, you basically lost the license,
too—but I'm willing to restore it for you, of course. I'm more curious
about the issue of not being able to share playlists.

Alright, I'll have clearing the data and reinstalling it. please help me
restore the license key, I will try the playlist share again.


Reply to this email directly, view it on GitHub
https://github.com/koel/koel/issues/1905#issuecomment-2692736230, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AB5O3UWJOJ2S66USYAWJ2UL2SMCB5AVCNFSM6AAAAABYFFMA5SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMOJSG4ZTMMRTGA
.
You are receiving this because you commented.Message ID:
@.***>
[image: freezy7]freezy7 left a comment (koel/koel#1905)
https://github.com/koel/koel/issues/1905#issuecomment-2692736230

If you've lost the app key I'm afraid there's no way to restore it. Since
the license is encrypted with the app key, you basically lost the license,
too—but I'm willing to restore it for you, of course. I'm more curious
about the issue of not being able to share playlists.

Alright, I'll have clearing the data and reinstalling it. please help me
restore the license key, I will try the playlist share again.


Reply to this email directly, view it on GitHub
https://github.com/koel/koel/issues/1905#issuecomment-2692736230, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AB5O3UWJOJ2S66USYAWJ2UL2SMCB5AVCNFSM6AAAAABYFFMA5SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMOJSG4ZTMMRTGA
.
You are receiving this because you commented.Message ID:
@.***>

<!-- gh-comment-id:2692759146 --> @phanan commented on GitHub (Mar 2, 2025): Just deactivated your key — you can now use it again. You can also always do it yourself via LemonSqueezy. Am So., 2. März 2025 um 20:33 Uhr schrieb Holiday ***@***.*** >: > If you've lost the app key I'm afraid there's no way to restore it. Since > the license is encrypted with the app key, you basically lost the license, > too—but I'm willing to restore it for you, of course. I'm more curious > about the issue of not being able to share playlists. > > Alright, I'll have clearing the data and reinstalling it. please help me > restore the license key, I will try the playlist share again. > > — > Reply to this email directly, view it on GitHub > <https://github.com/koel/koel/issues/1905#issuecomment-2692736230>, or > unsubscribe > <https://github.com/notifications/unsubscribe-auth/AB5O3UWJOJ2S66USYAWJ2UL2SMCB5AVCNFSM6AAAAABYFFMA5SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMOJSG4ZTMMRTGA> > . > You are receiving this because you commented.Message ID: > ***@***.***> > [image: freezy7]*freezy7* left a comment (koel/koel#1905) > <https://github.com/koel/koel/issues/1905#issuecomment-2692736230> > > If you've lost the app key I'm afraid there's no way to restore it. Since > the license is encrypted with the app key, you basically lost the license, > too—but I'm willing to restore it for you, of course. I'm more curious > about the issue of not being able to share playlists. > > Alright, I'll have clearing the data and reinstalling it. please help me > restore the license key, I will try the playlist share again. > > — > Reply to this email directly, view it on GitHub > <https://github.com/koel/koel/issues/1905#issuecomment-2692736230>, or > unsubscribe > <https://github.com/notifications/unsubscribe-auth/AB5O3UWJOJ2S66USYAWJ2UL2SMCB5AVCNFSM6AAAAABYFFMA5SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMOJSG4ZTMMRTGA> > . > You are receiving this because you commented.Message ID: > ***@***.***> >
Author
Owner

@freezy7 commented on GitHub (Mar 3, 2025):

Image

Image

this is the screenshot

<!-- gh-comment-id:2693630269 --> @freezy7 commented on GitHub (Mar 3, 2025): ![Image](https://github.com/user-attachments/assets/bf223265-2014-4d6a-8a7d-db2f93877cfc) ![Image](https://github.com/user-attachments/assets/86a02abb-9515-4b4f-9ccd-69b2fbd99b14) this is the screenshot
Author
Owner

@phanan commented on GitHub (Mar 3, 2025):

Got it, thanks! I’ll take a look.

On Mon, Mar 3, 2025 at 15:37 Holiday @.***> wrote:

2025-03-03.16.35.28.png (view on web)
https://github.com/user-attachments/assets/bf223265-2014-4d6a-8a7d-db2f93877cfc

2025-03-03.16.35.43.png (view on web)
https://github.com/user-attachments/assets/86a02abb-9515-4b4f-9ccd-69b2fbd99b14

this is the screenshot


Reply to this email directly, view it on GitHub
https://github.com/koel/koel/issues/1905#issuecomment-2693630269, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AB5O3UUSBM2QLQO6CC4KOJT2SQIFXAVCNFSM6AAAAABYFFMA5SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMOJTGYZTAMRWHE
.
You are receiving this because you commented.Message ID:
@.***>
[image: freezy7]freezy7 left a comment (koel/koel#1905)
https://github.com/koel/koel/issues/1905#issuecomment-2693630269

2025-03-03.16.35.28.png (view on web)
https://github.com/user-attachments/assets/bf223265-2014-4d6a-8a7d-db2f93877cfc

2025-03-03.16.35.43.png (view on web)
https://github.com/user-attachments/assets/86a02abb-9515-4b4f-9ccd-69b2fbd99b14

this is the screenshot


Reply to this email directly, view it on GitHub
https://github.com/koel/koel/issues/1905#issuecomment-2693630269, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AB5O3UUSBM2QLQO6CC4KOJT2SQIFXAVCNFSM6AAAAABYFFMA5SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMOJTGYZTAMRWHE
.
You are receiving this because you commented.Message ID:
@.***>

<!-- gh-comment-id:2693663786 --> @phanan commented on GitHub (Mar 3, 2025): Got it, thanks! I’ll take a look. On Mon, Mar 3, 2025 at 15:37 Holiday ***@***.***> wrote: > 2025-03-03.16.35.28.png (view on web) > <https://github.com/user-attachments/assets/bf223265-2014-4d6a-8a7d-db2f93877cfc> > > 2025-03-03.16.35.43.png (view on web) > <https://github.com/user-attachments/assets/86a02abb-9515-4b4f-9ccd-69b2fbd99b14> > > this is the screenshot > > — > Reply to this email directly, view it on GitHub > <https://github.com/koel/koel/issues/1905#issuecomment-2693630269>, or > unsubscribe > <https://github.com/notifications/unsubscribe-auth/AB5O3UUSBM2QLQO6CC4KOJT2SQIFXAVCNFSM6AAAAABYFFMA5SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMOJTGYZTAMRWHE> > . > You are receiving this because you commented.Message ID: > ***@***.***> > [image: freezy7]*freezy7* left a comment (koel/koel#1905) > <https://github.com/koel/koel/issues/1905#issuecomment-2693630269> > > 2025-03-03.16.35.28.png (view on web) > <https://github.com/user-attachments/assets/bf223265-2014-4d6a-8a7d-db2f93877cfc> > > 2025-03-03.16.35.43.png (view on web) > <https://github.com/user-attachments/assets/86a02abb-9515-4b4f-9ccd-69b2fbd99b14> > > this is the screenshot > > — > Reply to this email directly, view it on GitHub > <https://github.com/koel/koel/issues/1905#issuecomment-2693630269>, or > unsubscribe > <https://github.com/notifications/unsubscribe-auth/AB5O3UUSBM2QLQO6CC4KOJT2SQIFXAVCNFSM6AAAAABYFFMA5SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMOJTGYZTAMRWHE> > . > You are receiving this because you commented.Message ID: > ***@***.***> >
Author
Owner

@freezy7 commented on GitHub (Mar 3, 2025):

I found the problem. The playlist I shared didn’t have a folder. After creating a folder and then making a new playlist inside it, the sharing worked.

<!-- gh-comment-id:2693843366 --> @freezy7 commented on GitHub (Mar 3, 2025): I found the problem. The playlist I shared didn’t have a folder. After creating a folder and then making a new playlist inside it, the sharing worked.
Author
Owner

@phanan commented on GitHub (Mar 3, 2025):

Hmm, that sounds like a bug. You don't need a folder to share playlist.

Am Mo., 3. März 2025 um 17:01 Uhr schrieb Holiday @.***

:

I found the problem. The playlist I shared didn’t have a folder. After
creating a folder and then making a new playlist inside it, the sharing
worked.


Reply to this email directly, view it on GitHub
https://github.com/koel/koel/issues/1905#issuecomment-2693843366, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AB5O3URSRAGWRVD5JC5QRQD2SQSAHAVCNFSM6AAAAABYFFMA5SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMOJTHA2DGMZWGY
.
You are receiving this because you commented.Message ID:
@.***>
[image: freezy7]freezy7 left a comment (koel/koel#1905)
https://github.com/koel/koel/issues/1905#issuecomment-2693843366

I found the problem. The playlist I shared didn’t have a folder. After
creating a folder and then making a new playlist inside it, the sharing
worked.


Reply to this email directly, view it on GitHub
https://github.com/koel/koel/issues/1905#issuecomment-2693843366, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AB5O3URSRAGWRVD5JC5QRQD2SQSAHAVCNFSM6AAAAABYFFMA5SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMOJTHA2DGMZWGY
.
You are receiving this because you commented.Message ID:
@.***>

<!-- gh-comment-id:2693933419 --> @phanan commented on GitHub (Mar 3, 2025): Hmm, that sounds like a bug. You don't need a folder to share playlist. Am Mo., 3. März 2025 um 17:01 Uhr schrieb Holiday ***@***.*** >: > I found the problem. The playlist I shared didn’t have a folder. After > creating a folder and then making a new playlist inside it, the sharing > worked. > > — > Reply to this email directly, view it on GitHub > <https://github.com/koel/koel/issues/1905#issuecomment-2693843366>, or > unsubscribe > <https://github.com/notifications/unsubscribe-auth/AB5O3URSRAGWRVD5JC5QRQD2SQSAHAVCNFSM6AAAAABYFFMA5SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMOJTHA2DGMZWGY> > . > You are receiving this because you commented.Message ID: > ***@***.***> > [image: freezy7]*freezy7* left a comment (koel/koel#1905) > <https://github.com/koel/koel/issues/1905#issuecomment-2693843366> > > I found the problem. The playlist I shared didn’t have a folder. After > creating a folder and then making a new playlist inside it, the sharing > worked. > > — > Reply to this email directly, view it on GitHub > <https://github.com/koel/koel/issues/1905#issuecomment-2693843366>, or > unsubscribe > <https://github.com/notifications/unsubscribe-auth/AB5O3URSRAGWRVD5JC5QRQD2SQSAHAVCNFSM6AAAAABYFFMA5SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMOJTHA2DGMZWGY> > . > You are receiving this because you commented.Message ID: > ***@***.***> >
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/koel-koel#1030
No description provided.