Thanks for the pointers Sam!

/members/log/ is working for me (contains whimsy_access.log and 
whimsy_error.log). However, I
needed to manually create the symlink since the Rakefile is looking for 
/var/log/apache2 and in my
installation it's /var/log/httpd, but that was fairly easy to resolve ;)

With your change I am able to view the committee page as well again.

Are the scripts in 
https://svn.apache.org/repos/infra/infrastructure/apmail/trunk/bin the only 
scripts I
need to run? Or only the listmodsubs.sh & whimsy_qmail_ids.sh as described in 
the README?
I tried running them but they rely on the existence of /home/apmail and the 
ability to rsync data
to/from whimsy-vm4 & whimsy-vm5 as I understand.

Is this correct or are there a few steps I didn't follow?

Thanks :)


On 2020/02/02 14:21:59, Sam Ruby <ru...@intertwingly.net> wrote: 
> On Sun, Feb 2, 2020 at 8:46 AM Roy Lenferink <rlenfer...@apache.org> wrote:
> >
> > Hi all,
> >
> > Hopefully an easy question; I've setup Whimsy locally on my (CentOS 8)
> > machine. Most of the functionality works however it complains about missing
> > the /srv/subscriptions directory when e.g. visiting
> > http://whimsy.local/roster/committee/celix.
> > Anyone who has an idea where this data is retrieved from as it is not part
> > of the repository.yml?
> >
> > Detailed error message:
> >
> > 500 - Internal Server Error
> >
> > "Hey, Rocky! Watch me pull a rabbit out of my hat."
> >
> > Oh, snap! Something went wrong. Error details follow:
> >
> >    sinatra.error = No such file or directory @ rb_file_s_mtime -
> > /srv/subscriptions/list-subs
> >    sinatra.route = GET /committee/:name
> >    REQUEST_URI = /roster/committee/celix
> >
> > ASF Members may also review access protected: /members/log/
> >
> > Also please check for ASF system errors at: status.apache.org
> 
> Does the /members/log/ work for you?  If you go to your apache error
> logs, you will see a stack traceback that looks something like this:
> 
> App 41077 output: 2020-02-02 09:02:00 - Errno::ENOENT - No such file
> or directory @ rb_file_s_mtime - /srv/subscriptions/list-subs:
> App 41077 output:
> /private/var/whimsy/whimsy/lib/whimsy/asf/mlist.rb:328:in `mtime'
> App 41077 output:
> /private/var/whimsy/whimsy/lib/whimsy/asf/mlist.rb:328:in `list_parse'
> App 41077 output:
> /private/var/whimsy/whimsy/lib/whimsy/asf/mlist.rb:296:in
> `list_filter'
> App 41077 output:
> /private/var/whimsy/whimsy/lib/whimsy/asf/mlist.rb:45:in
> `private_subscribers'
> App 41077 output:
> /private/var/whimsy/whimsy/www/roster/models/committee.rb:46:in
> `serialize'
> 
> I've committed a change that returns an empty list if the directory isn't 
> found:
> 
> https://github.com/apache/whimsy/commit/3cd5ad173db7fe19def1073f10519584212f26ff
> 
> With this change, if you visit
> http://whimsy.local/roster/committee/celix it should return a web
> page.
> 
> As to your original question, if you search
> https://github.com/apache/whimsy/blob/master/DEPLOYMENT.md for "cron
> scripts" you will see how /srv/subscriptions is populated: the mail
> server machines have jobs that periodically send the mail subscription
> data to whimsy.
> 
> Congrats for getting this far!
> 
> - Sam Ruby
> 

Reply via email to