Pydio Booster crashes on upload

iis
php71
windows-server

#1

Hello all,

I am trying to get Pydio Booster running on my machine, but I have some issues which I am not able to solve.

Here is my config:

{
    "scheduler": {
        "host": "http://cloud.xn--pltzlich-im-nirgendwo-iec.de",
        "tokenP": "NQtN6i8OPefXXXXXXXX",
        "tokenS": "wzK6Pu2w0EYXXXXXXXX",
        "minutes": 2
    },
    "nsq": {
        "host": "0.0.0.0",
        "port": 4150
    },
    "caddyFilePath": ".\/pydiocaddy.txt"
}

pydiocaddy.txt

http://cloud.xn--pltzlich-im-nirgendwo-iec.de:8090 {
    pydiows /ws     {
        pre {
            if {>Cookie} has "AjaXplorer"
            type request
            url http://cloud.xn--pltzlich-im-nirgendwo-iec.de?get_action=keystore_generate_auth_token&device=websocket
            cookie AjaXplorer
            out token
        }
        pre {
            type request
            url http://cloud.xn--pltzlich-im-nirgendwo-iec.de/api/pydio/ws_authenticate?key=NQtN6i8ROPefXXXXXXXu:wzK6PMNI8ruXXXXXXX
            query auth_hash
            query auth_token
            out user
        }
    }
    header /io {
        Access-Control-Allow-Origin http://cloud.xn--pltzlich-im-nirgendwo-iec.de
        Access-Control-Request-Headers *
        Access-Control-Allow-Methods POST
        Access-Control-Allow-Headers Range
        Access-Control-Allow-Credentials true
    }
    pydioupload /io     {
        pre {
            type node
            out node
        }
        pre {
            if {query} has "minisite_session"
            type request
            url http://cloud.xn--pltzlich-im-nirgendwo-iec.de?get_action=keystore_generate_auth_token&device=upload
            query minisite_session
            cookie AjaXplorer_Shared
            out token
        }
        pre {
            if {query} not_has "minisite_session"
            if {>Cookie} has "AjaXplorer="
            type request
            url http://cloud.xn--pltzlich-im-nirgendwo-iec.de?get_action=keystore_generate_auth_token&device=upload
            cookie AjaXplorer
            out token
        }
        pre {
            type request
            url http://cloud.xn--pltzlich-im-nirgendwo-iec.de/api/{repo}/upload/put/{nodedir}?xhr_uploader=true
            header X-File-Direct-Upload request-options
            header X-Pydio-Admin-Auth NQtN6i8ROPefGXXXXXX:wzK6PMNI8ru2w0EYbXXXXXX
            header X-File-Name {nodename}
            query *
            out options
        }
        post {
            type request
            url http://cloud.xn--pltzlich-im-nirgendwo-iec.de/api/{repo}/upload/put/{nodedir}?xhr_uploader=true
            header X-File-Direct-Upload upload-finished
            header X-Pydio-Admin-Auth NQtN6i8ROPeXXXXXXX:wzK6PMNI8ru2w0EXXXXXX
            header X-File-Name {nodename}
            query auth_hash
            query auth_token
            out body
        }
    }
    pydioadmin /admin
    basicauth /admin NQtN6i8ROPefGsXXXXXX wzK6PMNI8ruXXXXXX
}

Config in Pydio:

The first issue is, when I upload a file, pydio booster is crashing:

The following content is logged when I try to upload a file

