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
49
results
Andrew Fletcher
•
When Solr is displaying results on the site, first step is to log in the server and check its status
● solr.service - LSB: Controls Apache Solr as a Service
Loaded: loaded (/etc/init.d/solr; generated)
Active: failed (Result: exit-code) since Wed 2024-04-17 23:22:52 UTC; 6h ago
Docs: man:systemd-sysv-generator(8)
Apr 17 23:22:50 {name} systemd[1]: Starting LSB: Controls Apache Solr as a Service...
Apr 17 23:22:51 {name} su[750]: (to solr) root on none
Apr 17 23:22:51 {name}...
Andrew Fletcher
•
On a server directory with over 100,000 PDF files, I needed to verify the...
Andrew Fletcher
•
Managing large directories, especially those filled with a diverse mix of media...
Andrew Fletcher
•
Recently I came across this piece of gold when dealing with databases,...
Andrew Fletcher
•
In the realm of system administration and monitoring, understanding memory usage...
Andrew Fletcher
•
The red flag was when I saw the server disk space is showing a site is taking up 57992.5 MB, where locally the site size is showing 957MB. There is something serious happening here and I need to establish the problem quickly. When dealing with a significant discrepancy in site size between a local environment and a server, it's important to identify the root cause of the larger disk usage on the server.
Approaches for discovering the issue(s)
1. Analyse Large...
Andrew Fletcher
•
To determine the size of a directory using the terminal, you can use the du...
Andrew Fletcher
•
Having updated Solr, re-indexing wasn't working. The error in the logs...
Andrew Fletcher
•
On an Ubuntu 20.02 system with Nginx, you can utilize the following commands to...
Andrew Fletcher
•
Cleaning out or clearing data in Solr can be done in a few different ways,...
Andrew Fletcher
•
In an environment that is running
Ubuntu 20.02
Nginx
Solr
The default Nginx conf is located /etc/nginx/sites-available/ and contains something similar to:
server {
listen 80;
listen [::]:80;
server_name uat.oursite.com;
return 301 http://uat.oursite.com$request_uri;
}
server {
listen 80;
listen [::]:80;
listen 443 ssl;
ssl_certificate /etc/ssl/certs/Bundle.crt;
ssl_certificate_key /etc/ssl/private/MultidomainWildcard.key;
# Security...
Andrew Fletcher
•
A summary of Node package commands
Short cut commands
npm install...
Andrew Fletcher
•
Something I haven't had to do in a while is to change the name of a Git branch...
Andrew Fletcher
•
Post a NetSkope update, composer would fail when running any command that...
Andrew Fletcher
•
I need to generate a patch and then apply automatically to my Drupal...