Fl4m3Ph03n1x
Background
I have created a project using mix phx.new my_app --no-ecto and everything looked fine. However I am not able to run the created project.
Error
When I execute mix phx.server (after running mix deps.get) I get the following error:
===> Compiling ranch
===> Command ' OTP' not found in namespace bare
** (Mix) Could not compile dependency :ranch, "/home/user/.asdf/installs/elixir/1.7.3-otp-21/.mix/rebar3 bare compile --paths "/home/user/Workspace/exercises/islands_interface/_build/dev/lib/*/ebin"" command failed. You can recompile this dependency with "mix deps.compile ranch", update it with "mix deps.update ranch" or clean it with "mix deps.clean ranch"
OS and Language Info
Distributor ID: Ubuntu
Description: Ubuntu 19.04
Release: 19.04
Codename: disco
elixir 1.7.3-otp-21
erlang 21.1
Actions taken
To discard the possibility of this being a temporary issue I also ran mix local.rebar and then rm -rf _build/ but to no avail.
I have also made a search online and found this rebar issue, but I am not sure if and how this correlates to the problem I have at hand: github.com/elixir-lang/elixir/issues/4970
How can I fix this?
Trending in Questions
I having some trouble figuring out if I have set myself too strict of standards for my production server. Currently I can handle 75% of r...
New
Documentation
While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
Hello,
I’m trying to build a basic Phoenix web-app, and I’d like to use Tailwind.
However, when I launch mix phx.server, I get an error...
New
Hi everyone,
I am toying with the idea of building a “match maker” for giving personal help to people that wants to start coding.
I sta...
New
So my question is quite simple and i have found no conclusive answer on forum, google or AI.
Should we use :erlang.float for Integer to ...
New
I recently noticed that Elixir’s Logger defaults its primary log level to :debug when no :logger, :level application configuration is pre...
New
So i have been using ash framework for a while and i love it. However currently the issue im having with ash framework is the error handl...
New
Other Trending Topics
Edit: 2026 May 15 - This post is archived.
Mob is alive!!
Main docs: mob v0.7.11 — Documentation
A bit of explanation for the slightly c...
New
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Hobbes is a low-level distributed database for the Elixir programming language.
Hobbes provides a simple, safe, and scalable storage lay...
New
Hi everyone!
The first release candidate for the Expert language server project is now available!
We’ve published a press release detai...
New
A little off-topic, but I feel like people here have a good head on their shoulders.
I used to be quite good at making software. Was luc...
New
Latest Phoenix Threads
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ai
- #ecto-query
- #elixirconf-us
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #elixirconf-eu
- #api
- #forms
- #metaprogramming
- #hex











Showing Posts 1 to 10- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
peerreynders
Stack Overflow discussion
FYI: just tried this and ranch compiles without error:
To become functional the above is still missing:
But at least it doesn’t seem to be some Ubuntu 19.04 weirdness.
I do find the leading space in Command ’ OTP’ not found a bit strange but I have no idea where that comes from.
tristan
Yea.. it looks like rebar3 is saying it failed to run the command
rebar3 bare OTP. No idea where that would be coming from.Fl4m3Ph03n1x
It fails when running the command
mix archive.install hex phx_new 1.4.6.I am out of ideas by now …
peerreynders
There are the usual suspects:
I presume this trouble only started once you tried to do anything with Phoenix?
Before that you had been using Elixir/Mix on this installation for a while?
7stud
How did you know to install all that stuff?
peerreynders
Various sources. e.g.:
I should have trimmed the GUI libs and included
apt-utils,localesandinotify-tools.Basically experiment and adjust when something is missing …
Fl4m3Ph03n1x
The issues started once I started trying to use Phoenix via the
mix phx.servercommand.This is a fresh project created with
mix phx.new my_app_name --no-ecto. Runningmix deps.getand any other mix command works without issue.I have also run the commands you specified, but the issue remains the same.
outlog
have you tried
mix deps.clean --alland thenmix deps.get?Fl4m3Ph03n1x
Yes, the error remains.
Fl4m3Ph03n1x
I just found out what the error was.
Upon reviewing this comment it got me thinking …
This is the absolute path of the project:
/home/user/Workspace/Functional Web Development with Elixir, OTP, and Phoenix/islands_interfaceTurns out,
phx.servererrors out because it is inside the folderFunctional Web Development with Elixir, OTP, and Phoenix/. Turns out that space in ’ OTP’ is from the folder’s name.To prove my theory I created a project called
testunder/home/user/Workspace/. Everything worked perfectly.This proves that the issue here is the path, more specifically, the folder’s name. The conclusion I draw from here is that you can’t have a folder whose name has spaces and with the word “OTP” in it, or else rebar (and for some reason, ranch) won’t work.
Is this a bug? Should I report this behavior somewhere?