Giter Club home page Giter Club logo

gigalixir-getting-started's People

Contributors

gigatim avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gigalixir-getting-started's Issues

Issue when getting started

Hi, this is probably the wrong place to put this, but I didn't know where else to go. I'm trying to deploy a very simple elixir app and having some trouble. When I push, I get this error:

remote: -----> Fetching Elixir v1.10.4 for OTP 22 from https://repo.hex.pm/builds/elixir/v1.10.4-otp-22.zip
remote: -----> Installing Elixir v1.10.4 (changed)
remote: [/tmp/cache/elixir-v1.10.4.zip]
remote:   End-of-central-directory signature not found.  Either this file is not
remote:   a zipfile, or it constitutes one disk of a multi-part archive.  In the
remote:   latter case the central directory and zipfile comment will be found on
remote:   the last disk(s) of this archive.
remote: unzip:  cannot find zipfile directory in one of /tmp/cache/elixir-v1.10.4.zip or
remote:         /tmp/cache/elixir-v1.10.4.zip.zip, and cannot find /tmp/cache/elixir-v1.10.4.zip.ZIP, period.
remote: chmod: cannot access '/tmp/build/.platform_tools/elixir/bin/*': No such file or directory
remote: -----> Installing Hex
remote: /tmp/buildpackTdmxb/lib/elixir_funcs.sh: line 99: mix: command not found
remote: -----> Installing rebar
remote: /tmp/buildpackTdmxb/lib/elixir_funcs.sh: line 105: mix: command not found
remote: -----> Fetching app dependencies with mix
remote: /tmp/buildpackTdmxb/lib/app_funcs.sh: line 81: mix: command not found
remote: Deploy aborted
To https://git.gigalixir.com/game-assistant.git
 ! [remote rejected] 955a8efe651e131069561d7e4f9b53e31bd2028d -> master (pre-receive hook declined)

My .buildpacks reads:

https://github.com/HashNuke/heroku-buildpack-elixir
https://github.com/gjaldon/heroku-buildpack-phoenix-static
https://github.com/gigalixir/gigalixir-buildpack-distillery.git

and my elixir_buildpack.config reads:

elixir_version=1.10.4
erlang_version=22.3

Hopefully I'm just making a silly mistake, any idea what's going wrong?

remote: ** (File.Error) could not read file "/tmp/build/config/prod.secret.exs": no such file or directory

Guys!
I using Elixir releases and when I hit: git push gigalixir
I got:

-----> Fetching app dependencies with mix
remote: ** (File.Error) could not read file "/tmp/build/config/prod.secret.exs": no such file or directory
remote:     (elixir 1.11.3) lib/file.ex:355: File.read!/1
remote:     (elixir 1.11.3) lib/config.ex:240: Config.__import__!/1
remote:     (mix 1.11.3) lib/mix/config.ex:161: anonymous fn/2 in Mix.Config.__import__!/2
remote:     (elixir 1.11.3) lib/enum.ex:2193: Enum."-reduce/3-lists^foldl/2-0-"/3
remote:     (mix 1.11.3) lib/mix/config.ex:160: Mix.Config.__import__!/2
remote:     (stdlib 3.14) erl_eval.erl:680: :erl_eval.do_apply/6
remote: 2022/08/31 03:29:55 exit status 1
remote: Deploy aborted

Am I missing something?

postgrex error

When running locally, I receive the following error:

$ mix deps.get
....
..
.
==> postgrex
Compiling 61 files (.ex)

== Compilation error in file lib/postgrex/extensions/timestamptz.ex ==
** (ArgumentError) invalid Unix time 9224318016000
    (elixir) lib/calendar/datetime.ex:136: DateTime.from_unix!/3
    lib/postgrex/extensions/timestamptz.ex:13: (module)
    (stdlib) erl_eval.erl:670: :erl_eval.do_apply/6
could not compile dependency :postgrex, "mix compile" failed. You can recompile this dependency with "mix deps.compile postgrex", update it with "mix deps.update postgrex" or clean it with "mix deps.clean postgrex"

It looks like this issue solves the issue. But I was wondering if it's safe to upgrade the starter project.

Better default VM configuration

My understanding is gigalixir runs on Kubernetes, running user's Elixir releases as pods.

If that is the case and this, https://github.com/gigalixir/gigalixir-getting-started/blob/js/distillery-2.0/rel/vm.args, is the suggested vm.args there are a number of changes you should make. I only tried a find on the readthedocs and couldn't find any reference to this stuff, sorry if I simply missed it.

Until OTP 23 Erlang is not cgroup aware and will not take into consideration the cgroup limits placed on it when starting up the VM.

The two most important arguments are one for how quickly a scheduler goes to sleep and how many active schedulers are run.

Basically add theses to the vm.args:

+sbwt none

+S ${SCHEDULERS}

Why to set sbwt to none I have in here https://adoptingerlang.org/docs/production/kubernetes/#container-resources

Where SCHEDULERS is an environment variable set for the container in the pod.

I assume you generate a Pod spec for the projects so could just add to the Pod spec:

- name: SCHEDULERS
  valueFrom:
    resourceFieldRef:
      containerName: service-discovery
      resource: limits.cpu
      divisor: 1

error during gigalixir signup or login

Hi,
perhaps is a python error in my configuration but I can't find nothing on internet to solve, so I wish that someone from gigalixir can help me.
The scene is this:

`➜ ~ sudo pip3 install gigalixir --ignore-installed six
The directory '/Users/nunziofiore/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/Users/nunziofiore/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

Collecting gigalixir
Collecting six
Downloading six-1.11.0-py2.py3-none-any.whl
Collecting requests~=2.13.0 (from gigalixir)
Downloading requests-2.13.0-py2.py3-none-any.whl (584kB)
100% |████████████████████████████████| 593kB 2.2MB/s

Collecting click~=6.7 (from gigalixir)
Downloading click-6.7-py2.py3-none-any.whl (71kB)
100% |████████████████████████████████| 71kB 1.0MB/s

Collecting rollbar~=0.13.11 (from gigalixir)
Collecting stripe~=1.51.0 (from gigalixir)
Downloading stripe-1.51.0-py3-none-any.whl (203kB)
100% |████████████████████████████████| 204kB 862kB/s

Installing collected packages: requests, click, six, rollbar, stripe, gigalixir

Successfully installed click-6.7 gigalixir-0.19.0 requests-2.13.0 rollbar-0.13.17 six-1.11.0 stripe-1.51.0

➜ ~ gigalixir signup

Traceback (most recent call last):
File "/usr/local/bin/gigalixir", line 11, in
sys.exit(cli())
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 722, in call
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1063, in invoke
Command.invoke(self, ctx)
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/gigalixir/init.py", line 76, in cli
raise Exception("Unknown platform: %s" % PLATFORM)
Exception: Unknown platform: b'darwin'`

Can you help me?
Nunzio

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.