Could not bind socket: Address already in use The 2019 Stack Overflow Developer Survey Results Are In Unicorn Meta Zoo #1: Why another podcast? Announcing the arrival of Valued Associate #679: Cesar Manara 2019 Community Moderator Election ResultsMany domains using a single IP address with BIND 9.7Nginx with dnsmasq 'could not be resolved (5: Operation refused)'Could not start docker with existing LVM thin pool optiondhclient error “Bind socket to interface: No such device”Docker could not find an available, non-overlapping IPv4 address poolHow to get remote host DNS address from a super-slim host (docker) without ping or bind-utils?IPv6 socket creation failed: Address family not supported by protocolWhy is it not possible to use a static IP address within the docker deafult bridge?Debian 9 - IO address already in use? unable to bootCannot start vncserver: bind: Cannot assign requested address (99)

Didn't get enough time to take a Coding Test - what to do now?

What force causes entropy to increase?

A phrase ”follow into" in a context

Why don't hard Brexiteers insist on a hard border to prevent illegal immigration after Brexit?

For what reasons would an animal species NOT cross a *horizontal* land bridge?

"... to apply for a visa" or "... and applied for a visa"?

Word to describe a time interval

Why can't wing-mounted spoilers be used to steepen approaches?

Working through the single responsibility principle (SRP) in Python when calls are expensive

60's-70's movie: home appliances revolting against the owners

Example of compact Riemannian manifold with only one geodesic.

What can I do if neighbor is blocking my solar panels intentionally?

Student Loan from years ago pops up and is taking my salary

Can we generate random numbers using irrational numbers like π and e?

Huge performance difference of the command find with and without using %M option to show permissions

How do I design a circuit to convert a 100 mV and 50 Hz sine wave to a square wave?

Why are PDP-7-style microprogrammed instructions out of vogue?

Drawing vertical/oblique lines in Metrical tree (tikz-qtree, tipa)

Do I have Disadvantage attacking with an off-hand weapon?

How to determine omitted units in a publication

Is every episode of "Where are my Pants?" identical?

Simulating Exploding Dice

How to politely respond to generic emails requesting a PhD/job in my lab? Without wasting too much time

Is it ethical to upload a automatically generated paper to a non peer-reviewed site as part of a larger research?



Could not bind socket: Address already in use



The 2019 Stack Overflow Developer Survey Results Are In
Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar Manara
2019 Community Moderator Election ResultsMany domains using a single IP address with BIND 9.7Nginx with dnsmasq 'could not be resolved (5: Operation refused)'Could not start docker with existing LVM thin pool optiondhclient error “Bind socket to interface: No such device”Docker could not find an available, non-overlapping IPv4 address poolHow to get remote host DNS address from a super-slim host (docker) without ping or bind-utils?IPv6 socket creation failed: Address family not supported by protocolWhy is it not possible to use a static IP address within the docker deafult bridge?Debian 9 - IO address already in use? unable to bootCannot start vncserver: bind: Cannot assign requested address (99)



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I'm using port 8082 in dockerfile: ENV FILESERVER_PORT 8082.



When starting seafile with:
sudo bash /opt/seafile/seafile-server-6.3.4/seafile.sh start



I get the error http-server.c(2197): Could not bind socket: Address already in use



I tried to delete ccnet.sock and starting docker again. That didn't help.



Netstat is showing:



tcp6 0 0 :::8082 :::* LISTEN 4993/docker-proxy 
tcp6 0 0 :::8090 :::* LISTEN 5321/docker-proxy
tcp6 0 0 :::8000 :::* LISTEN 5007/docker-proxy
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 899/mysqld


sudo docker ps:



#####:~$ sudo docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
############ mdh_seafile "/bin/sh -c 'bash /s…" 23 minutes ago Up 3 minutes 0.0.0.0:8000->8000/tcp, 0.0.0.0:8082->8082/tcp mdh_seafile_1_f2341d904d27
############ mdh_owncloud "/bin/sh -c 'bash /s…" 22 hours ago Up 3 minutes 0.0.0.0:8090->80/tcp mdh_owncloud_1_260c3a56f2a5
############ mysql "docker-entrypoint.s…" 26 hours ago Up 3 minutes 3306/tcp, 33060/tcp mdh_db_1_46bebe733124


I tried changing the port in docker-compose from:



ports: 
- "8000:8000"
- "8082:8082


to



ports: 
- "8001:8001"
- "8083:8083


But it just told me the same.



Also netstat shows just one output:



sudo netstat -pna | grep 8082
tcp6 0 0 :::8082 :::* LISTEN 19685/docker-proxy









share|improve this question









New contributor




Ora nge is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Either change the port seafile is going to use, or change the port docker-proxy is using. You can't have 2 applications binding to the same port.

    – Panki
    yesterday











  • @Panki How do I find free ports I can use?

    – Ora nge
    yesterday











  • Run netstat -lt to see used tcp ports. Every port that is not used is free.

    – RoVo
    yesterday












  • @RoVo Weird thing is when I change the ports in docker compose to ` ports: - "8001:8001" - "8083:8083" ` I still get the error warning: seafile-controller not running. Have you run "./seafile.sh start" ? and Could not bind socket: Address already in use

    – Ora nge
    yesterday


















