deps/z_logger/ebin/z_logger.beam hides deps/webzmachine/ebin/z_logger.beam - and other problems after git pull ...

30 views
Skip to first unread message

Frank Goenninger

unread,
Oct 7, 2012, 1:00:24 PM10/7/12
to zotoni...@googlegroups.com
Hi all,

after doing a git pull on 0.9-dev yesterday I found my site doesn't start up anymore the way I had it before. I get the following output in debug mode:

zotonic@web $ sudo /opt/zotonic/current/bin/zotonic debug

Erlang R15B01 (erts-5.9.1) [source] [64-bit] [smp:2:2] [async-threads:0] [hipe] [kernel-poll:true]

Eshell V5.9.1 (abort with ^G)
(zoton...@web.consequor.eu)1> 18:39:58.993 [info] Application lager started on node 'zoton...@web.consequor.eu'
** /serv/opt/zotonic/zotonic-09-dev/deps/z_logger/ebin/z_logger.beam hides /serv/opt/zotonic/zotonic-09-dev/deps/webzmachine/ebin/z_logger.beam
** Found 1 name clashes in code paths
18:39:59.087 [info] Application crypto started on node 'zoton...@web.consequor.eu'
** /serv/opt/zotonic/zotonic-09-dev/deps/z_logger/ebin/z_logger.beam hides /serv/opt/zotonic/zotonic-09-dev/deps/webzmachine/ebin/z_logger.beam
** Found 1 name clashes in code paths
18:39:59.161 [info] Application webzmachine started on node 'zoton...@web.consequor.eu'
18:39:59.257 [info] Application mnesia started on node 'zoton...@web.consequor.eu'
18:39:59.266 [info] Application public_key started on node 'zoton...@web.consequor.eu'
18:39:59.279 [info] Application ssl started on node 'zoton...@web.consequor.eu'
18:39:59.316 [info] Application inets started on node 'zoton...@web.consequor.eu'
** /serv/opt/zotonic/zotonic-09-dev/deps/z_logger/ebin/z_logger.beam hides /serv/opt/zotonic/zotonic-09-dev/deps/webzmachine/ebin/z_logger.beam
** Found 1 name clashes in code paths
18:39:59.395 [info] Application mimetypes started on node 'zoton...@web.consequor.eu'
18:39:59.444 [info] gen_smtp_server starting at 'zoton...@web.consequor.eu'

18:39:59.444 [info] listening on {0,0,0,0}:2525 via tcp

18:39:59.604 [info] Application zotonic started on node 'zoton...@web.consequor.eu'
18:39:59.895 [error] z_module_manager:485 [consequor] Error starting module mod_backup: {error,{missing_dependencies,[rest]}}

Also, the line

18:39:59.444 [info] listening on {0,0,0,0}:2525 via tcp

says "listening in port 2525" - What is listening there? I have the following config file:

