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