Difference between revisions of "CKAN Administration"

775 bytes added ,  16:36, 5 September 2023
Add tips on managing Docker containers and increasing disk space under AWS
(Add Canonical Views section)
(Add tips on managing Docker containers and increasing disk space under AWS)
Line 50: Line 50:


* Activate the virtual environment that lets you run <code>paster</code> commands: <code>> . /usr/lib/ckan/default/bin/activate</code>
* Activate the virtual environment that lets you run <code>paster</code> commands: <code>> . /usr/lib/ckan/default/bin/activate</code>
=== Managing the Docker containers
```> cd docker-ckan
> docker ps
```
should return a list of running containers, which should include the following container names: "datapusher-plus", "ckan", "solr", and "redis".
Use
`> sudo docker-compose logs --tail=100 ckan`
to show the last 100 lines of the log for the `ckan` Docker instance.


=== Adding/changing departments of publishers ===
=== Adding/changing departments of publishers ===
Line 57: Line 68:


The extra tricky part about this one is that [https://github.com/WPRDC/ckanext-wprdctheme our GitHub repository that includes this JSON file] is installed in a different directory: <code>/usr/lib/ckan/default/src/ckanext-wprdctheme/</code> but changes to the files in that directory (and subdirectories) do nothing.
The extra tricky part about this one is that [https://github.com/WPRDC/ckanext-wprdctheme our GitHub repository that includes this JSON file] is installed in a different directory: <code>/usr/lib/ckan/default/src/ckanext-wprdctheme/</code> but changes to the files in that directory (and subdirectories) do nothing.
== Dealing with inadequate disk space ===
Once, we were seeing OSError: write error in the CKAN Docker logs and had to increase disk space to make CKAN function again.
Steve on increasing volume size on AWS:
> if you ever have to increase a volume, here’s what i followed to make the filesystem use the new space: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recognize-expanded-volume-linux.html
that server was a Xen instance


== Other changes ==
== Other changes ==