What kind of mistake I do not understand?

21 views
Skip to first unread message

heiheshang

unread,
Jan 30, 2019, 7:55:44 AM1/30/19
to Zotonic developers
/opt/zotonic $ ./bin/zotonic compile
{"init terminating in do_boot",{undef,[{zotonic_launcher_config,load_configs,[],[]},{erl_eval,do_apply,6,[{file,"erl_eval.erl"},{line,670}]},{erl_eval,exprs,5,[{file,"erl_eval.erl"},{line,122}]},{init,start_it,1,[]},{init,start_em,1,[]},{init,do_boot,3,[]}]}}
init terminating in do_boot ({undef,[{zotonic_launcher_config,load_configs,[],[]},{erl_eval,do_apply,6,[{_},{_}]},{erl_eval,exprs,5,[{_},{_}]},{init,start_it,1,[]},{init,start_em,1,[]},{init,do_boot,3



Marc Worrell

unread,
Jan 30, 2019, 7:59:27 AM1/30/19
to 'Marc Worrell' via Zotonic developers
I think this is a fresh compile and this is the master, which is now OTP.

The compile option will be removed and is currently only working for incremental compiles.

You can use ‘make’ to compile (which calls rebar etc)

Cheers, Marc


--

---
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-develop...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

heiheshang

unread,
Jan 30, 2019, 8:31:34 AM1/30/19
to Zotonic developers
/opt/zotonic $ ./bin/zotonic debug
erl_child_setup closed

Crash dump is being written to: erl_crash.dump...done

Started: Wed Jan 30 22:28:16 2019
Message queue length: 0
Number of heap fragments: 0
Heap fragment data: 0
Link list: [<0.5.0>]
Reductions: 1112
Stack+heap: 4185
OldHeap: 6772
Heap unused: 3467
OldHeap unused: 5371
Memory: 88544   
Program counter: 0x00007f0a73aa7498 (init:boot_loop/2 + 64)
CP: 0x0000000000000000 (invalid)
arity = 0
Internal State: ACT_PRIO_NORMAL | USR_PRIO_NORMAL | PRQ_PRIO_NORMAL | TRAP_EXIT | ON_HEAP_MSGQ
=proc:<0.1.0>
State: Waiting
Name: erts_code_purger
Spawned as: erts_code_purger:start/0
Spawned by: <0.0.0>






среда, 30 января 2019 г., 21:55:44 UTC+9 пользователь heiheshang написал:

Marc Worrell

unread,
Jan 30, 2019, 8:44:16 AM1/30/19
to 'Marc Worrell' via Zotonic developers
Erlang crashes?

Which OTP version are you using?
And is it a clean build (maybe it doesn’t like a beam file from another OTP version).

- M


heiheshang

unread,
Jan 30, 2019, 8:47:08 AM1/30/19
to Zotonic developers
=erl_crash_dump:0.5 
Wed Jan 30 22:28:16 2019
Slogan: erl_child_setup closed
System version: Erlang/OTP 20 [erts-9.2.1] [source] [64-bit] [smp:1:1] [ds:1:1:10] [async-threads:10] [hipe] [kernel-poll:true]
Compiled: Fri Feb 23 20:13:12 2018


среда, 30 января 2019 г., 21:55:44 UTC+9 пользователь heiheshang написал:
/opt/zotonic $ ./bin/zotonic compile

heiheshang

unread,
Jan 30, 2019, 8:18:18 PM1/30/19
to Zotonic developers
Status: Downloaded newer image for zotonic/zotonic-dev:latest
/opt/zotonic $ ./bin/zotonic debug
erl_child_setup closed

Crash dump is being written to: erl_crash.dump...

среда, 30 января 2019 г., 21:55:44 UTC+9 пользователь heiheshang написал:
/opt/zotonic $ ./bin/zotonic compile

heiheshang

unread,
Jan 30, 2019, 9:41:52 PM1/30/19
to Zotonic developers
/opt/zotonic $ make
./rebar3  compile
Zotonic Config:
- /etc/zotonic/zotonic.config
Application Dirs:
- /opt/zotonic/user/modules/*
- /opt/zotonic/user/sites/*
- apps/*
===> Fetching pc ({pkg,<<"pc">>,<<"1.10.0">>})
===> Version cached at /tmp/.cache/rebar3/hex/default/packages/pc-1.10.0.tar is up to date, reusing it
===> sh(mv /tmp/.tmp_dir90026919743 /opt/zotonic/_build/default/plugins/pc)
failed with return code 1 and the following output:
mv: can't rename '/tmp/.tmp_dir90026919743': No such file or directory

===> Plugin pc not available. It will not be used.
===> Verifying dependencies...
===> Fetching bcrypt ({pkg,<<"bcrypt">>,<<"1.0.0">>})
===> Version cached at /tmp/.cache/rebar3/hex/default/packages/bcrypt-1.0.0.tar is up to date, reusing it
===> sh(mv /tmp/.tmp_dir800480727219 /opt/zotonic/_build/default/lib/bcrypt)
failed with return code 1 and the following output:
mv: can't rename '/tmp/.tmp_dir800480727219': No such file or directory

===> Failed to fetch and copy dep: {pkg,<<"bcrypt">>,<<"1.0.0">>,
                                   <<"1C0F76981D8A7B32E4DAA813408BFCA5BA8B1286196EB771F026D02C710F71C5">>}
make: *** [GNUmakefile:27: compile] Error 1


среда, 30 января 2019 г., 21:55:44 UTC+9 пользователь heiheshang написал:
/opt/zotonic $ ./bin/zotonic compile

Marc Worrell

unread,
Jan 31, 2019, 4:52:36 AM1/31/19
to 'Marc Worrell' via Zotonic developers
Seems like something is going wrong with Hex and fetching bcrypt.

What you could try is to delete the ‘./rebar3’ application and let the Makefile fetch a new version.

- Marc


heiheshang

unread,
Jan 31, 2019, 5:17:35 AM1/31/19
to Zotonic developers
this is an access problem
user docker image does not match the user host system
uid zotonic into docker images 100, but uid zotonic host system 1002 after the fix, the next problem appeared

===> Compiling apps/zotonic_core/src/support/z_module_indexer.erl failed
apps/zotonic_core/src/support/z_module_indexer.erl:43: can't find include lib "zotonic_fileindexer/include/zotonic_fileindexer.hrl"; Make sure zotonic_fileindexer is in your app file's 'applications' list

apps/zotonic_core/src/support/z_module_indexer.erl:418: record fileindex undefined
apps/zotonic_core/src/support/z_module_indexer.erl:420: record fileindex undefined
apps/zotonic_core/src/support/z_module_indexer.erl:423: record fileindex undefined
apps/zotonic_core/src/support/z_module_indexer.erl:423: record fileindex undefined
apps/zotonic_core/src/support/z_module_indexer.erl:423: record fileindex undefined
apps/zotonic_core/src/support/z_module_indexer.erl:425: record fileindex undefined

make: *** [GNUmakefile:27: compile] Error 1




среда, 30 января 2019 г., 21:55:44 UTC+9 пользователь heiheshang написал:
/opt/zotonic $ ./bin/zotonic compile

Marc Worrell

unread,
Jan 31, 2019, 6:23:13 AM1/31/19
to 'Marc Worrell' via Zotonic developers
This is the tip of the master?

I just tried a clean build on my machine (macOS 10.13, Erlang OTP-19 via kerl) and everything compiled.
Also the Travis-CI builds work.

So I am wondering what the difference could be with your setup.

You are also in the “zotonic” directory when running ‘make’?

- Marc


heiheshang

unread,
Jan 31, 2019, 6:34:07 AM1/31/19
to Zotonic developers
yes


среда, 30 января 2019 г., 21:55:44 UTC+9 пользователь heiheshang написал:
/opt/zotonic $ ./bin/zotonic compile

heiheshang

unread,
Jan 31, 2019, 8:14:27 PM1/31/19
to Zotonic developers
if replace it
-include_lib("../zotonic_fileindexer/include/zotonic_fileindexer.hrl").

works without problems


среда, 30 января 2019 г., 21:55:44 UTC+9 пользователь heiheshang написал:
/opt/zotonic $ ./bin/zotonic compile

Marc Worrell

unread,
Feb 1, 2019, 9:41:10 AM2/1/19
to 'Marc Worrell' via Zotonic developers
In which file was it?

Then I can check the master.

Still strange that it does compile on Travis-CI.
Which Erlang version are you using?

- Marc


heiheshang

unread,
Feb 1, 2019, 9:01:47 PM2/1/19
to Zotonic developers
System version: Erlang/OTP 20 [erts-9.2.1] [source] [64-bit] [smp:1:1] [ds:1:1:10] [async-threads:10] [hipe] [kernel-poll:true]

среда, 30 января 2019 г., 21:55:44 UTC+9 пользователь heiheshang написал:
/opt/zotonic $ ./bin/zotonic compile

Marc Worrell

unread,
Feb 7, 2019, 2:46:49 AM2/7/19
to 'Marc Worrell' via Zotonic developers
OTP-20 should be ok.

As this  is master, could you try:

rm -rf _build
rm ./rebar3
make

This forces a complete rebuild and a fresh install or rebar3.

I once had a problem with a version of rebar3, that was resolved by removing it.
The Makefile will fetch the newest rebar3 release.

- M

Reply all
Reply to author
Forward
0 new messages