0















I'm using port 8082 in dockerfile: ENV FILESERVER_PORT 8082.



When starting seafile with:
sudo bash /opt/seafile/seafile-server-6.3.4/seafile.sh start



I get the error http-server.c(2197): Could not bind socket: Address already in use



I tried to delete ccnet.sock and starting docker again. That didn't help.



Netstat is showing:



tcp6 0 0 :::8082 :::* LISTEN 4993/docker-proxy 
tcp6 0 0 :::8090 :::* LISTEN 5321/docker-proxy
tcp6 0 0 :::8000 :::* LISTEN 5007/docker-proxy
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 899/mysqld


sudo docker ps:



#####:~$ sudo docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
############ mdh_seafile "/bin/sh -c 'bash /s…" 23 minutes ago Up 3 minutes 0.0.0.0:8000->8000/tcp, 0.0.0.0:8082->8082/tcp mdh_seafile_1_f2341d904d27
############ mdh_owncloud "/bin/sh -c 'bash /s…" 22 hours ago Up 3 minutes 0.0.0.0:8090->80/tcp mdh_owncloud_1_260c3a56f2a5
############ mysql "docker-entrypoint.s…" 26 hours ago Up 3 minutes 3306/tcp, 33060/tcp mdh_db_1_46bebe733124


I tried changing the port in docker-compose from:



ports: 
- "8000:8000"
- "8082:8082


to



ports: 
- "8001:8001"
- "8083:8083


But it just told me the same.



Also netstat shows just one output:



sudo netstat -pna | grep 8082
tcp6 0 0 :::8082 :::* LISTEN 19685/docker-proxy









share|improve this question









New contributor




Ora nge is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Either change the port seafile is going to use, or change the port docker-proxy is using. You can't have 2 applications binding to the same port.

    – Panki
    yesterday











  • @Panki How do I find free ports I can use?

    – Ora nge
    yesterday











  • Run netstat -lt to see used tcp ports. Every port that is not used is free.

    – RoVo
    yesterday












  • @RoVo Weird thing is when I change the ports in docker compose to ` ports: - "8001:8001" - "8083:8083" ` I still get the error warning: seafile-controller not running. Have you run "./seafile.sh start" ? and Could not bind socket: Address already in use

    – Ora nge
    yesterday














0












0








0








I'm using port 8082 in dockerfile: ENV FILESERVER_PORT 8082.



When starting seafile with:
sudo bash /opt/seafile/seafile-server-6.3.4/seafile.sh start



I get the error http-server.c(2197): Could not bind socket: Address already in use



I tried to delete ccnet.sock and starting docker again. That didn't help.



Netstat is showing:



tcp6 0 0 :::8082 :::* LISTEN 4993/docker-proxy 
tcp6 0 0 :::8090 :::* LISTEN 5321/docker-proxy
tcp6 0 0 :::8000 :::* LISTEN 5007/docker-proxy
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 899/mysqld


sudo docker ps:



#####:~$ sudo docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
############ mdh_seafile "/bin/sh -c 'bash /s…" 23 minutes ago Up 3 minutes 0.0.0.0:8000->8000/tcp, 0.0.0.0:8082->8082/tcp mdh_seafile_1_f2341d904d27
############ mdh_owncloud "/bin/sh -c 'bash /s…" 22 hours ago Up 3 minutes 0.0.0.0:8090->80/tcp mdh_owncloud_1_260c3a56f2a5
############ mysql "docker-entrypoint.s…" 26 hours ago Up 3 minutes 3306/tcp, 33060/tcp mdh_db_1_46bebe733124


I tried changing the port in docker-compose from:



ports: 
- "8000:8000"
- "8082:8082


to



ports: 
- "8001:8001"
- "8083:8083


But it just told me the same.



Also netstat shows just one output:



sudo netstat -pna | grep 8082
tcp6 0 0 :::8082 :::* LISTEN 19685/docker-proxy









share|improve this question









New contributor




Ora nge is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












I'm using port 8082 in dockerfile: ENV FILESERVER_PORT 8082.



When starting seafile with:
sudo bash /opt/seafile/seafile-server-6.3.4/seafile.sh start



I get the error http-server.c(2197): Could not bind socket: Address already in use



I tried to delete ccnet.sock and starting docker again. That didn't help.



Netstat is showing:



tcp6 0 0 :::8082 :::* LISTEN 4993/docker-proxy 
tcp6 0 0 :::8090 :::* LISTEN 5321/docker-proxy
tcp6 0 0 :::8000 :::* LISTEN 5007/docker-proxy
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 899/mysqld


sudo docker ps:



#####:~$ sudo docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
############ mdh_seafile "/bin/sh -c 'bash /s…" 23 minutes ago Up 3 minutes 0.0.0.0:8000->8000/tcp, 0.0.0.0:8082->8082/tcp mdh_seafile_1_f2341d904d27
############ mdh_owncloud "/bin/sh -c 'bash /s…" 22 hours ago Up 3 minutes 0.0.0.0:8090->80/tcp mdh_owncloud_1_260c3a56f2a5
############ mysql "docker-entrypoint.s…" 26 hours ago Up 3 minutes 3306/tcp, 33060/tcp mdh_db_1_46bebe733124


