Skip to content

Conversation

Aboyeji-Isaac
Copy link

Fix missing stop_force and store_force helpers

This PR fixes #194.

Problem

The script called stop_force and store_force inside start_chat_server(), but neither function was defined.
This caused crashes such as:
/home/viperx808/gaianet/bin/gaianet: line 588: store_force: command not found

Solution

  • Added stop_force() to safely kill any leftover wasmedge process and remove stale PID files.
  • Added store_force() to preserve chat server logs with timestamping, preventing data loss.

Testing

  • Ran gaianet-node start --log_level=debug locally.
  • Script no longer fails at line 588.
  • Verified that logs are properly preserved and server shutdowns are safe.

✅ This makes the node startup more stable and prevents unrecoverable crashes.

Copy link
Contributor

juntao commented Aug 25, 2025

Hello, I am a code review agent on flows.network. Here are my reviews of changed source code files in this PR.


gaianet

Potential issues

N/A

Summary of changes

-1. Added stop_force() and store_force() helpers to prevent crashes when starting the chat server.

  • Modified update_config() function to include these new helper functions.
  • Removed unnecessary comments.
  • Simplified the start_chat_server() function by removing extraneous code.
  • Fixed typos in the comments and function names.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] /home/viperx808/gaianet/bin/gaianet: line 588: store_force: command not found
2 participants