developer resources
Codebales holds an ever growing number of solutions to problems that we have experienced in our day to day code writing
Selected filter
45
results
Andrew Fletcher
•
Error when running ckan.ini init
from flask_debugtoolbar import DebugToolbarExtension
ModuleNotFoundError: No module named 'flask_debugtoolbar'Activate your CKAN virtual environment, for example:
. /usr/lib/ckan/default/bin/activateThen check your location is
cd /usr/lib/ckan/default/src
Install flask_debugtoolbar
Need to install flask_debugtoolbar, and do so by executing the command
pip install flask_debugtoolbar --upgradeResponse
Defaulting to user installation because normal...
Andrew Fletcher
•
My goal was to install a requirements.txt file using pip. First,...
Andrew Fletcher
•
In this article I'll walk through the steps I went through to install Solr on...
Andrew Fletcher
•
Looking to install Solr on your server? Not sure if it worth the...
Andrew Fletcher
•
An approach to generating a backup server is using a shell script. A...
Andrew Fletcher
•
Finding the issue with a server 500 error
The Nginx error logs are showing too much detail.
Nginx logs and test
There are no errors in the nginx log and sudo nginx -t looks fine
sudo nginx -tResponse
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
Are the services running?
I'll start by doing a status check for
Nginx
PostgreSQL
jetty9
Supervisor
Nginx
sudo service nginx statusResponse
●...
Andrew Fletcher
•
Focusing on the ckan.ini file (/etc/ckan/default/ckan.ini). When I run the...
Andrew Fletcher
•
Following the instructions on CKAN DataStore with a little...
Andrew Fletcher
•
Supervisor running as root error when running the command
sudo service...
Andrew Fletcher
•
Supervisor running as root error when running the command
sudo service...
Andrew Fletcher
•
Listen in on the ports being used on your server. To do so, run the command
netstat -a | grep tcpIf netstat is not install, then you'll be prompted to run the install script
sudo apt install net-toolsResponse
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
net-tools
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 196 kB of archives.
After this operation, 864 kB of...
Andrew Fletcher
•
Error with Nginx
When running an Nginx test, the following response was being...
Andrew Fletcher
•
The following the CKAN source install docs from start to finish including solr....
Andrew Fletcher
•
Working through a CKAN installation on Ubuntu 20.04
User sees a server 500...
Andrew Fletcher
•
It is really simple to switch users in Ubuntu or any other Linux distribution...