I tried changing the port in docker-compose from:



ports: 
- "8000:8000"
- "8082:8082


to



ports: 
- "8001:8001"
- "8083:8083


But it just told me the same.



Also netstat shows just one output:



sudo netstat -pna | grep 8082
tcp6 0 0 :::8082 :::* LISTEN 19685/docker-proxy






debian docker






share|improve this question









New contributor




Ora nge is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Ora nge is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 19 hours ago







Ora nge













New contributor




Ora nge is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked yesterday









Ora ngeOra nge

235




235




New contributor




Ora nge is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Ora nge is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Ora nge is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • Either change the port seafile is going to use, or change the port docker-proxy is using. You can't have 2 applications binding to the same port.

    – Panki
    yesterday











  • @Panki How do I find free ports I can use?

    – Ora nge
    yesterday











  • Run netstat -lt to see used tcp ports. Every port that is not used is free.

    – RoVo
    yesterday












  • @RoVo Weird thing is when I change the ports in docker compose to ` ports: - "8001:8001" - "8083:8083" ` I still get the error warning: seafile-controller not running. Have you run "./seafile.sh start" ? and Could not bind socket: Address already in use

    – Ora nge
    yesterday


















  • Either change the port seafile is going to use, or change the port docker-proxy is using. You can't have 2 applications binding to the same port.

    – Panki
    yesterday











  • @Panki How do I find free ports I can use?

    – Ora nge
    yesterday











  • Run netstat -lt to see used tcp ports. Every port that is not used is free.

    – RoVo
    yesterday












  • @RoVo Weird thing is when I change the ports in docker compose to ` ports: - "8001:8001" - "8083:8083" ` I still get the error warning: seafile-controller not running. Have you run "./seafile.sh start" ? and Could not bind socket: Address already in use

    – Ora nge
    yesterday

















Either change the port seafile is going to use, or change the port docker-proxy is using. You can't have 2 applications binding to the same port.

– Panki
yesterday





Either change the port seafile is going to use, or change the port docker-proxy is using. You can't have 2 applications binding to the same port.

– Panki
yesterday













@Panki How do I find free ports I can use?

– Ora nge
yesterday





@Panki How do I find free ports I can use?

– Ora nge
yesterday













Run netstat -lt to see used tcp ports. Every port that is not used is free.

– RoVo
yesterday






Run netstat -lt to see used tcp ports. Every port that is not used is free.

– RoVo
yesterday














@RoVo Weird thing is when I change the ports in docker compose to ` ports: - "8001:8001" - "8083:8083" ` I still get the error warning: seafile-controller not running. Have you run "./seafile.sh start" ? and Could not bind socket: Address already in use

– Ora nge
yesterday






@RoVo Weird thing is when I change the ports in docker compose to ` ports: - "8001:8001" - "8083:8083" ` I still get the error warning: seafile-controller not running. Have you run "./seafile.sh start" ? and Could not bind socket: Address already in use

– Ora nge
yesterday











0






active

oldest

votes












Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);






Ora nge is a new contributor. Be nice, and check out our Code of Conduct.









draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f511898%2fcould-not-bind-socket-address-already-in-use%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes








Ora nge is a new contributor. Be nice, and check out our Code of Conduct.









draft saved

draft discarded


















Ora nge is a new contributor. Be nice, and check out our Code of Conduct.












Ora nge is a new contributor. Be nice, and check out our Code of Conduct.











Ora nge is a new contributor. Be nice, and check out our Code of Conduct.














Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f511898%2fcould-not-bind-socket-address-already-in-use%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







-debian, docker

Popular posts from this blog

Frič See also Navigation menuinternal link

Identify plant with long narrow paired leaves and reddish stems Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?What is this plant with long sharp leaves? Is it a weed?What is this 3ft high, stalky plant, with mid sized narrow leaves?What is this young shrub with opposite ovate, crenate leaves and reddish stems?What is this plant with large broad serrated leaves?Identify this upright branching weed with long leaves and reddish stemsPlease help me identify this bulbous plant with long, broad leaves and white flowersWhat is this small annual with narrow gray/green leaves and rust colored daisy-type flowers?What is this chilli plant?Does anyone know what type of chilli plant this is?Help identify this plant

fontconfig warning: “/etc/fonts/fonts.conf”, line 100: unknown “element blank” The 2019 Stack Overflow Developer Survey Results Are In“tar: unrecognized option --warning” during 'apt-get install'How to fix Fontconfig errorHow do I figure out which font file is chosen for a system generic font alias?Why are some apt-get-installed fonts being ignored by fc-list, xfontsel, etc?Reload settings in /etc/fonts/conf.dTaking 30 seconds longer to boot after upgrade from jessie to stretchHow to match multiple font names with a single <match> element?Adding a custom font to fontconfigRemoving fonts from fontconfig <match> resultsBroken fonts after upgrading Firefox ESR to latest Firefox