浏览代码

- Set LDAP_BACKGROUND_SYNC_INTERVAL='' (empty string) so it works
and [does not crash](https://github.com/wekan/wekan/issues/2354#issuecomment-515305722).

Thanks to benh57 and xet7 !

Closes #2354

Lauri Ojansivu 5 年之前
父节点
当前提交
fff144a827
共有 8 个文件被更改,包括 26 次插入15 次删除
  1. 1 1
      Dockerfile
  2. 4 2
      docker-compose.yml
  3. 4 2
      releases/virtualbox/start-wekan.sh
  4. 1 1
      snap-src/bin/config
  5. 4 2
      snap-src/bin/wekan-help
  6. 4 2
      start-wekan.bat
  7. 4 2
      start-wekan.sh
  8. 4 3
      torodb-postgresql/docker-compose.yml

+ 1 - 1
Dockerfile

@@ -63,7 +63,7 @@ ENV BUILD_DEPS="apt-utils bsdtar gnupg gosu wget curl bzip2 g++ build-essential
     LDAP_AUTHENTIFICATION_PASSWORD="" \
     LDAP_LOG_ENABLED=false \
     LDAP_BACKGROUND_SYNC=false \
-    LDAP_BACKGROUND_SYNC_INTERVAL=100 \
+    LDAP_BACKGROUND_SYNC_INTERVAL="" \
     LDAP_BACKGROUND_SYNC_KEEP_EXISTANT_USERS_UPDATED=false \
     LDAP_BACKGROUND_SYNC_IMPORT_NEW_USERS=false \
     LDAP_ENCRYPTION=false \

+ 4 - 2
docker-compose.yml

@@ -429,8 +429,10 @@ services:
       # If the sync of the users should be done in the background
       #- LDAP_BACKGROUND_SYNC=false
       #
-      # At which interval does the background task sync in milliseconds
-      #- LDAP_BACKGROUND_SYNC_INTERVAL=100
+      # At which interval does the background task sync in milliseconds.
+      # Leave this unset, so it uses default, and does not crash.
+      # https://github.com/wekan/wekan/issues/2354#issuecomment-515305722
+      - LDAP_BACKGROUND_SYNC_INTERVAL=''
       #
       #- LDAP_BACKGROUND_SYNC_KEEP_EXISTANT_USERS_UPDATED=false
       #

+ 4 - 2
releases/virtualbox/start-wekan.sh

@@ -224,8 +224,10 @@
         # example :  export LDAP_BACKGROUND_SYNC=true
         #export LDAP_BACKGROUND_SYNC=false
         # LDAP_BACKGROUND_SYNC_INTERVAL : At which interval does the background task sync in milliseconds
-        # example :  export LDAP_BACKGROUND_SYNC_INTERVAL=12345
-        #export LDAP_BACKGROUND_SYNC_INTERVAL=100
+        # At which interval does the background task sync in milliseconds.
+        # Leave this unset, so it uses default, and does not crash.
+        # https://github.com/wekan/wekan/issues/2354#issuecomment-515305722
+        export LDAP_BACKGROUND_SYNC_INTERVAL=''
         # LDAP_BACKGROUND_SYNC_KEEP_EXISTANT_USERS_UPDATED :
         # example :  export LDAP_BACKGROUND_SYNC_KEEP_EXISTANT_USERS_UPDATED=true
         #export LDAP_BACKGROUND_SYNC_KEEP_EXISTANT_USERS_UPDATED=false

+ 1 - 1
snap-src/bin/config

@@ -267,7 +267,7 @@ DEFAULT_LDAP_BACKGROUND_SYNC="false"
 KEY_LDAP_BACKGROUND_SYNC="ldap-background-sync"
 
 DESCRIPTION_LDAP_BACKGROUND_SYNC_INTERVAL="At which interval does the background task sync in milliseconds"
-DEFAULT_LDAP_BACKGROUND_SYNC_INTERVAL="100"
+DEFAULT_LDAP_BACKGROUND_SYNC_INTERVAL=""
 KEY_LDAP_BACKGROUND_SYNC_INTERVAL="ldap-background-sync-interval"
 
 DESCRIPTION_LDAP_BACKGROUND_SYNC_KEEP_EXISTANT_USERS_UPDATED=""

+ 4 - 2
snap-src/bin/wekan-help

@@ -280,8 +280,10 @@ echo -e "If the sync of the users should be done in the background:"
 echo -e "\t$ snap set $SNAP_NAME ldap-background-sync='true'"
 echo -e "\n"
 echo -e "Ldap Background Sync Interval."
-echo -e "At which interval does the background task sync in milliseconds:"
-echo -e "\t$ snap set $SNAP_NAME ldap-background-sync-interval='12345'"
+echo -e "At which interval does the background task sync in milliseconds."
+echo -e "Leave this unset, so it uses default, and does not crash."
+echo -e "https://github.com/wekan/wekan/issues/2354#issuecomment-515305722"
+echo -e "\t$ snap set $SNAP_NAME ldap-background-sync-interval=''"
 echo -e "\n"
 echo -e "Ldap Background Sync Keep Existant Users Updated."
 echo -e "\t$ snap set $SNAP_NAME ldap-background-sync-keep-existant-users-updated='true'"

+ 4 - 2
start-wekan.bat

@@ -216,8 +216,10 @@ REM # example : LDAP_BACKGROUND_SYNC=true
 REM SET LDAP_BACKGROUND_SYNC=false
 
 REM # LDAP_BACKGROUND_SYNC_INTERVAL : At which interval does the background task sync in milliseconds
-REM # example : LDAP_BACKGROUND_SYNC_INTERVAL=12345
-REM SET LDAP_BACKGROUND_SYNC_INTERVAL=100
+REM # At which interval does the background task sync in milliseconds.
+REM # Leave this unset, so it uses default, and does not crash.
+REM # https://github.com/wekan/wekan/issues/2354#issuecomment-515305722
+SET LDAP_BACKGROUND_SYNC_INTERVAL=''
 
 REM # LDAP_BACKGROUND_SYNC_KEEP_EXISTANT_USERS_UPDATED :
 REM # example : LDAP_BACKGROUND_SYNC_KEEP_EXISTANT_USERS_UPDATED=true

+ 4 - 2
start-wekan.sh

@@ -226,8 +226,10 @@
       # example :  export LDAP_BACKGROUND_SYNC=true
       #export LDAP_BACKGROUND_SYNC=false
       # LDAP_BACKGROUND_SYNC_INTERVAL : At which interval does the background task sync in milliseconds
-      # example :  export LDAP_BACKGROUND_SYNC_INTERVAL=12345
-      #export LDAP_BACKGROUND_SYNC_INTERVAL=100
+      # At which interval does the background task sync in milliseconds.
+      # Leave this unset, so it uses default, and does not crash.
+      # https://github.com/wekan/wekan/issues/2354#issuecomment-515305722
+      export LDAP_BACKGROUND_SYNC_INTERVAL=''
       # LDAP_BACKGROUND_SYNC_KEEP_EXISTANT_USERS_UPDATED :
       # example :  export LDAP_BACKGROUND_SYNC_KEEP_EXISTANT_USERS_UPDATED=true
       #export LDAP_BACKGROUND_SYNC_KEEP_EXISTANT_USERS_UPDATED=false

+ 4 - 3
torodb-postgresql/docker-compose.yml

@@ -132,7 +132,7 @@ services:
         ' 1>/dev/null 2>&1 &
         mongod --replSet rs1
   wekan:
-    image: quay.io/wekan/wekan
+    image: wekanteam/wekan:latestdevel
     container_name: wekan-app
     restart: always
     networks:
@@ -337,8 +337,9 @@ services:
       #- LDAP_BACKGROUND_SYNC=false
       #
       # LDAP_BACKGROUND_SYNC_INTERVAL : At which interval does the background task sync in milliseconds
-      # example : LDAP_BACKGROUND_SYNC_INTERVAL=12345
-      #- LDAP_BACKGROUND_SYNC_INTERVAL=100
+      # Leave this unset, so it uses default, and does not crash.
+      # https://github.com/wekan/wekan/issues/2354#issuecomment-515305722
+      - LDAP_BACKGROUND_SYNC_INTERVAL=''
       #
       # LDAP_BACKGROUND_SYNC_KEEP_EXISTANT_USERS_UPDATED :
       # example : LDAP_BACKGROUND_SYNC_KEEP_EXISTANT_USERS_UPDATED=true