Skip to content

Instantly share code, notes, and snippets.

@hivokas
Created July 7, 2018 07:48
Show Gist options
  • Select an option

  • Save hivokas/819ac76dba6daaa8e6390c88f30d8591 to your computer and use it in GitHub Desktop.

Select an option

Save hivokas/819ac76dba6daaa8e6390c88f30d8591 to your computer and use it in GitHub Desktop.

Revisions

  1. Ilya Sakovich renamed this gist Jul 7, 2018. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. Ilya Sakovich created this gist Jul 7, 2018.
    17 changes: 17 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    Errors from Laravel logs:
    ```
    MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error.

    ERR Error running script (call to f_1af8e79ebe56ad4d7910f2e116e2555983099baf): @user_script:8: @user_script: 8: -MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error.
    ```

    Errors from Redis logs (`/var/log/redis/redis-server.log`):
    ```
    * 1 changes in 900 seconds. Saving...
    # Can't save in background: fork: Cannot allocate memory
    ```

    Fix:
    ```
    sudo sysctl vm.overcommit_memory=1
    ```