Hi everyone, I have cretaed one webservice using Genie. Now I am trying to deploy the same on linux server, its not working good. 
I have opened the required port on linux firewall( 19020 is what I am using). And I am trying to pass public IP address . 
When I ran up(,host="my-public-ip",async=false). It is throwing below error.
ā Info:
ā Web Server starting at http://22.14.3000.500:19020 - press Ctrl/Cmd+C to stop the server.
ERROR: cannot bind to port; may already be in use or access denied
Stacktrace:
 [1] error(s::String)
   @ Base ./error.jl:33
 [2] #listen#10
   @ /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Sockets/src/Sockets.jl:624 [inlined]
 [3] listen
   @ /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Sockets/src/Sockets.jl:623 [inlined]
 [4] listen(f::Genie.Server.var"#7#14"{Int64}, host::Sockets.IPv4, port::Int64; sslconfig::Nothing, tcpisvalid::Function, server::Nothing, reuseaddr::Bool, max_connections::Int64, connection_count::Base.RefValue{Int64}, rate_limit::Nothing, reuse_limit::Int64, readtimeout::Int64, verbose::Bool, access_log::Nothing, on_shutdown::Nothing)
   @ HTTP.Servers ~/.julia/packages/HTTP/aTjcj/src/Servers.jl:266
 5()
   @ Genie.Server ~/.julia/packages/Genie/E8mZc/src/Server.jl:110
 [6] up(port::Int64, host::String; ws_port::Int64, async::Bool, verbose::Bool, ratelimit::Nothing, server::Nothing, wsserver::Nothing, open_browser::Bool, reuseaddr::Bool, http_kwargs::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
   @ Genie.Server ~/.julia/packages/Genie/E8mZc/src/Server.jl:134
 [7] #up#17
   @ ~/.julia/packages/Genie/E8mZc/src/Server.jl:154 [inlined]
 [8] top-level scope
I ahve tried disabling firewall also but its not working. I have tried running Genie server directly and through docker deployment also , in both casesd its throwing same error. Tried on RHEL 8.2 and Centos 8.0 server.
 
Oldest comments (2)
Better to ask questions on discourse:
discourse.julialang.org/
I suggest to post your question either on the Julia discourse or the discord channel of the Genie framework.
Julia Forem is mainly for blogging.
Best regards