So, I thought I'd create a bonafide release to run my next application in. Unfortunately, there seems to be a deal breaker.
First I tried making a project from scratch using this guide:
http://alancastro.org/2010/05/01/erlang-application-management-with-rebar.html
That failed with an obscure error, so just to make sure, I tried to run a project I know is good, etorrent.
When I tried to run etorrent's release, I got the same error:
[me#my-ip etorrent]# rel/etorrent/bin/etorrent console
Exec: /root/etorrent/rel/etorrent/erts-5.8.4/bin/erlexec -boot /root/etorrent/rel/etorrent/releases/1.2.1/etorrent -embedded -config /root/etorrent/rel/etorrent/etc/app.config -args_file /root/etorrent/rel/etorrent/etc/vm.args -- console
Root: /root/etorrent/rel/etorrent
pthread/ethr_event.c:98: Fatal error in wait__(): Function not implemented (38)
Aborted
I searched for that error, and the serps are filled with references to RabbitMQ on CentOS having the same problem. Obviously, it's more general than a RabbitMQ problem specifically. Based on this thread:
RabbitMQ install issue on Centos 5.5
...and my own experience, it seems like running releases on 14 series erlang installations coupled with series 5 CentOS doesn't work. I installed the latest erlang up on the site last night, by the way, so that's what I'm using. I didn't pass any flags to 'configure', just used the stock options.
Does anyone have any idea if there's a compile option for erlang that might fix this? Or any other advice? Is anyone else successfully using rebar created releases for applications in this environment?
Seems to be a problem that needed to be solved on the CentOS side if you look at this comment to this RabbitMQ install issue on Centos 5.5 answer
Compilation of Erlang R14B03 (erts-5.8.4) works on CentOS 5.6 (Final)
VirtualBox VM
So it looks to me that you need to upgrade your CentOS to 5.6
Related
I'm trying to setup a development environment that uses docker but the passenger docker image gives me this error over and over again.
[1] development-passenger-1 | 2022/04/28 10:17:53 [error] 148#148: failed to initialize Lua VM in /etc/nginx/nginx.conf:66
[1] development-passenger-1 | 2022/04/28 10:17:56 [error] 159#159: failed to initialize Lua VM in /etc/nginx/nginx.conf:66
Using an M1 Mac and I'm new to this whole Mac thing so not sure what's wrong.
Our setup has worked without any issues on linux, windows and older macs. Although I'm happy to change my setup from the Master branch just to get this working but ideally it'll be something that works on all platforms.
Docker desktop gives me a !amd64 warning for the passenger container.
I've installed OpenResty and Rosetta, changing platforms for passenger, and basically everything else I could find. Best I could do was get rid of the !amd64 warning but not the Lua VM error.
I can attach more details like parts of our docker-compose or passenger config if need be, but I don't think those will be too helpful at this stage.
I don't know if this exactly helps but you could try to build your docker image with platform: "linux/amd64"
I read something about this here:
https://erica.works/docker-on-mac-m1/
How to make docker-compose work on M1 chip?
i am installing the influxdb_2.0.9 on my ubuntu, i followed the instructions here:
https://docs.influxdata.com/influxdb/v2.0/install/?t=Linux
I download it, setup it, i start the influxd daemon, i can connect via browser on localhost:8086, i think i can work with it, its functioning, i am gonna use the python API anyway, but this really drives me crazy...
I can't get to CLI. When i copy it to /usr/local/bin, or anywhere, or when i run it right in the directory via ./influx, it just returns a HELP message, like if i would type ./influx -h
Funny thing is when i download influxdb-client and run its influx binary, it starts the CLI, but its meant on version 1.6.4 and it does not seem to connect ideally on localhost running influxd 2.0.9, mbe i could somehow config it, but it seems to be bad idea anyway.
I purged everything, tried to reinstall everything, even manually deleted all empty directories, anything named influx on my 20.04 Ubuntu is gone and when i try to just follow the instructions online, everything seems to work except the CLI which i really **** need.
Just FYI, if i try to isntall via sudo apt-get install influxdb, influxdb-client -> it works perfectly, but it is older version 1.6.4
I tried installing the deb package via dpkg as well, but no difference... Im running 20.04 Ubuntu. There is the option of running older influxdb(1.6.x), but that I really dont want to do.
Anyone had the same problem? Could not find the solution in last hour online so im trying here to find help. This really drives me crazy though... Thanks for your time. Q.
Thank you guys for your time.
Well, i seem to realize, that the old CLI is gone and not implemented as it used to be, in the new version. In 2.0.0 it was started by
influx repl
But now i found a msg
I have no idea why they decided to deprecate this, not posting that much info about it..
I will try to finish this post by myself, leave it here, maybe someone in the future will find this useful.
Now I will try to 'build the REPL from source', wish me luck lol.
--EDIT
found a clone, closing the thread.
https://github.com/influxdata/influxdb/issues/19986
When I install the latest version of erlang R14B04 in EC2 I get an error stating
Fatal error in wait__(): Function not implemented (38)
So When I installed the lower version of Erlang which is R13B03 It got installed in it.
But i couldnt install the RIAK 1.x version in it.
Could anyone please help me in this to set up riak cluster on ec2
If you search the stack overflow archives, you will learn that certain CentOS versions doesn't work with R14Bx. You are probably being hit by this problem here. Installing a newer version of CentOS that fixes the problem is probably a good solution.
I have been trying to install Passanger for apache on my VPS (running Ubuntu 10.10) and it seems to fail due to g++ as it fails at the point it compiles the module. The installation hangs for a while then:
g++: Internal error: Killed (program cc1plus)
After looking around on the net it seems this could be due to a lack of memory (I only have 256mb).
Is there any way around this? Or, is this in fact probably not the problem? I just need this server for a few days and so far it has been such a mess around just setting everything up so I'm not sure I really want to have to start again with a high RAM VPS. Any suggestions?
Use the debian package instead of building passenger yourself (apt-get install libapache2-mod-passenger).
256M seems pretty tight for a rails site though. I can't imagine you being able to run more than one or two passenger children (my passenger apache instances are using over 200M each).
I run into this problem, too. Then I tried to install the Debian package. But this package is used with Ruby 1.8 and is not compatible with 1.9 (I got problems with writing hash_name: value instead of :hash_name => value.
I'm trying to upgrade my VPS, but still looking for a way not to do so
I want to play with Riak http://riak.basho.com/ or a least get it running on a Windows system. I have downloaded the source code and compiled it but that's where I get stuck, how do I start it?
It does run, altough I havent managed to run it as a service yet.
Install CYGwin, install latest erlang, get source code, compile in cygwin
then the fun part, adjust according to your paths and place into a batch
c:\riak\rel\riak\erts-5.7.4\bin\erl -boot c:\riak\rel\riak\releases\0.8\riak -embedded -config c:\riak\rel\riak\etc\app.config -args_file c:\riak\rel\riak\etc\vm.args -- console
Regards
Looks like the riak source has several bash start scripts. You would have to convert those to a windows batch script equivalent. That could be a fairly interesting chore given how limited batch scripts are. Those start-*.sh files show how to start it up though so I'd start there.
The http://hg.basho.com/riak/src/tip/README Readme file has futher info on what each script does.
Riak can not be run on Windows, only on Linux and Mac.
An alternative is to run VMWare or VirtualBox and run Riak inside a Linux VM. Works great for me.
Running it inside docker instance works very well - this is in 2017 the only way to successfully run Riak on Windows. You could probably get something running using Cygwin but this will be very complex and unreliable. Running under Docker is currently the most idiomatic solution.