[{listen_port,80},
{listen_port_ssl,443},
{listen_ip,any},
{password,"xxx"},
{ssl,true},
{ssl_password,[]},
{ssl_certfile,"/var/data/consequor/ssl/certs/zotonic.web-consequor-eu.crt"},
{ssl_keyfile,"/var/data/consequor/ssl/certs/zotonic.web-consequor-eu.key"},
{ssl_cacertfile,"/var/data/consequor/ssl/certs/zotonic.web-consequor-eu.ca-bund
le"}].

What I am also missing is that I have an automatic forward to https://www.consequor.de when accessing with normal http. Hostalias missing ?

Thanks for help!

Best regards

Frank

Marc Worrell

unread,
Oct 7, 2012, 1:41:09 PM10/7/12
to zotoni...@googlegroups.com
Hi Frank,

Some suggestions are inline below.

- Marc


On 7 okt. 2012, at 19:00, Frank Goenninger wrote:

> Hi all,
>
> after doing a git pull on 0.9-dev yesterday I found my site doesn't start up anymore the way I had it before. I get the following output in debug mode:

Make sure that you have the latest, yesterday I did some bug fixing on the https/http switching.

> zotonic@web $ sudo /opt/zotonic/current/bin/zotonic debug
>
> Erlang R15B01 (erts-5.9.1) [source] [64-bit] [smp:2:2] [async-threads:0] [hipe] [kernel-poll:true]
>
> Eshell V5.9.1 (abort with ^G)
> (zoton...@web.consequor.eu)1> 18:39:58.993 [info] Application lager started on node 'zoton...@web.consequor.eu'
> ** /serv/opt/zotonic/zotonic-09-dev/deps/z_logger/ebin/z_logger.beam hides /serv/opt/zotonic/zotonic-09-dev/deps/webzmachine/ebin/z_logger.beam
> ** Found 1 name clashes in code paths
> 18:39:59.087 [info] Application crypto started on node 'zoton...@web.consequor.eu'
> ** /serv/opt/zotonic/zotonic-09-dev/deps/z_logger/ebin/z_logger.beam hides /serv/opt/zotonic/zotonic-09-dev/deps/webzmachine/ebin/z_logger.beam
> ** Found 1 name clashes in code paths

z_logger has been moved from its own reps/z_logger repo into webzmachine.
You can delete deps/z_logger

> 18:39:59.444 [info] gen_smtp_server starting at 'zoton...@web.consequor.eu'
>
> 18:39:59.444 [info] listening on {0,0,0,0}:2525 via tcp
>
> 18:39:59.604 [info] Application zotonic started on node 'zoton...@web.consequor.eu'
> 18:39:59.895 [error] z_module_manager:485 [consequor] Error starting module mod_backup: {error,{missing_dependencies,[rest]}}

mod_backup has been changed.
It now needs mod_rest to function, please enable mod_rest.

> Also, the line
>
> 18:39:59.444 [info] listening on {0,0,0,0}:2525 via tcp
>
> says "listening in port 2525" - What is listening there? I have the following config file:

That is the e-mail receive server.
Zotonic can handle incoming e-mail.
By default it discards such e-mails, but it is also used for bounce handling when sending e-mail (like with mailing lists).

> [{listen_port,80},
> {listen_port_ssl,443},
> {listen_ip,any},
> {password,"xxx"},
> {ssl,true},
> {ssl_password,[]},
> {ssl_certfile,"/var/data/consequor/ssl/certs/zotonic.web-consequor-eu.crt"},
> {ssl_keyfile,"/var/data/consequor/ssl/certs/zotonic.web-consequor-eu.key"},
> {ssl_cacertfile,"/var/data/consequor/ssl/certs/zotonic.web-consequor-eu.ca-bund
> le"}].
>
> What I am also missing is that I have an automatic forward to https://www.consequor.de when accessing with normal http. Hostalias missing ?

You need to move your ssl keys to your site.
There is more documentation here: http://zotonic.com/docs/ref/modules/mod_ssl.html
Make sure that you rename you crt, key and bundle files to what is told in the above documentation.
Also check the configuration options, to make it again as it was with your previous install.


Arjan Scherpenisse

unread,
Oct 7, 2012, 2:38:14 PM10/7/12
to zotoni...@googlegroups.com
>
> That is the e-mail receive server.
> Zotonic can handle incoming e-mail.
> By default it discards such e-mails, but it is also used for bounce handling when sending e-mail (like with mailing lists).

The message is confusing though. There is only mention of listening on
port 2525 but not on the web ports...

Maybe, after startup, Zotonic should print some overview on the shell
with all the listening ports, bound ips, active sites, etc, a bit like
RabbitMQ does:

node : rabbit@ixion
app descriptor :
/home/arjan/devel/redgage/rabbitmq-server-2.8.2/scripts/../ebin/rabbit.app
home dir : /home/arjan
config file(s) : (none)
cookie hash : Dau7EHNsHMs7h6IDxqPz7A==
log : /tmp/rab...@ixion.log
sasl log : /tmp/rab...@ixion-sasl.log
database dir : /tmp/rabbitmq-rabbit-mnesia
erlang version : 5.9.2


grts Arjan

Frank Goenninger

unread,
Oct 7, 2012, 2:39:40 PM10/7/12
to zotoni...@googlegroups.com
Hi Marc,

wow - thanks for your prompt and to the point answer! Works as advertised by you ;-) .So, all in all, I don't need the ssl configuration in the config file anymore ?

Thanks again!

Kind regards

Frank


Marc Worrell

unread,
Oct 7, 2012, 2:41:58 PM10/7/12
to zotoni...@googlegroups.com
Yes, you can remove the SSL configuration from the priv/config file.

Good to hear that everything works!

- Marc

Marc Worrell

unread,
Oct 7, 2012, 2:42:43 PM10/7/12
to zotoni...@googlegroups.com
Yes, I agree.
That should help a lot to know what is happening.

Maybe also a list of all sites with their status?

- M

Arjan Scherpenisse

unread,
Oct 7, 2012, 2:43:10 PM10/7/12
to zotoni...@googlegroups.com
I added these gems to the upgrade notes:

http://zotonic.com/docs/manuals/upgrading.html#mod-backup

grts Arjan

Andreas Stenius

unread,
Oct 7, 2012, 3:05:56 PM10/7/12
to zotoni...@googlegroups.com
Something like this:

kaos@ganesha:~/zotonic$ ./bin/zotonic status
Running: zoton...@ganesha.local

Sites Status:
=============
blog                - running
lekiparken          - running
liggmilan           - running
trackz              - running
zotonic_status      - running

:)

2012/10/7 Marc Worrell <mwor...@me.com>

Arjan Scherpenisse

unread,
Oct 7, 2012, 3:07:19 PM10/7/12
to zotoni...@googlegroups.com

Lol yes but also some info about listen ports etc

Op 7 okt. 2012 21:05 schreef "Andreas Stenius" <andreas...@astekk.se> het volgende:

Andreas Stenius

unread,
Oct 7, 2012, 3:40:39 PM10/7/12
to zotoni...@googlegroups.com
yeah, of course; that reply was specifically for Marc's:


> Maybe also a list of all sites with their status?

;)

2012/10/7 Arjan Scherpenisse <scherp...@gmail.com>
Reply all
Reply to author
Forward
0 new messages