developer resources
Codebales holds an ever growing number of solutions to problems that we have experienced in our day to day code writing
328
results
Andrew Fletcher
•
11 Aug 2022
I had generated a backup of key directories on the server - see Create a Ubuntu backup shell script. With a backup in hand, now it was time to test how to unpack a backup and overwrite the directories.
First I unpacked the backup to a temporary directory tmp-cc.
Now I wanted to replace several of the directories on the server. Starting with home, var and etc. But what is an efficient method to overwrite a directory? Also removing any directories that aren't in the copied version....
Andrew Fletcher
•
11 Aug 2022
An approach to generating a backup server is using a shell script. A...
Andrew Fletcher
•
08 Aug 2022
This article works through the steps to update dependencies in package.json...
Andrew Fletcher
•
05 Aug 2022
Finding the issue with a server 500 error
The Nginx error logs are showing...
Andrew Fletcher
•
05 Aug 2022
Focusing on the ckan.ini file (/etc/ckan/default/ckan.ini). When I run the...
Andrew Fletcher
•
05 Aug 2022
Following the instructions on CKAN DataStore with a little information.
Enable the plugin
In your CKAN config file (/etc/ckan/default/ckan.ini), update the datastore plugin
ckan.plugins = datastore
Set-up the database
The DataStore requires a separate PostgreSQL database to save the DataStore resources. List the existing databases:
sudo -u postgres psql -l
Response
List of databases
Name | Owner | Encoding | Collate...
Andrew Fletcher
•
05 Aug 2022
Supervisor running as root error when running the command
sudo service...
Andrew Fletcher
•
05 Aug 2022
Supervisor running as root error when running the command
sudo service...
Andrew Fletcher
•
04 Aug 2022
Listen in on the ports being used on your server. To do so, run the...
Andrew Fletcher
•
04 Aug 2022
If you're planning to create extensions, generating CKAN from source is the...
Andrew Fletcher
•
04 Aug 2022
Error with Nginx
When running an Nginx test, the following response was being presented:
nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (13: Permission denied)
2022/08/04 07:05:54 [warn] 3105#3105: the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:1
2022/08/04 07:05:54 [crit] 3105#3105: pread() "/etc/nginx/sites-enabled/ckan" failed (21: Is a directory)
nginx: configuration...
Andrew Fletcher
•
03 Aug 2022
The following the CKAN source install docs from start to finish including...
Andrew Fletcher
•
03 Aug 2022
What I'm seeing in Android Studio when attempting to run the...
Andrew Fletcher
•
03 Aug 2022
Explain public, private, protected functions and variables inside a class...
Andrew Fletcher
•
03 Aug 2022
Assuming there is a new field requiring a change on a content type. How do...