{"error":"Cannot read property '_csrf' of undefined"}

Bug Reports
  • I need help....

  • @Lingyong-Zhang, check the output of /var/log/redis/redis.log (although your redis log may be in a different location):

    sudo cat /var/log/redis/redis.log
    

    It will likely contain an error message about either maxconnections or vm.overcommit. In the case of the former, lower the max connections in /etc/redis.conf to whatever ulimit -n gives you. In the case of the latter, you have to allow overcommitting of memory:

    sudo su && echo 1 > /proc/sys/vm/overcommit_memory
    

    See the FAQ for more info.

    Last, make sure you restart Redis after you make both of these changes:

    sudo service redis restart
    
  • @Guiri Yes, use the redis cost so much memery.
    I checked the log, it says:

    Background saving started by pid 15934
    

    [15934] 20 May 13:35:40.071 * DB saved on disk
    [15934] 20 May 13:35:40.072 * RDB: 0 MB of memory used by copy-on-write
    [11419] 20 May 13:35:40.165 * Background saving terminated with success
    [11419] 20 May 13:40:41.068 * 10 changes in 300 seconds. Saving...
    [11419] 20 May 13:40:41.069 * Background saving started by pid 15935
    [15935] 20 May 13:40:41.079 * DB saved on disk
    [15935] 20 May 13:40:41.080 * RDB: 0 MB of memory used by copy-on-write
    [11419] 20 May 13:40:41.169 * Background saving terminated with success
    [11419] 20 May 13:45:42.038 * 10 changes in 300 seconds. Saving...
    [11419] 20 May 13:45:42.038 * Background saving started by pid 15936
    [15936] 20 May 13:45:42.046 * DB saved on disk
    [15936] 20 May 13:45:42.047 * RDB: 0 MB of memory used by copy-on-write
    [11419] 20 May 13:45:42.138 * Background saving terminated with success
    [11419] 20 May 19:32:08.030 * 1 changes in 900 seconds. Saving...
    [11419] 20 May 19:32:08.030 * Background saving started by pid 16309
    [16309] 20 May 19:32:08.039 * DB saved on disk
    [16309] 20 May 19:32:08.040 * RDB: 0 MB of memory used by copy-on-write
    [11419] 20 May 19:32:08.131 * Background saving terminated with success
    [11419] 20 May 19:37:09.055 * 10 changes in 300 seconds. Saving...
    [11419] 20 May 19:37:09.055 * Background saving started by pid 16314
    [16314] 20 May 19:37:09.067 * DB saved on disk
    [16314] 20 May 19:37:09.068 * RDB: 0 MB of memory used by copy-on-write
    [11419] 20 May 19:37:09.156 * Background saving terminated with success

  • @Guiri I see, I have solved.
    But I have some problems, I don't know which database I should use.
    mongo or redis ?


Suggested Topics