Hi Eddie,

This error about the ‘port program’ is caused by running then beam.smp (erlang) 
as root user.

There is an explanation here:

https://github.com/aeternity/aeternity/wiki/Troubleshooting#node-wont-start-with-privileged-user
 
<https://github.com/aeternity/aeternity/wiki/Troubleshooting#node-wont-start-with-privileged-user>

In short: try to run zotonic as a “normal” user, and not as root.

Cheers, Marc



> On 21 Feb 2019, at 15:47, layed...@gmail.com wrote:
> 
> Hello,
> 
> Newbie problems - Just wondered if you recognise this problem....
> 
> Rebuilt zotonic on DigitalOceon droplet on ubuntu 16.04
> installed zotonic with..
> 
> installed OTP 20 as I have had make fail using OTP 21
> $ git clone https://github.com/zotonic/zotonic.git
> cd zotonic
> make
> bin/zotonic debug
> 
> 
> Checked DB is OK
> postgres=# \du
>                                    List of roles
>  Role name |                         Attributes                         | 
> Member of
> -----------+------------------------------------------------------------+-----------
>  postgres  | Superuser, Create role, Create DB, Replication, Bypass RLS | {}
>  zotonic   | Create DB                                                  | {}
> 
> postgres=# SELECT version();
>                                                       version
> -------------------------------------------------------------------------------------------------------------------
>  PostgreSQL 9.5.14 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 
> 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609, 64-bit
> 
> 
> 
> root@packer-manual-zotonic:~/zotonic# bin/zotonic debug
> Erlang/OTP 20 [erts-9.3] [source] [64-bit] [smp:1:1] [ds:1:1:10] 
> [async-threads:10] [hipe] [kernel-poll:true]
> 
> Eshell V9.3  (abort with ^G)
> (zotonic001@packer-manual-zotonic)1> 14:28:09.329 [info] Application lager 
> started on node 'zotonic001@packer-manual-zotonic'
> 14:28:09.412 [info] Application mimetypes started on node 
> 'zotonic001@packer-manual-zotonic'
> 14:28:09.814 [info] Application mnesia started on node 
> 'zotonic001@packer-manual-zotonic'
> 14:28:09.845 [info] emqtt_app:35 starting emqtt on node 
> 'zotonic001@packer-manual-zotonic'
> 14:28:09.892 [info] emqtt_auth:55 emqtt_auth is started
> 14:28:09.899 [info] emqtt_retained:89 emqtt_retained is started.
> 14:28:09.911 [info] emqtt_router:121 emqtt_router is started.
> 14:28:09.918 [info] emqtt_registry:56 emqtt_registry is started.
> 14:28:09.925 [info] emqtt_client_monitor:46 emqtt_client_monitor is started.
> 14:28:09.939 [info] emqtt_app:38 emqtt broker is running now.
> 14:28:09.939 [info] Application emqtt started on node 
> 'zotonic001@packer-manual-zotonic'
> 14:28:10.006 [info] Application gproc started on node 
> 'zotonic001@packer-manual-zotonic'
> 14:28:10.062 [info] Application jobs started on node 
> 'zotonic001@packer-manual-zotonic'
> 14:28:10.083 [info] Application sidejob started on node 
> 'zotonic001@packer-manual-zotonic'
> 14:28:10.095 [info] Application bert started on node 
> 'zotonic001@packer-manual-zotonic'
> 14:28:10.105 [info] Application dh_date started on node 
> 'zotonic001@packer-manual-zotonic'
> 14:28:10.116 [info] Application eiconv started on node 
> 'zotonic001@packer-manual-zotonic'
> 14:28:10.157 [info] Setup running ...
> 14:28:10.158 [info] Directories verified. Res = ok
> 14:28:10.158 [info] Setup finished processing hooks (Mode=normal)...
> 14:28:10.158 [info] Application setup started on node 
> 'zotonic001@packer-manual-zotonic'
> 14:28:10.233 [info] exometer_report:632 Starting reporters with []
> 14:28:10.233 [info] Application exometer_core started on node 
> 'zotonic001@packer-manual-zotonic'
> 14:28:10.252 [info] Application epgsql started on node 
> 'zotonic001@packer-manual-zotonic'
> 14:28:10.265 [info] Application depcache started on node 
> 'zotonic001@packer-manual-zotonic'
> 14:28:10.266 [info] Application zotonic_stdlib started on node 
> 'zotonic001@packer-manual-zotonic'
> 14:28:10.288 [info] Application cowlib started on node 
> 'zotonic001@packer-manual-zotonic'
> 14:28:10.319 [info] Application ranch started on node 
> 'zotonic001@packer-manual-zotonic'
> 14:28:10.342 [info] Application cowboy started on node 
> 'zotonic001@packer-manual-zotonic'
> 14:28:10.353 [info] Application cowmachine started on node 
> 'zotonic001@packer-manual-zotonic'
> 14:28:10.360 [info] Application poolboy started on node 
> 'zotonic001@packer-manual-zotonic'
> 14:28:10.416 [info] filezcache: repopulating cache with 0 keys
> 14:28:10.416 [info] filezcache: scanning cache directory for unknown files.
> 14:28:10.423 [info] Application filezcache started on node 
> 'zotonic001@packer-manual-zotonic'
> 14:28:10.476 [info] Application s3filez started on node 
> 'zotonic001@packer-manual-zotonic'
> 14:28:10.512 [info] Application template_compiler started on node 
> 'zotonic001@packer-manual-zotonic'
> 14:28:10.529 [info] Application qdate_localtime started on node 
> 'zotonic001@packer-manual-zotonic'
> 14:28:10.551 [info] Application cf started on node 
> 'zotonic001@packer-manual-zotonic'
> 14:28:10.551 [info] Application erlware_commons started on node 
> 'zotonic001@packer-manual-zotonic'
> 14:28:10.551 [info] Application qdate started on node 
> 'zotonic001@packer-manual-zotonic'
> 14:28:10.588 [info] Application syslog started on node 
> 'zotonic001@packer-manual-zotonic'
> 14:28:10.637 [info] Application bcrypt started on node 
> 'zotonic001@packer-manual-zotonic'
> 14:28:10.649 [info] Application erlpass started on node 
> 'zotonic001@packer-manual-zotonic'
> 14:28:10.696 [info] Application gun started on node 
> 'zotonic001@packer-manual-zotonic'
> 14:28:10.712 [info] Application shotgun started on node 
> 'zotonic001@packer-manual-zotonic'
> 14:28:10.723 [info] Application jiffy started on node 
> 'zotonic001@packer-manual-zotonic'
> 14:28:10.734 [info] Application elli started on node 
> 'zotonic001@packer-manual-zotonic'
> 14:28:10.735 [info] Application letsencrypt started on node 
> 'zotonic001@packer-manual-zotonic'
> 14:28:10.746 [info] Application zotonic_notifier started on node 
> 'zotonic001@packer-manual-zotonic'
> 14:28:10.747 [info] Application zotonic_core started on node 
> 'zotonic001@packer-manual-zotonic'
> 14:28:10.777 [error] CRASH REPORT Process exec with 0 neighbours exited with 
> reason: bad return value: "Port program 
> /root/zotonic/_build/default/lib/erlexec/priv/x86_64-unknown-linux-gnu/exec-port
>  with SUID bit set is not allowed to run without setting effective user!" in 
> gen_server:init_it/6 line 357
> 14:28:10.777 [error] Supervisor exec_app had child exec started with 
> exec:start_link([]) at undefined exit with reason bad return value: "Port 
> program 
> /root/zotonic/_build/default/lib/erlexec/priv/x86_64-unknown-linux-gnu/exec-port
>  with SUID bit set is not allowed to run without setting effective user!" in 
> context start_error
> 14:28:10.778 [error] CRASH REPORT Process <0.298.0> with 0 neighbours exited 
> with reason: {{shutdown,{failed_to_start_child,exec,{bad_return_value,"Port 
> program 
> /root/zotonic/_build/default/lib/erlexec/priv/x86_64-unknown-linux-gnu/exec-port
>  with SUID bit set is not allowed to run without setting effective 
> user!"}}},{exec_app,start,[normal,[]]}} in application_master:init/4 line 134
> 14:28:10.778 [error] zotonic:49 Zotonic start error: 
> {{shutdown,{failed_to_start_child,exec,{bad_return_value,"Port program 
> /root/zotonic/_build/default/lib/erlexec/priv/x86_64-unknown-linux-gnu/exec-port
>  with SUID bit set is not allowed to run without setting effective 
> user!"}}},{exec_app,start,[normal,[]]}}
> 14:28:10.779 [info] Application erlexec exited with reason: 
> {{shutdown,{failed_to_start_child,exec,{bad_return_value,"Port program 
> /root/zotonic/_build/default/lib/erlexec/priv/x86_64-unknown-linux-gnu/exec-port
>  with SUID bit set is not allowed to run without setting effective 
> user!"}}},{exec_app,start,[normal,[]]}}
> root@packer-manual-zotonic:~/zotonic# erl -v
> Erlang/OTP 20 [erts-9.3] [source] [64-bit] [smp:1:1] [ds:1:1:10] 
> [async-threads:10] [hipe] [kernel-poll:false]
> 
> Eshell V9.3  (abort with ^G)
> 1>
> BREAK: (a)bort (c)ontinue (p)roc info (i)nfo (l)oaded
>        (v)ersion (k)ill (D)b-tables (d)istribution
> a
> root@packer-manual-zotonic:~/zotonic# lsb_release -a
> No LSB modules are available.
> Distributor ID:       Ubuntu
> Description:  Ubuntu 16.04.5 LTS
> Release:      16.04
> Codename:     xenial
> 
> -- 
> 
> --- 
> You received this message because you are subscribed to the Google Groups 
> "Zotonic developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to zotonic-developers+unsubscr...@googlegroups.com 
> <mailto:zotonic-developers+unsubscr...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Zotonic developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to zotonic-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to