Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 20 12:17
    karlsson commented #2165
  • Aug 19 22:00
    mworrell labeled #2165
  • Aug 19 22:00
    mworrell milestoned #2165
  • Aug 19 20:42
    karlsson opened #2165
  • Aug 19 16:29
    mworrell commented #2162
  • Aug 19 13:21
    mworrell closed #2106
  • Aug 19 13:21
    mworrell commented #2106
  • Aug 19 13:15
    mworrell milestoned #2164
  • Aug 19 13:15
    mworrell opened #2164
  • Aug 19 13:12

    mworrell on 2163-download-link

    admin download link copy button… Add translations. (compare)

  • Aug 19 12:35

    mworrell on 0.x

    mod_admin: simplify 'copy downl… (compare)

  • Aug 19 10:56

    mworrell on download-link

    (compare)

  • Aug 19 10:56

    mworrell on 0.x

    Download link (#2163) * Add do… (compare)

  • Aug 19 10:56
    mworrell closed #2163
  • Aug 19 10:56
    mworrell milestoned #2163
  • Aug 18 11:04
    DorienD review_requested #2163
  • Aug 18 11:04
    DorienD assigned #2163
  • Aug 18 11:04
    DorienD opened #2163
  • Aug 18 11:02

    DorienD on download-link

    Add download link for media ite… remove text (compare)

  • Aug 17 11:14
    heiheshang opened #2162
heiheshang
@heiheshang
works if the directory is called zotonic_mod_name
Marc Worrell
@mworrell
Ah yes, that is correct, on master we have some additional naming. We still want to make that more flexible.
heiheshang
@heiheshang
There was an incomprehensible problem with sending letters. I see that the server sends letters, but they do not reach the addressee.
I see timeout in logs [smtp.yandex.ru]
I do not understand what the problem is
Marc Worrell
@mworrell
Did you check the /admin/log/email ?
If you only see "sending" entries then there is a crash during the sending of email, otherwise you will also see the error that happened during the sending of the email.
heiheshang
@heiheshang
I figured it out, but the logs are not informative, it's hard to understand what is happening
Marc Worrell
@mworrell
timeouts could be a temporary problem.
Only timeouts or also other errors?
heiheshang
@heiheshang
the provider has blocked bulk mailing
zotonic crashed
Marc Worrell
@mworrell
I assume you don't do bulk emailing?
Can you share the crash log? Maybe we need to change something in gen_smtp or the emailer to catch this timeout.
heiheshang
@heiheshang
I just wanted to inform customers about the change of postal address
2018-10-22 01:26:12.123 [error] <0.29249.0> gen_server z_email_server terminated with reason: no such process or port in call to gen\ _server:call('z_trans_server$skl', table) in gen_server:call/2 line 204 2018-10-22 01:26:12.123 [error] <0.29249.0> CRASH REPORT Process z_email_server with 0 neighbours exited with reason: no such proces\ s or port in call to gen_server:call('z_trans_server$skl', table) in gen_server:terminate/7 line 812 2018-10-22 01:26:12.124 [error] <0.273.0> Supervisor zotonic_sup had child z_email_server started with z_email_server:start_link() a\ t <0.29249.0> exit with reason no such process or port in call to gen_server:call('z_trans_server$skl', table) in context child_term\ inated 2018-10-22 01:26:17.139 [error] <0.29286.0> gen_server z_email_server terminated with reason: no such process or port in call to gen\ _server:call('z_trans_server$skl', table) in gen_server:call/2 line 204 2018-10-22 01:26:17.139 [error] <0.29286.0> CRASH REPORT Process z_email_server with 0 neighbours exited with reason: no such proces\ s or port in call to gen_server:call('z_trans_server$skl', table) in gen_server:terminate/7 line 812 2018-10-22 01:26:17.139 [error] <0.273.0> Supervisor zotonic_sup had child z_email_server started with z_email_server:start_link() a\ t <0.29286.0> exit with reason no such process or port in call to gen_server:call('z_trans_server$skl', table) in context child_term\ inated 2018-10-22 01:26:22.152 [error] <0.29333.0> gen_server z_email_server terminated with reason: no such process or port in call to gen\ _server:call('z_trans_server$skl', table) in gen_server:call/2 line 204 2018-10-22 01:26:22.152 [error] <0.29333.0> CRASH REPORT Process z_email_server with 0 neighbours exited with reason: no such proces\ s or port in call to gen_server:call('z_trans_server$skl', table) in gen_server:terminate/7 line 812
Marc Worrell
@mworrell
This is indeed the crash log, typically when the system is coming down.
Do you have also just a bit earlier? When the email server crashed with the timeout?
Curious where the timeout is happening and how we can prevent this rather dramatic crash
Zoltán Gabulya
@gabulyaz
Hi, I tried setup a couple of server on a zotonic server, but I couldn't find how can I enable on zotonic to listen on multiple ports. I use nginx as proxy server its config is correct.
Zoltán Gabulya
@gabulyaz
@mworrell Can you help me Marc?
Marc Worrell
@mworrell
Hi Zoltan, zotonic can have two ports to listen on. One for http and one for https
Zoltán Gabulya
@gabulyaz
Thank you Marc, I wonder also if I can use nginx for the other sites which is not served on the zotonic server? In this case is the correct way to name all my zotonic site as "server_name all_my_zotonic_site" in the nginx conf file? Thanks for answer.
heiheshang
@heiheshang
Tell me how to correctly redirect to the page after receiving the post request?
event(_Msg,Context) -> Url = <<"https://bbb.ru:8443/page/report">>, Context1 = Context#context{actions=[{<<>>,<<>>,{redirect,[{location,Url}]}}]}, Context1.
that doesn't work
Marc Worrell
@mworrell
I use something like this: z_render:wire({redirect, [{location, Url}]}, Context)
Or, if you have an id or dispatch rule: z_render:wire({redirect, [{id, PageId}]}, Context)
Or even something like: z_render:wire({redirect, [ {dispatch, course_timeline_copy}, {course_id, Id}, {class_id, ClassId}, {title, Title} ]}, Context)
This returns a new Context with the redirect action, which will be rendered to some Javascript.
John Gresty
@jgresty

Hello. I have started the zotonic/zotonic:0.42.0 docker image and I can access the web server at localhost:8000, however when I try to create a site using docker exec 1798431ecb8f bin/zotonic addsite -s blog mysite I get the error:

<ERROR> get_cookie: can't open cookie fileerl_call: can't create C node c17@1798431ecb8f; 680385824
Zotonic is not running. You need to start Zotonic first to use this command.

Have I done something wrong here?

John Gresty
@jgresty
...yes I had, passing --user zotonic to that command solved my issue
Marc Worrell
@mworrell
Ah yes, depends on the psql installation and which OS user is performing the command. In general I always add the --user zotonic if not to ensure that the user creating the newly imported tables etc is indeed the user Zotonic will be using.
heiheshang
@heiheshang
@mworrell z_render:wire({redirect, [{location, Url}]}, Context) if I do this, I get http status code = 201, and I need 200
heiheshang
@heiheshang
I have an incomprehensible problem with mqtt
i'see 2018-12-04 11:55:38.885 [info] <0.17611.0>@z_mqtt:opt_debug_pubsub:217 [skl] mod_mqtt publish: site/skl/barcode_send
'-export([
'mqtt:site/skl/barcode_send'/3
]).
'
'mqtt:site/skl/barcode_send'(Message, ModulePid, Context)
but it does not work
Maas-Maarten Zeeman
@mmzeeman
One thing I, almost always, forget is to also allow publish and subscribe rights to custom mqtt topics. Maybe that is the case here.
heiheshang
@heiheshang
i set the rights
observe_acl_is_allowed(#acl_is_allowed{action = publish ,object=#acl_mqtt{words = [<<"site">>,<<"skl">>,<<"barcode_send">>|_Rest]}},\
_Context) ->
true;
Marc Worrell
@mworrell
This is on master or 0.x ?
heiheshang
@heiheshang
0.32.0
Seann Aswell
@seannaswell
Curious, was there discussion at some point of using Riak for multi-server support?
Marc Worrell
@mworrell
Hi @seannaswell , yes we did have that discussion, and also about possible other databases. We had a distributed version running and decided that it was too much (sysop) work for the benefits. That one was based on PostgresSQL and we ran a 5 node cluster for a customer. In the zynamo branch there is still code for it.
Regarding Riak (and other NoSQL dbs), having SQL is making life a lot easier. One of my customers is running a rather large Riak cluster and it is great for its reliability and data-ingest capabilities. It is not so great for structured querying and range queries.
The newer PostgresSQL releases have good support for JSONB in database columns, and we are thinking of moving to that storage model at some time in the future.
Marc Worrell
@mworrell
For performance and reliability we don't really need distribution. Our systems are usually at 100% uptime, and that includes (hot code) upgrades. The minimal downtime is about even between our updates and data center problems. For scalability distribution is nice and we are looking into federation and luke-warm take/fail-over.
Seann Aswell
@seannaswell
Understand, thanks for the clarification.