Skip to content

Troubleshooting

LE MEILLAT edited this page Jul 27, 2024 · 5 revisions

Common Issues

List of common issues encountered by users and their solutions.
Includes details on known issues with the first server start and steps to resolve them.

FAQ

Frequently asked questions about the SctgDesk Server Program, with answers.

  1. Q: How can I change a lost admin password? A: Follow these steps to change a lost admin (or other user) password:

    1. Open a terminal and generate a new bcrypt password:

      # Replace 'monMotDePasse' with your desired password
      htpasswd -nbB -C 12 user monMotDePasse | awk -F: '{print $2}'

      Example output:

      $2y$12$5KIhlFDtn25Yn1TPymdOSu4t9.4WEhIBtHekQ0KDKTCGZ28phJ/cC
      
    2. Use sqlite3 to update the password in the database:

      sqlite3 db_v2.sqlite3
      UPDATE user SET password="$2y$12$5KIhlFDtn25Yn1TPymdOSu4t9.4WEhIBtHekQ0KDKTCGZ28phJ/cC" WHERE name="admin";
      .quit

      Note: Replace "admin" with the appropriate username if changing a non-admin user's password.

  2. Q: Why am I experiencing frequent "Reset by peer" errors when trying to connect to remote devices? A: This issue may be caused by the UDP receive buffer size being set too low in your server's Linux kernel configuration. This can particularly occur with certain server provider system images.

    To fix this (credit to MrChenhtlss) :

    1. Edit the /etc/sysctl.conf file on your server.
    2. Look for the line containing net.core.rmem_max=.
    3. Either delete this line or comment it out (by adding a # at the beginning of the line).
    4. Save the file and restart your server.

    After making these changes, the "Reset by peer" errors should occur less frequently or stop altogether.

    Note: This issue is often related to server provider system images and their default configurations. If you're using a VPS or cloud server, check with your provider about their default kernel settings and any recommendations they may have for optimizing network performance.

Clone this wiki locally