Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build seems break #27

Open
PierreBrisorgueil opened this issue Aug 31, 2022 · 0 comments
Open

build seems break #27

PierreBrisorgueil opened this issue Aug 31, 2022 · 0 comments

Comments

@PierreBrisorgueil
Copy link

PierreBrisorgueil commented Aug 31, 2022

(on an intel mac)

1. Docker Hub => OK

docker run -d -p 8080:8080 montferret/worker

get http://localhost:8080/info

{
"ip": "xxxx",
"version": {
"worker": "1.18.0",
"chrome": {
"browser": "HeadlessChrome/99.0.4844.0",
"protocol": "1.3",
"v8": "9.9.115",
"webkit": "537.36 (@007241ce2e6c8e5a7b306cc36c730cd07cd38825)"
},
"ferret": "0.16.6"
}
}

post http://localhost:8080

{
    "text": "WAIT(RAND(5000,0)) LET doc = DOCUMENT('https://news.ycombinator.com/', {driver: 'cdp',viewport: {width: 1920,height: 1080}}) WAIT_ELEMENT(doc, '.titlelink', 5000) LET elements = (FOR el IN ELEMENTS(doc, '.title .titlelink')RETURN {'article': {'title': TRIM(el.innerText)}}) RETURN elements"
}

Success

2. My build => KO

git clone https://github.com/MontFerret/worker.git  
docker build -t mybuild/worker ./ 
docker run -d -p 8081:8080 mybuild/worker

get http://localhost:8080/info

{
    "ip": "xxxxxx",
    "version": {
        "worker": "1.18.0-1-g6331581",
        "chrome": {
            "browser": "HeadlessChrome/99.0.4844.0",
            "protocol": "1.3",
            "v8": "9.9.115",
            "webkit": "537.36 (@007241ce2e6c8e5a7b306cc36c730cd07cd38825)"
        },
        "ferret": "0.16.6"
    }
}

post http://localhost:8081

{
    "text": "RETURN 0"
}

Success

post http://localhost:8081

{
    "text": "WAIT(RAND(5000,0)) LET doc = DOCUMENT('https://news.ycombinator.com/', {driver: 'cdp',viewport: {width: 1920,height: 1080}}) WAIT_ELEMENT(doc, '.titlelink', 5000) LET elements = (FOR el IN ELEMENTS(doc, '.title .titlelink')RETURN {'article': {'title': TRIM(el.innerText)}}) RETURN elements"
}

Error: socket hang up
Docker Exited


sync.(*Pool).Get(0x10521e0)
	/usr/local/go/src/sync/pool.go:132 +0x25 fp=0xc00033c5e8 sp=0xc00033c5b0 pc=0x46e445
github.com/wI2L/jettison.encodeSortedMap(0x10521a0, {0xc000617000, 0x1, 0x1000}, {{0xbb4028, 0xc000192008}, {0xabcb10, 0x23}, 0x5, 0x80, ...}, ...)
	/go/pkg/mod/github.com/w!i2!l/jettison@v0.7.3/encode.go:415 +0x7a fp=0xc00033c728 sp=0xc00033c5e8 pc=0x7a7f1a
github.com/wI2L/jettison.encodeMap(0xc0008016c8?, {0xc000617000, 0x0, 0x1000}, {{0xbb4028, 0xc000192008}, {0xabcb10, 0x23}, 0x5, 0x80, ...}, ...)
	/go/pkg/mod/github.com/w!i2!l/jettison@v0.7.3/encode.go:364 +0x345 fp=0xc00033c808 sp=0xc00033c728 pc=0x7a7ac5
github.com/wI2L/jettison.newMapInstr.func1(0x10520e0?, {0xc000617000?, 0xc000478900?, 0xc000617000?}, {{0xbb4028, 0xc000192008}, {0xabcb10, 0x23}, 0x5, 0x80, ...})
	/go/pkg/mod/github.com/w!i2!l/jettison@v0.7.3/instruction.go:400 +0x72 fp=0xc00033c898 sp=0xc00033c808 pc=0x7adcb2
github.com/wI2L/jettison.wrapInlineInstr.func1(0xc00021f7d0, {0xc000617000?, 0x7f86c053cd28?, 0x40?}, {{0xbb4028, 0xc000192008}, {0xabcb10, 0x23}, 0x5, 0x80, ...})
	/go/pkg/mod/github.com/w!i2!l/jettison@v0.7.3/instruction.go:406 +0x65 fp=0xc00033c908 sp=0xc00033c898 pc=0x7adec5
github.com/wI2L/jettison.marshalJSON({0x9ae8c0?, 0xc00021f7d0?}, {{0xbb4028, 0xc000192008}, {0xabcb10, 0x23}, 0x5, 0x80, 0x0, 0x0})
	/go/pkg/mod/github.com/w!i2!l/jettison@v0.7.3/json.go:167 +0xd9 fp=0xc00033c9d0 sp=0xc00033c908 pc=0x7aee79
github.com/wI2L/jettison.MarshalOpts({0x9ae8c0, 0xc00021f7d0}, {0xc00033cab8, 0x1, 0xa644a0?})
	/go/pkg/mod/github.com/w!i2!l/jettison@v0.7.3/json.go:142 +0x1a9 fp=0xc00033ca90 sp=0xc00033c9d0 pc=0x7aec69
github.com/MontFerret/ferret/pkg/runtime/values.(*Object).MarshalJSON(0xc00033cb08?)
	/go/pkg/mod/github.com/!mont!ferret/ferret@v0.16.6/pkg/runtime/values/object.go:47 +0x45 fp=0xc00033cad0 sp=0xc00033ca90 pc=0x7bab45
github.com/wI2L/jettison.encodeJSONMarshaler({0xa644a0?, 0xc00014e5a8}, {0xc000616000, 0x1, 0x1000}, {{0xbb4028, 0xc000192008}, {0xabcb10, 0x23}, 0x5, ...}, ...)
	/go/pkg/mod/github.com/w!i2!l/jettison@v0.7.3/encode.go:692 +0x86 fp=0xc00033cb68 sp=0xc00033cad0 pc=0x7aa146
github.com/wI2L/jettison.encodeMarshaler(0xc0001c8a00, {0xc000616000, 0x1, 0x1000}, {{0xbb4028, 0xc000192008}, {0xabcb10, 0x23}, 0x5, 0x80, ...}, ...)
	/go/pkg/mod/github.com/w!i2!l/jettison@v0.7.3/encode.go:668 +0x359 fp=0xc00033cc18 sp=0xc00033cb68 pc=0x7a9c99
github.com/wI2L/jettison.newJSONMarshalerInstr.func1(0x0?, {0xc000616000?, 0x4167eb?, 0x108a720?}, {{0xbb4028, 0xc000192008}, {0xabcb10, 0x23}, 0x5, 0x80, ...})
	/go/pkg/mod/github.com/w!i2!l/jettison@v0.7.3/instruction.go:241 +0x76 fp=0xc00033cca8 sp=0xc00033cc18 pc=0x7aca56
github.com/wI2L/jettison.encodeArray(0xc0001c8a00, {0xc000616000?, 0x969459?, 0xb1af88?}, {{0xbb4028, 0xc000192008}, {0xabcb10, 0x23}, 0x5, 0x80, ...}, ...)
	/go/pkg/mod/github.com/w!i2!l/jettison@v0.7.3/encode.go:312 +0x1ae fp=0xc00033cd40 sp=0xc00033cca8 pc=0x7a74ce
github.com/wI2L/jettison.encodeSlice(0xc00033ce48?, {0xc000616000?, 0x0, 0xc00018fa10?}, {{0xbb4028, 0xc000192008}, {0xabcb10, 0x23}, 0x5, 0x80, ...}, ...)
	/go/pkg/mod/github.com/w!i2!l/jettison@v0.7.3/encode.go:267 +0xe6 fp=0xc00033cdd8 sp=0xc00033cd40 pc=0x7a6ea6
github.com/wI2L/jettison.newSliceInstr.func1(0x41299a?, {0xc000616000?, 0x7f86c053cd28?, 0x40?}, {{0xbb4028, 0xc000192008}, {0xabcb10, 0x23}, 0x5, 0x80, ...})
	/go/pkg/mod/github.com/w!i2!l/jettison@v0.7.3/instruction.go:364 +0x5c fp=0xc00033ce58 sp=0xc00033cdd8 pc=0x7ad93c
github.com/wI2L/jettison.marshalJSON({0x969440?, 0xc000801698?}, {{0xbb4028, 0xc000192008}, {0xabcb10, 0x23}, 0x5, 0x80, 0x0, 0x0})
	/go/pkg/mod/github.com/w!i2!l/jettison@v0.7.3/json.go:167 +0xd9 fp=0xc00033cf20 sp=0xc00033ce58 pc=0x7aee79
github.com/wI2L/jettison.MarshalOpts({0x969440, 0xc000801698}, {0xc00033d008, 0x1, 0xc0004b7b60?})
	/go/pkg/mod/github.com/w!i2!l/jettison@v0.7.3/json.go:142 +0x1a9 fp=0xc00033cfe0 sp=0xc00033cf20 pc=0x7aec69
github.com/MontFerret/ferret/pkg/runtime/values.(*Array).MarshalJSON(0xc0006538f0?)
	/go/pkg/mod/github.com/!mont!ferret/ferret@v0.16.6/pkg/runtime/values/array.go:42 +0x56 fp=0xc00033d020 sp=0xc00033cfe0 pc=0x7b4616
github.com/MontFerret/ferret/pkg/runtime.(*Program).Run(0xc000653b60, {0xbb4098, 0xc000653bf0}, {0xc0008b5240?, 0x0?, 0x0?})
	/go/pkg/mod/github.com/!mont!ferret/ferret@v0.16.6/pkg/runtime/program.go:99 +0x366 fp=0xc00033d1c8 sp=0xc00033d020 pc=0x7be5e6
github.com/MontFerret/worker/pkg/worker.(*Worker).DoQuery(0xc0002e6180, {0xbb4098, 0xc00008a7b0}, {{0xc0000b8140?, 0xc00008a7e0?}, 0x0?})
	/go/src/github.com/MontFerret/worker/pkg/worker/worker.go:72 +0x1ae fp=0xc00033d258 sp=0xc00033d1c8 pc=0x8fcaae
github.com/MontFerret/worker/internal/controllers.(*Worker).runScript(0xc00019c1d8, {0xbc3310, 0xc000010180})
	/go/src/github.com/MontFerret/worker/internal/controllers/worker.go:52 +0x33b fp=0xc00033d308 sp=0xc00033d258 pc=0x8fe11b
github.com/MontFerret/worker/internal/controllers.(*Worker).runScript-fm({0xbc3310?, 0xc000010180?})
.....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant