[GH-ISSUE #669] Cannot install: Error: Address already in use (os error 48) #273

Closed
opened 2026-02-28 14:48:10 +03:00 by kerem · 5 comments
Owner

Originally created by @CaspianA1 on GitHub (Nov 30, 2020).
Original GitHub issue: https://github.com/Rigellute/spotify-tui/issues/669

I get this error when trying to configure it via spt:

$ spt
Error: Address already in use (os error 48)
Starting webserver failed. Continuing with manual authentication

From there it tries to open a very large Spotify link: Opened https://accounts.spotify.com/authorize ...

This page hangs and does nothing. For each time I uninstall spotify-tui this link works once (by asking me to confirm a lot of permissions regarding what spt can do). After I click accept then that page hangs as well.

This is so frustrating - Does anyone know what I am doing wrong?

Originally created by @CaspianA1 on GitHub (Nov 30, 2020). Original GitHub issue: https://github.com/Rigellute/spotify-tui/issues/669 I get this error when trying to configure it via `spt`: ``` $ spt Error: Address already in use (os error 48) Starting webserver failed. Continuing with manual authentication ``` From there it tries to open a very large Spotify link: `Opened https://accounts.spotify.com/authorize` ... This page hangs and does nothing. For each time I uninstall `spotify-tui` this link works once (by asking me to confirm a lot of permissions regarding what `spt` can do). After I click `accept` then that page hangs as well. This is so frustrating - Does anyone know what I am doing wrong?
kerem closed this issue 2026-02-28 14:48:10 +03:00
Author
Owner

@Seltonu commented on GitHub (Dec 24, 2020):

The exact same thing happens to me, except the error says "os error 98" instead of 48. But huge link, page hang, all of it.

I've put in my client ID, client secret, and edited the spotify dashboard app to use "http://localhost:8888/callback" as a redirect URI.

<!-- gh-comment-id:750946720 --> @Seltonu commented on GitHub (Dec 24, 2020): The exact same thing happens to me, except the error says "os error 98" instead of 48. But huge link, page hang, all of it. I've put in my client ID, client secret, and edited the spotify dashboard app to use "http://localhost:8888/callback" as a redirect URI.
Author
Owner

@OrangeFran commented on GitHub (Dec 29, 2020):

You can try to change your port, I don't know if it helps though. Normally these address already in use messages appear if a process is already using the port, in this case 8888. To investigate, maybe have a look at netstat -l to see all listening processes or even lsof -i :8888 to look at the port and see which processes are using it. I hope this helps. These commands definetely work on macOS and probably on linux too.

If you want to try changing the port, change the callback url to something like: http://localhost:5555/callback and enter 5555 when spt is asking you for the port.

<!-- gh-comment-id:752055448 --> @OrangeFran commented on GitHub (Dec 29, 2020): You can try to change your port, I don't know if it helps though. Normally these `address already in use` messages appear if a process is already using the port, in this case `8888`. To investigate, maybe have a look at `netstat -l` to see all listening processes or even `lsof -i :8888` to look at the port and see which processes are using it. I hope this helps. These commands definetely work on macOS and probably on linux too. If you want to try changing the port, change the callback url to something like: `http://localhost:5555/callback` and enter `5555` when spt is asking you for the port.
Author
Owner

@CaspianA1 commented on GitHub (Dec 29, 2020):

I'll try that out.

<!-- gh-comment-id:752238403 --> @CaspianA1 commented on GitHub (Dec 29, 2020): I'll try that out.
Author
Owner

@CaspianA1 commented on GitHub (Dec 29, 2020):

Thank you, changing the port resolved my problem.

<!-- gh-comment-id:752239929 --> @CaspianA1 commented on GitHub (Dec 29, 2020): Thank you, changing the port resolved my problem.
Author
Owner

@Seltonu commented on GitHub (Dec 29, 2020):

Just commenting to also add it works for me too now, I was going to test a different port as you mentioned but before doing that I tried "lsof -i :8888" and saw nothing was using the port so I went with the default 8888 and it worked. Must've been as you say, some program was using the port and restarting my PC must've cleared it at some point. Thank you!

<!-- gh-comment-id:752242157 --> @Seltonu commented on GitHub (Dec 29, 2020): Just commenting to also add it works for me too now, I was going to test a different port as you mentioned but before doing that I tried "lsof -i :8888" and saw nothing was using the port so I went with the default 8888 and it worked. Must've been as you say, some program was using the port and restarting my PC must've cleared it at some point. Thank you!
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/spotify-tui#273
No description provided.