C:\inetpub\wwwroot\pydiobooster>pydio.exe -conf C:\inetpub\wwwroot\pydiobooster\pydioconf.txt
[DEV NOTICE] Registered directive 'pydioadmin' at end of list
[DEV NOTICE] Registered directive 'pydiodownload' at end of list
[DEV NOTICE] Registered directive 'pydioupload' at end of list
[DEV NOTICE] Registered directive 'pydiows' at end of list
2018/02/04 15:44:48 Set Level  9
INFO 2018/02/04 15:44:48.490978 Set log level to 9
Activating privacy features... done.
http://cloud.xn--pltzlich-im-nirgendwo-iec.de:8090
2018/02/04 15:44:48 http://cloud.xn--pltzlich-im-nirgendwo-iec.de:8090
INFO 2018/02/04 15:44:48.517996 [nsqd] nsqd v1.0.0-compat (built w/go1.8.1)
INFO 2018/02/04 15:44:48.520596 [nsqd] ID: 799
INFO 2018/02/04 15:44:48.523983 [com] Starting NSQ on port 4150 and 4151
INFO 2018/02/04 15:44:48.533002 [nsqd] TCP: listening on [::]:4150
INFO 2018/02/04 15:44:48.535982 [nsqd] HTTP: listening on [::]:4151
INFO 2018/02/04 15:45:12.340993 [pydiomiddleware] START
INFO 2018/02/04 15:45:12.344041 [pydiomiddleware] END - took %s 0s
ERROR 2018/02/04 15:45:12.346000 [pydiomiddleware] Not a match
INFO 2018/02/04 15:45:12.348983 [pydiomiddleware] START
INFO 2018/02/04 15:45:12.350980 [pydiomiddleware] Request Job Start {http  <nil> cloud.xn--pltzlich-im-nirgendwo-iec.de   false device=upload&get_action=keystore_generate_auth_token } [] map[device:[upload] get_action:[keystore_generate_auth_token]] {token body}
INFO 2018/02/04 15:45:12.352361 [pydiomiddleware] Node job: retrieved {1 / conflict.2017-06-30 17-01-05_WP_20150814_23_20_36_Pro__highres.jpg {0 false false false    { } {     false    }}} from /io/1//conflict.2017-06-30 17-01-05_WP_20150814_23_20_36_Pro__highres.jpg
INFO 2018/02/04 15:45:12.357252 [pydiomiddleware] END - took %s 6.2719ms
INFO 2018/02/04 15:45:12.359457 [pydiomiddleware] START
INFO 2018/02/04 15:45:12.361308 [pydiomiddleware] Request Job Start {http  <nil> cloud.xn--pltzlich-im-nirgendwo-iec.de /api/{repo}/upload/put/{nodedir} /api/{repo}/upload/put/{nodedir} false auto_rename=true&xhr_uploader=true } [[X-File-Direct-Upload request-options] [X-Pydio-Admin-Auth NQtN6i8ROPe
fGsXXXXXXu:wzK6PMNI8ru2w0EXXXXXX] [X-File-Name {nodename}]] map[auto_rename:[true] xhr_uploader:[true]] {options body}
ERROR 2018/02/04 15:45:12.366992 [pydiomiddleware] Could not decode to auth
INFO 2018/02/04 15:45:13.279991 [pydiomiddleware] END - took %s 918.6826ms
INFO 2018/02/04 15:45:13.294986 [pydioupload] REQ START
INFO 2018/02/04 15:45:14.019012 [pydioupload] REQ END took %s 723.0268ms
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x8 pc=0x9a0b01]

goroutine 1860 [running]:
github.com/pydio/pydio-booster/io/localio.Open(0x0, 0x41, 0x4, 0x0, 0xbf04e0)
        /home/pydio/tcAgent/work/f9990cede0540743/src/github.com/pydio/pydio-booster/io/localio/localio.go:45 +0x41
github.com/pydio/pydio-booster/server/middleware/pydioupload.handle.func1(0x0)
        /home/pydio/tcAgent/work/f9990cede0540743/src/github.com/pydio/pydio-booster/server/middleware/pydioupload/handler.go:210 +0xd22
github.com/pydio/pydio-booster/server/middleware/pydioupload.errHandle.func1(0xc0421f70e0, 0xc0421f93e0)
        /home/pydio/tcAgent/work/f9990cede0540743/src/github.com/pydio/pydio-booster/server/middleware/pydioupload/handler.go:93 +0x2e
created by github.com/pydio/pydio-booster/server/middleware/pydioupload.errHandle
        /home/pydio/tcAgent/work/f9990cede0540743/src/github.com/pydio/pydio-booster/server/middleware/pydioupload/handler.go:93 +0x18f

C:\inetpub\wwwroot\pydiobooster>

After that, PydioBooster is down

Is this a bug, or is there anything wrong with my config?

OS:
Windows Server 2012 R2
PydioBooster Version:
1.2.0.
Pydio Version
8.0.2

Thank you in advance for your help.


#2

Hi,
can you tell me where you got the booster, was it here.


#3

Hi,
yes, this is where I got it from.


#4

Do you have any ideas why it’s not working?


#5

Hi,
i will ask the devs about it.