I've seen this on a CentOS system, where I called zotonic.sh start
during boot (when entering run level 3, if I remember correctly).
I guess that I should've postponed the start a bit, since using
zotonic.sh later when booting is complete works fine. My guess was
that it had to do with some hostname inconsitency (i.e. I started
zotonic before hostname was properly configured). Not sure about that
though.
For killing erlang. If nothing else works (I've had sessions where I
were unable to kill it of properly) I simply renamed the zotonic.sh
file used to restart the node temporarily; that way the heart command
fails and I could kill off the other processes before restoring the
zotonic.sh file again.
//Andreas
2011/4/19 Marc Worrell <mwor...@mac.com>:
You can use kill -STOP on heart and beam and then straight-up kill to solve this. The trouble is the cycle of regen.
Cheers,
Alain
Have the new scripts been documented anywhere?
I must have missed the post that introduced them since it was only through communication with Alain that I found out that they even existed.
I had a problem awhile back with multiple instances of Zotonic running on my system which Marc helped me straighten out. This suggested to me two functions that might help prevent such problems:
- zotonic status
- in zotonic start, check to see if the server is already started. If so, give notification.
Best,
LRP
I never knew about this. Perhaps a link on the Zotonic site would be useful. Or did I miss that too.
Best wishes,
LRP
I've just added to lines to the content of a page that has been running fine forever. I click save this page below the Content field, see the "Saved Writers Glen" notice. but it doesn't save. I click in the Publish the page box, but it doesn't save. I click save & view in the Publish this page box, I see the page... unchanged. I return to admin and the changes in the Content field are gone.
I've tried click and all variations above. Still can't get it to save.
If past experience holds true, at some point the save will take.
Here is another case where I wish I had a diagnostic procedure to follow.
LRP
I reconnected to Zotonic admin through a different tab on my browser and was able to save my changes with no problem.
I'm sure there's a rational reason for this, but for now I'll chalk it up to one more gremlin living in my system.
Best,
LRP
I seriously suggest using a mainstream browser for Zotonic admin.
I'm using Debian's rebranded version of Firefox: Iceweasel 3.0.6.
Best wishes,
Lloyd
Yes. But it's not the only mystery that I'm experiencing. I've been focusing more time than I can really afford on trying to get Writers Glen to a point where I can go public or, at least, beta. Even things I thought I understand don't seem to be working. And this is taking valuable time away from learning about things I know I don't understand.
For instance, I had chat working but commented out a dispatch rule to test and confirm my understanding of what was going on. But chat no longer worked when I uncommented the rule. And I haven't been able to make it work since. Commenting and uncommenting the rule was the only thing I did.
Unfortunately, given that I'm headed out of the country on Thursday, I don't have time now to explore and probe them in depth.
But when I return next month I plan to spend the month really boring in. Among other things, I'll be comparing experience across the system on Discovery and my local system. I'm sure I'll have a ton of Mickey-the-dunce questions.
Many thanks,
LRP
I have a home page with category text, unique name page_home, and title Writers Glen.
Here is the dispatch rule:
{home, [], resource_page, [ {template, "home.tpl"}, {id, page_home} ]},
It works just fine when I call <mysite>/.
I've created another page with category text, unique name page_test, and title Test.
I copied home.tpl to test.tpl.
Here's the dispatch rule:
{test, ["test"], resource_page [ {template, "test.tpl"} ]}, {id, page_test} ]},
I get a 404 error when I call <mysite>/test
By my reasoning, the pages are the same but for title, the dispatch rules are the same but for substitution of the word test for home. The templates are the same.
But one works and the other doesn't.
I've tried rescanning modules.
I'll need to drink an extra bottle of Tequila to recover from my overpowering frustration.
All the best,
Lloyd
Now you know why I don't proof-read my own books.
Thanks many and multi,
I think file:consult("zotonic/priv/sites/mysite/dispatch/dispatch") would detect this error.
It would be pretty straight-forward, but tedious to write a module that tests a site's modules and config for basic correctness. It would be better to bake more verbose error reporting into the compile and config loading code in Zotonic. I don't time unfortunately :(
Cheers,
Alain
Very strange.
I reconnected to Zotonic admin through a different tab on my browser and was able to save my changes with no problem.
I'm sure there's a rational reason for this, but for now I'll chalk it up to one more gremlin living in my system.
Since I've been known to do silly things, your question couldn't possibly be silly.
Anyway, anything is possible. But several times when I've experienced this problem I would get a successful save after several clicks on the save button.
My current theory is that it had to do with one or more bugs in my dispatch rules. Just a wild-eyed guess, but maybe a dispatch bug killed a supervisor in the Zotonic code that was trying to recover while I was trying to save.
I say this because once I fixed the dispatch code last night, I had no more problems saving pages.
It is comforting to know, though, that good folks like you are willing to take time to help me through my silly fumbles.
Thank you.
LRP
-----Original Message-----
From: "Michael Connors" <conn...@gmail.com>
Sent: Wednesday, April 20, 2011 8:51am
To: zotoni...@googlegroups.com
Subject: Re: [Zotonic-Usr] Page save problem
I introduced the use of hostname in the start an stop to support remote debugging. I'm beginning to regret that since SSH X Tunneling and running EShell would likely work just as well.
Maas is right about EPMD's case sensitivity. Make sure your hostname
is all lowercase. DNS stores and reports them in lowecase so it makes
things far less confusing.
This is what I get. I have not looked any further into it yet. I know Zotonic is running, the site is up.Stopping zotonic zoton...@web123.webfaction.comThere is no node with this name