#11276 no magazine feed on start.fedoraproject.org
Closed: Fixed by ryanlerch. Opened by ryanlerch.

First reported on https://discussion.fedoraproject.org/t/fedoras-start-page-has-no-content/81826/8

But the start.fedoraproject.org page is no longer rendering the fedoramagazine feed. This rendering is done by this script:

https://pagure.io/fedora-websites/blob/main/f/start.fedoraproject.org/build/magfeed.py

and i believe it is this job that periodically updates the pagure.io/fedora-websites sites from the git repo to openshift.


here is the error on the image build that i presume is causing us issues:

Traceback (most recent call last):
  File "/usr/bin/pybabel", line 11, in <module>
    load_entry_point('Babel==2.6.0', 'console_scripts', 'pybabel')()
  File "/usr/lib/python2.7/site-packages/babel/messages/frontend.py", line 911, in main
    return CommandLineInterface().run(sys.argv)
  File "/usr/lib/python2.7/site-packages/babel/messages/frontend.py", line 835, in run
    return cmdinst.run()
  File "/usr/lib/python2.7/site-packages/babel/messages/frontend.py", line 470, in run
    for filename, lineno, message, comments, context in extracted:
  File "/usr/lib/python2.7/site-packages/babel/messages/extract.py", line 157, in extract_from_dir
    dirpath=absname,
  File "/usr/lib/python2.7/site-packages/babel/messages/extract.py", line 212, in check_and_call_extract_file
    strip_comment_tags=strip_comment_tags
  File "/usr/lib/python2.7/site-packages/babel/messages/extract.py", line 241, in extract_from_file
    strip_comment_tags))
  File "/usr/lib/python2.7/site-packages/babel/messages/extract.py", line 322, in extract
    for lineno, funcname, messages, comments in results:
  File "/usr/lib64/python2.7/site-packages/genshi/filters/i18n.py", line 1255, in extract
    encoding=encoding)
  File "/usr/lib64/python2.7/site-packages/genshi/template/markup.py", line 67, in __init__
    allow_exec=allow_exec)
  File "/usr/lib64/python2.7/site-packages/genshi/template/base.py", line 421, in __init__
    raise TemplateSyntaxError(e.msg, self.filepath, e.lineno, e.offset)
genshi.template.base.TemplateSyntaxError: not well-formed (invalid token): line 27, column 359 (/tmp/fedora-websites/start.fedoraproject.org/data/templates/magfeed.html, line 27)
make: *** [../Makefile.in:41: pot] Error 1

Ok!

I was able to figure out what happened. There was a nbsp right at the end of the opening paragraph of this post:

https://fedoramagazine.org/anaconda-installer-partitioning-and-storage-survey-results/

which was giving issues to the pybabel module. I have removed the nbsp; and next time the page gets updated, this issue should be resolved.

note that i could re-create the issue by following the directions on the fedora-websites git repo for setting up a dev instance, and just trying to build with 'make en test' in start.fedoraproject.org

Metadata Update from @ryanlerch:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

note that there is a new version of this start page being worked on by the websites-apps team, so not going to bother trying to fix the underlying issue here.

Metadata