Troubleshooting Guide

This guide covers common issues you might encounter when using Kospex and their solutions.

kgit Clone Issues

kgit failed to clone repository

If kgit clone fails, here are the most common causes and solutions:

Authentication Issues

Network and SSL Issues

Private Certificate Authority (CA) Issues

Option 3: Git Credential Manager, Private CAs and CURL failures Git Credntial Manager can call bitbucket or git servers to detect the server type When it can’t find it, it default to lauching the UI for the credentials

If Curl doesn’t have a CA bundle set, it will error, even if you’ve configured your Git SSL certificates The following allows you to use the CA bundle for curl to stop erroring.

  # Environment variable for CURL
  #
  export CURL_CA_BUNDLE=/path/to/your/ca-bundle.crt

Option 4: Add CA Certificate to System Store

  # macOS - Add to system keychain
  sudo security add-trusted-cert -d -r trustRoot -k /System/Library/Keychains/SystemRootCertificates.keychain /path/to/your/private-ca.crt

  # Or add to login keychain
  security add-trusted-cert -d -r trustRoot -k ~/Library/Keychains/login.keychain /path/to/your/private-ca.crt

  # Linux (Ubuntu/Debian)
  sudo cp /path/to/your/private-ca.crt /usr/local/share/ca-certificates/
  sudo update-ca-certificates

  # Linux (RHEL/CentOS)
  sudo cp /path/to/your/private-ca.crt /etc/pki/ca-trust/source/anchors/
  sudo update-ca-trust

Option 4: Repository-Specific CA Configuration

  # Configure CA certificate for specific repository URL
  git config --global http."https://your-git-server.company.com/".sslCAInfo /path/to/your/private-ca.crt

  # Or disable SSL verification for specific host (less secure)
  git config --global http."https://your-git-server.company.com/".sslVerify false

Temporary Workaround (Not Recommended for Production)

  # Disable SSL verification globally (INSECURE - use only for testing)
  git config --global http.sslVerify false

  # Re-enable SSL verification after fixing CA issues
  git config --global http.sslVerify true

Verifying CA Certificate Installation

  # Test SSL connection to your git server
  openssl s_client -connect your-git-server.company.com:443 -servername your-git-server.company.com

  # Check current Git SSL configuration
  git config --list | grep ssl

  # Test clone with verbose output
  GIT_CURL_VERBOSE=1 git clone https://your-git-server.company.com/repo.git

Directory Permission Issues

Invalid Repository URL

Kospex Common Issues

Database Issues

Database Schema Outdated

Database Permission Errors

Sync Issues

Repository Sync Failures

scc Binary Not Found

Authentication and Rate Limiting

GitHub Rate Limits

Bitbucket Authentication

Web Interface Issues

Web Server Won’t Start

Port Already in Use

Missing Static Assets

Environment and Setup Issues

Directory Structure Problems

KOSPEX_CODE Directory Issues

Logging Issues

No Log Output

Log Directory Permission Denied

Getting Help

If you continue to experience issues:

  1. Check logs: Always check ~/kospex/logs/ for detailed error information
  2. Run with debug: Use --debug flag for verbose output
  3. Validate setup: Run kospex init --validate to check your configuration
  4. Test components: Use individual test commands like kgit status or kospex system-status
  5. Check environment: Verify environment variables and directory permissions

For additional support, check the GitHub Issues or create a new issue with: