Skip to content

Instantly share code, notes, and snippets.

Missing Exercises and Baking Problems

Issues

  1. Alina's team reported that a book they are working on has missing exercises

    Screenshot_2019-11-15 APUSH staging collection - OpenStax CNX

Issue

What to do if users tell us they get 404 sometimes and the content should be there?

Example, we're seeing this problem on staging on 2019-11-14.

Background

Add another domain to an existing letsencrypt SSL certificate using certbot

First find all the domains the existing certificate is for:

certbot certificates

It outputs something like this:

Neb publish debugging

Background

Once in a while, we get support requests from content managers to give their users privileges to publish using neb.

What happened?

On 2019-11-01, We discovered that slugs have changed in the AP Biology book when looking at the rex redirects PR: openstax/cnx-deploy#1213

For example, it changes a rex url from

/books/biology-ap-courses/pages/1-introduction

@karenc
karenc / neb-stale-content.md
Created October 4, 2019 14:00
Neb: what to do about stale content
  1. Downloaded example content from Thomas ~/Downloads/new\ stale\ backup.zip.

  2. Unzip the original content col11963_1.5.2_from_batch and modified content col11963_1.5.2_modified_by_me:

    unzip -x ~/Downloads/new\ stale\ backup.zip col11963_1.5.2_modified_by_me/*
    
    unzip -x ~/Downloads/new\ stale\ backup.zip col11963_1.5.2_from_batch/*
    
#!/usr/bin/env python3
# https://github.com/openstax/cnx/issues/669
# Oops error when navigating to the Psychology book through the CNX homepage
# Get the varnish files here:
# scp homedirs1.cnx.org:/home/pumazi/p0{1,2}_905_varn.out .
# Run this script by doing:
# ./parse_varnish_logs.py p01_905_varn.out p02_905_varn.out
2019-05-31T15:29:39 ERROR Zope.SiteErrorLog https://legacy.cnx.org/Members/fsiegeltuch/m68449/content_checkout
Traceback (innermost last):
Module ZPublisher.Publish, line 115, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 41, in call_object
Module Products.CMFFormController.FSControllerPythonScript, line 104, in __call__
Module Products.CMFFormController.Script, line 145, in __call__
Module Products.CMFCore.FSPythonScript, line 108, in __call__
Module Shared.DC.Scripts.Bindings, line 311, in __call__
Module Products.PloneHotfix20110531, line 106, in _patched_bindAndExec