Ankündigung

Einklappen
Keine Ankündigung bisher.

Dropbox AddOn Frage

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    #16
    Hmm,

    ich habe die Kommandos natürlich brav unter start.bat ausgeführt, jedoch dann zum loggen die start_debug.bat genommen. ;-)

    Also nochmal von vorne und im log stand nun
    Code:
    21:37:58.807 DEBUG o.o.i.d.i.DropboxActivator[:50]- Dropbox IO Bundle has been started.
    21:37:58.822 ERROR OSGi[:98]- CronExpression ''0 0/5 * * * ?'' is invalid,.
    java.lang.RuntimeException: CronExpression ''0 0/5 * * * ?'' is invalid,.
     at org.quartz.CronScheduleBuilder.cronSchedule(CronScheduleBuilder.java:105)
     at org.openhab.io.dropbox.internal.DropboxSynchronizerImpl.schedule(DropboxSynchronizerImpl.java:706)
     at org.openhab.io.dropbox.internal.DropboxSynchronizerImpl.scheduleJobs(DropboxSynchronizerImpl.java:677)
     at org.openhab.io.dropbox.internal.DropboxSynchronizerImpl.activate(DropboxSynchronizerImpl.java:173)
     at org.openhab.io.dropbox.internal.DropboxSynchronizerImpl.updated(DropboxSynchronizerImpl.java:799)
     at org.eclipse.equinox.internal.cm.ManagedServiceTracker$1.run(ManagedServiceTracker.java:183)
     at org.eclipse.equinox.internal.cm.SerializedTaskQueue$1.run(SerializedTaskQueue.java:36)
    Caused by: java.text.ParseException: Unexpected character: '
     at org.quartz.CronExpression.storeExpressionVals(CronExpression.java:685)
     at org.quartz.CronExpression.buildExpression(CronExpression.java:463)
     at org.quartz.CronExpression.<init>(CronExpression.java:276)
     at org.quartz.CronScheduleBuilder.cronSchedule(CronScheduleBuilder.java:102)
     ... 6 common frames omitted
    Die Zeile in der cfg war
    Code:
    [SIZE=2][LEFT]dropbox:uploadInterval='0 0/5 * * * ?'[/LEFT]
    [/SIZE]
    Ist nun
    Code:
    [SIZE=2][LEFT]#dropbox:uploadInterval='0 0/5 * * * ?'[/LEFT]
    [/SIZE]
    Mal sehen, was passiert.

    Kommentar


      #17
      Jetzt fällt auch der Groschen, warum immer 5 Min ;-)

      Code:
      21:41:57.436 DEBUG o.o.i.d.i.DropboxActivator[:50]- Dropbox IO Bundle has been started.
      21:41:57.468 DEBUG o.o.i.d.i.DropboxSynchronizerImpl[:710]- Scheduled synchronization job (direction=Upload) with cron expression '0 0/5 * * * ?'

      Kommentar


        #18
        ah, meinen Hinweis von oben


        Zitat von teichsta Beitrag anzeigen
        Im Grund verwendest Du lediglich die Standardeinstellungen brauchst also keine Änderungen vorzunehmen. Nimmst Du die daher zur Sicherheit alle mal raus!
        hast Du demnach nicht befolgt?!
        Visualisierung, Rule/Logic-Engine, Integrationsplattform mit openhab (Supportforum)

        Kommentar


          #19
          Zitat von teichsta Beitrag anzeigen
          ah, meinen Hinweis von oben


          hast Du demnach nicht befolgt?!
          Doch, hatte ich!

          Aber: Nachdem das zunächst nicht funktioniert hatte, habe ich mit den Einstellungen wieder getestet.

          Was ich bis gerade eben nicht wußte war: Änderungen an der cfg werden nicht dynamisch eingelesen, sonder bedürfen eines kompletten Neustarts. :-/

          Und siehe da:
          Code:
          21:45:00.186 DEBUG o.o.i.d.i.DropboxSynchronizerImpl[:386]- Started synchronization from local to Dropbox ...
          21:45:02.265 DEBUG o.o.i.d.i.DropboxSynchronizerImpl[:457]- There are no deltas to upload into Dropbox ...
          Aber:
          Code:
          [SIZE=2]
          [LEFT]dropbox:initialize=true
          
          dropbox:syncmode=LOCAL_TO_DROPBOX[/LEFT]
          [/SIZE]
          sind noch gesetzt. Hätte da nicht ein initiales Kopieren erfolgen müssen??

          VG
          Joerg

          Kommentar


            #20
            Zitat von JoergA Beitrag anzeigen
            Was ich bis gerade eben nicht wußte war: Änderungen an der cfg werden nicht dynamisch eingelesen, sonder bedürfen eines kompletten Neustarts. :-/
            Unter Linux nicht ;-) - ist ein Bug (gibt es auch schon ein Issue für).

            Zitat von JoergA Beitrag anzeigen
            sind noch gesetzt. Hätte da nicht ein initiales Kopieren erfolgen müssen??
            hätte ... ich schaue da mal nach!
            Visualisierung, Rule/Logic-Engine, Integrationsplattform mit openhab (Supportforum)

            Kommentar


              #21
              Ich habe die beiden Parameter

              Code:
              [LEFT]#dropbox:initialize=true
              
              #dropbox:syncmode=LOCAL_TO_DROPBOX[/LEFT]
              Jetzt auch noch einmal deaktiviert, somit hätten diese ja eigentlich den gleichen Wert da der von mir gewählte auch der Default ist.

              Aber: Nun geht wieder gar nichts mehr

              Code:
              22:00:30.004 DEBUG o.o.m.r.i.e.ExecuteRuleJob[:73]- Executing scheduled rule 'Calc Times'
              22:00:30.144 DEBUG o.o.i.d.i.DropboxActivator[:50]- Dropbox IO Bundle has been started.
              Ich werde nun noch einmal diese beiden Werte nach einander aktivieren.

              Gruß
              Joerg

              Kommentar


                #22
                Zitat von JoergA Beitrag anzeigen
                Jetzt auch noch einmal deaktiviert, somit hätten diese ja eigentlich den gleichen Wert da der von mir gewählte auch der Default ist.
                wenn die Doku richtig gewesen wäre, ja

                Allerdings ist der default von 'initialize' tatsächlich 'false' und der default von 'direction' tatsächlich 'BIDIRECTIONAL' :-/ Habe das dann mal direkt geändert.

                Danke!
                Visualisierung, Rule/Logic-Engine, Integrationsplattform mit openhab (Supportforum)

                Kommentar


                  #23
                  Zitat von teichsta Beitrag anzeigen
                  wenn die Doku richtig gewesen wäre, ja

                  Allerdings ist der default von 'initialize' tatsächlich 'false' und der default von 'direction' tatsächlich 'BIDIRECTIONAL' :-/ Habe das dann mal direkt geändert.

                  Danke!
                  Ahh

                  Daher habe ich nun bei
                  wieder

                  Code:
                  22:11:38.681 DEBUG o.o.i.d.i.DropboxActivator[:50]- Dropbox IO Bundle has been started.
                  22:11:44.759 DEBUG o.o.i.d.i.DropboxSynchronizerImpl[:710]- Scheduled synchronization job (direction=Upload) with cron expression '0 0/5 * * * ?'
                  22:15:00.212 DEBUG o.o.i.d.i.DropboxSynchronizerImpl[:386]- Started synchronization from local to Dropbox ...
                  22:15:02.040 DEBUG o.o.i.d.i.DropboxSynchronizerImpl[:457]- There are no deltas to upload into Dropbox ...


                  Wahrscheinlich muß ich dann auch die Files angeben, die synchronisiert werden müssen?? Auch für das init??



                  Zitat von teichsta Beitrag anzeigen
                  Danke!
                  Das gilt wohl eher anders herum!!!

                  Kommentar


                    #24
                    solltest Du in Deinem openHAB-Verzeichnis eine Datei "deltacursor.dbox" finden, lösche diese bitte mal (Neustart ist nicht erforderlich).
                    Visualisierung, Rule/Logic-Engine, Integrationsplattform mit openhab (Supportforum)

                    Kommentar


                      #25
                      Zitat von teichsta Beitrag anzeigen
                      solltest Du in Deinem openHAB-Verzeichnis eine Datei "deltacursor.dbox" finden, lösche diese bitte mal (Neustart ist nicht erforderlich).
                      Ich habe nur eine "dropbox-entries.dbox" und die "authfile.dbox"

                      Wie hast Du denn bitte die Zeile
                      Code:
                      [SIZE=2][LEFT]# defines a comma separated list of regular expressions which matches the 
                      # filenames to upload to [U]Dropbox[/U] (optional, defaults to '/configurations/.*,
                      # /logs/.*, /etc/.*')
                      dropbox:uploadfilter='/configurations/.*, /logs/.*, /etc/.*'[/LEFT]
                      [/SIZE]
                      konfiguriert?? Bei mir kommt da ein Fehler

                      Code:
                      22:32:17.060 DEBUG o.o.i.d.i.DropboxActivator[:50]- Dropbox IO Bundle has been started.
                      22:32:17.076 ERROR OSGi[:98]- null
                      java.lang.UnsupportedOperationException: null
                       at java.util.AbstractList.add(Unknown Source)
                       at java.util.AbstractList.add(Unknown Source)
                       at java.util.AbstractCollection.addAll(Unknown Source)
                       at org.openhab.io.dropbox.internal.DropboxSynchronizerImpl.updated(DropboxSynchronizerImpl.java:788)
                       at org.eclipse.equinox.internal.cm.ManagedServiceTracker$1.run(ManagedServiceTracker.java:183)
                       at org.eclipse.equinox.internal.cm.SerializedTaskQueue$1.run(SerializedTaskQueue.java:36)
                      Auch bei
                      Code:
                      [SIZE=2][LEFT]dropbox:uploadfilter=/configurations/.*, /logs/.*, /etc/.*[/LEFT]
                      [/SIZE]

                      Kommentar


                        #26
                        Zitat von JoergA Beitrag anzeigen
                        Ich habe nur eine "dropbox-entries.dbox"
                        dann lösche die bitte mal

                        Zitat von JoergA Beitrag anzeigen
                        Wie hast Du denn bitte die Zeile konfiguriert?
                        gar nicht ...
                        Visualisierung, Rule/Logic-Engine, Integrationsplattform mit openhab (Supportforum)

                        Kommentar


                          #27
                          Datei gelöscht, aber die wurde beim nächsten Synch (wo wieder nix passiert ist) erneut angelegt. Jedoch mit 0 kb Größe.

                          Code:
                          22:55:00.231 DEBUG o.o.i.d.i.DropboxSynchronizerImpl[:386]- Started synchronization from local to Dropbox ...
                          22:55:01.997 DEBUG o.o.i.d.i.DropboxSynchronizerImpl[:457]- There are no deltas to upload into Dropbox ...
                          Ich werde noch

                          Kommentar


                            #28
                            Nur noch mal als Zwischenstand; meine Dropbox Konfiguration

                            Code:
                            [SIZE=2][LEFT]############################# [U]Dropbox[/U] configuration ###################################
                            
                            # Switch to activate/deactivate an initial upload of all matching data (filters
                            # apply) if [U]dropbox[/U]' Delta mechanism requests a local reset (optional, defaults
                            # to 'true')
                            #dropbox:initialize=true
                            
                            # the up- and download interval as [U]Cron[/U]-Expression. See the Quartz-Tutorial
                            # http://quartz-scheduler.org/documentation/quartz-2.x/tutorials/tutorial-lesson-06
                            # for more information on how to use them best (optional, defaults to '0 0/5 * * * ?'
                            # which means every 5 minutes)
                            #dropbox:uploadInterval=0 0/10 * * * ?
                            #dropbox:downloadInterval=
                            
                            # the AppKey, AppSecret combination (optional, defaults to official [U]Dropbox[/U]-[U]App[/U][/LEFT][U]
                            [/U][LEFT]# Key-Secret-Combination)
                            #dropbox:appkey=
                            #dropbox:appsecret=
                            
                            # defines the mode how files are synchronized with [U]dropbox[/U]. Valid SyncModes are
                            # 'DROPBOX_TO_LOCAL', 'LOCAL_TO_DROPBOX' and 'BIDIRECTIONAL' (optional, defaults
                            # to 'LOCAL_TO_DROPBOX')
                            dropbox:syncmode=LOCAL_TO_DROPBOX
                            
                            # the base directory to synchronize with openHAB, configure 'filter' to select
                            # files (optional, defaults to '.')
                            #dropbox:contentdir=
                            
                            # defines a comma separated list of regular expressions which matches the 
                            # filenames to upload to [U]Dropbox[/U] (optional, defaults to '/configurations/.*,
                            # /logs/.*, /etc/.*')
                            #dropbox:uploadfilter=/configurations/.*
                            
                            # defines a comma separated list of regular expressions which matches the 
                            # filenames to download from [U]Dropbox[/U] (optional, defaults to '/configurations/.*')
                            #dropbox:downloadfilter=[/LEFT]
                            [/SIZE]

                            Kommentar


                              #29
                              Code:
                              initialize=true
                              solltest Du einstellen ...
                              Visualisierung, Rule/Logic-Engine, Integrationsplattform mit openhab (Supportforum)

                              Kommentar


                                #30
                                Zitat von teichsta Beitrag anzeigen
                                Code:
                                initialize=true
                                solltest Du einstellen ...
                                Hallo und Guten Morgen Thomas,

                                ich glaube ich hatte dies schon einmal eingestellt, aber nicht dokumentiert und da ich nicht weiß in welchem Zusammenhang habe ich dies nun erneut eingestellt.

                                Somit sind folgende Werte in der cfg konfiguriert:

                                dropbox:initialize=true

                                dropbox:syncmode=LOCAL_TO_DROPBOX

                                Ergebnis
                                Code:
                                10:57:23.533 DEBUG o.o.i.d.i.DropboxActivator[:50]- Dropbox IO Bundle has been started.
                                10:57:29.158 DEBUG o.o.i.d.i.DropboxSynchronizerImpl[:710]- Scheduled synchronization job (direction=Upload) with cron expression '0 0/5 * * * ?'
                                zumindest startet der Dienst schon einmal automatisch

                                Code:
                                11:00:00.143 DEBUG o.o.i.d.i.DropboxSynchronizerImpl[:386]- Started synchronization from local to Dropbox ...
                                11:00:02.783 DEBUG o.o.i.d.i.DropboxSynchronizerImpl[:457]- There are no deltas to upload into Dropbox ...
                                jedoch wird immer noch nichts hochgeladen

                                Viele Grüße
                                Joerg

                                Ergänzung:
                                Ich habe dann auch noch einmal mit diesen Einstellungen die Datei "dropbox-entries.dbox" gelöscht und neu gestartet (Motto des Tages: Reboot tut gut)
                                Jedoch mit dem gleichen Ergebnis.

                                12:00:00.211 DEBUG o.o.i.d.i.DropboxSynchronizerImpl[:386]- Started synchronization from local to Dropbox ...
                                12:00:01.227 DEBUG o.o.i.d.i.DropboxSynchronizerImpl[:457]- There are no deltas to upload into Dropbox ...

                                Kann es evtl. sein, dass ich unter Windows ein Verzeichnis angeben muß?
                                Code:
                                [SIZE=2][LEFT]# the base directory to synchronize with openHAB, configure 'filter' to select
                                # files (optional, defaults to '.')
                                #dropbox:contentdir=[/LEFT]
                                [/SIZE]

                                Kommentar

                                Lädt...
                                X