Can't sign into Github Desktop on arch linux after power outage

Abstract: Resolve GitHub Desktop locked state and sign-in failure on Arch Linux after power outage by clearing corrupted local cache and configuration files.

Created: 2026-09-28 by

Restarting your Arch Linux system after a power outage often leaves Electron-based applications like GitHub Desktop in a locked state. The "Cannot create an item in a locked collection" error occurs because the application’s internal database files remain open or corrupted from the abrupt shutdown. You can resolve this by safely clearing the local cache and configuration data, forcing the app to rebuild its state upon the next launch.

Understanding the Error

GitHub Desktop is built on Electron, which relies heavily on IndexedDB for storing user preferences, repository states, and authentication tokens locally. When a power outage occurs unexpectedly, the operating system may not have enough time to gracefully close these database connections. Consequently, when you attempt to restart the application, it finds the underlying storage files in a "locked" or inconsistent state. This prevents the creation of new items or updates to existing collections, resulting in the specific error message you are seeing. This issue is distinct from hardware failures. While we recommend checking your system health after unexpected reboots, as discussed in Troubleshooting Occurred Disk Power-On Lifetime Errors on Arch Linux PC, this specific software error is almost always related to file locks rather than disk damage. The system itself is likely fine; only the application's local state needs resetting.

Step-by-Step Resolution

To fix this, you must remove the corrupted local data that GitHub Desktop uses. Since the application is currently failing to launch or sign in, you need to do this manually via the terminal. Please follow these steps carefully to ensure you do not delete any important Git repositories stored elsewhere on your system.

1. Close GitHub Desktop Completely

Ensure that GitHub Desktop is not running in the background. Sometimes, even if the window is closed, the process persists. Open your terminal and run the following command to kill any lingering processes:
killall github-desktop
If the command returns no output, the process has been terminated. If it complains about the process not being found, that is also acceptable, as it means the app is already closed.

2. Remove the Application State

The core of the problem lies in the XDG data directory where Electron apps store their persistent data. On Arch Linux, this is typically located under ~/.local/share. You need to rename or remove the GitHub Desktop folder here. This action will clear the lock and force the application to create a fresh database structure. Run the following commands in your terminal:
mv ~/.local/share/GitHub\ Desktop ~/.local/share/GitHub\ Desktop.bak
Using mv (move) instead of rm (remove) is a safety precaution. It creates a backup named .bak. If something goes wrong or you need to recover old settings later, the original data is still there. If you are confident in the fix, you can delete it entirely with rm -rf ~/.local/share/GitHub\ Desktop, but moving it is safer.

3. Clear the Configuration Cache

In addition to the shared data, Electron apps often store configuration flags and caches in the XDG config directory. While less likely to cause the "locked collection" error, clearing this ensures a clean slate. Run the following command:
rm -rf ~/.config/GitHub\ Desktop
Again, this removes all local settings, including your remembered login status and UI preferences. You will need to log in again after the fix.

4. Restart GitHub Desktop

Now that the corrupted files have been removed, launch GitHub Desktop normally from your application menu or by typing github-desktop in the terminal. The application should start up as if it were installed for the first time. You will be prompted to sign in to your GitHub account again. Once authenticated, the app will recreate the necessary database files with proper permissions and no locks.

Preventing Future Occurrences

While this fix resolves the immediate issue, repeated power outages can lead to more severe system corruption. To mitigate risks, consider using an Uninterruptible Power Supply (UPS) for your desktop or laptop. Additionally, ensure your Arch Linux system is fully updated, as kernel updates often include improvements to filesystem handling during abrupt shutdowns. If you experience other graphical interface issues after a reboot, such as display problems, you might find relevant guidance in Grub not shown on external screen after installing Arch Linux on old laptop, although this specific issue is unrelated to network or application state. For general system stability, always prioritize safe shutdown procedures over hard resets.

Alternative Approaches

If the above steps do not resolve the issue, the problem may lie deeper within the Snap or Flatpak packages if you installed GitHub Desktop via those methods. Arch Linux users typically install via official repositories or AUR, but if you used a universal package format, the path to the data directory will differ. For Snap installations, the data is located at ~/snap/github-desktop/common/. For Flatpak, it is at ~/.var/app/com.github.GitHubDesktop/. Removing the corresponding directories in these paths follows the same logic as the native installation method described above. However, native Arch packages are recommended for better integration with system libraries and fewer permission quirks.

When to Worry About Hardware

It is important to distinguish between software state errors and actual hardware failure. If you see I/O errors in your system logs (dmesg) or if other applications fail to write to disk, the power outage may have damaged your storage drive. In such cases, running a filesystem check with fsck is necessary before attempting to fix individual applications. However, if only GitHub Desktop fails while other apps work normally, the solution is strictly confined to the application's local cache, as detailed in this guide.

Frequently Asked Questions

Will deleting these folders delete my git repositories?

No, deleting the GitHub Desktop cache and configuration does not affect your local git repositories. Your code remains safe in the directories where you cloned them. This process only removes the application's memory of your login state and UI preferences.

Why did this happen after a power outage specifically?

Power outages prevent graceful shutdown sequences. Applications like GitHub Desktop keep database files open in memory. When power is cut, these files are left in a "locked" state by the operating system, causing conflicts when the app tries to reopen them immediately.

Can I recover my previous settings?

If you moved the folder to .bak as suggested, you can inspect the backup for specific configuration files you wish to restore. However, most settings are simple defaults, so starting fresh is usually faster and cleaner than trying to merge partial configs.

What if the error persists after clearing the cache?

If the error continues, try reinstalling GitHub Desktop completely. Use pacman -Rns github-desktop followed by pacman -S github-desktop to ensure all binary components are refreshed alongside the cleared data.

Does this affect GitHub CLI (gh)?

No, the GitHub CLI stores its credentials separately in ~/.config/gh/ or uses the system keyring. Fixing GitHub Desktop does not impact the command-line tool's authentication status.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More