Coder Social home page Coder Social logo

Crash on DigitalOcean droplet about db1000n HOT 8 CLOSED

arriven avatar arriven commented on August 25, 2024
Crash on DigitalOcean droplet

from db1000n.

Comments (8)

arriven avatar arriven commented on August 25, 2024

@AndriiNytsyk Can you send the config you are using in case it's not default?

from db1000n.

AndriiNytsyk avatar AndriiNytsyk commented on August 25, 2024

I use default configuration according to instruction "docker install".

from db1000n.

scamp avatar scamp commented on August 25, 2024

Please add swapfile:
dd if=/dev/zero of=/swapfile bs=1M count=1024
mkswap /swapfile
chmod 600 /swapfile
swapon /swapfile

from db1000n.

AndriiNytsyk avatar AndriiNytsyk commented on August 25, 2024

I've checked proposed solution but it didn't help. Swap size range I used: 600 MB - 8 GB

panic: invalid argument to Intn

goroutine 30540 [running]:
math/rand.(*Rand).Intn(0x80acea, 0x46817b)
/usr/local/go/src/math/rand/rand.go:168 +0x65
math/rand.Intn(...)
/usr/local/go/src/math/rand/rand.go:337
main.httpJob.func1(0xc000dde500)
/usr/src/app/main.go:229 +0x45
net/http.(*Transport).connectMethodForRequest(0xc001669040, 0xc00312c600)
/usr/local/go/src/net/http/transport.go:834 +0x91
net/http.(*Transport).roundTrip(0xc001669040, 0xc000dde400)
/usr/local/go/src/net/http/transport.go:571 +0x6c5
net/http.(*Transport).RoundTrip(0xc000dde400, 0x8d2480)
/usr/local/go/src/net/http/roundtrip.go:18 +0x19
net/http.send(0xc000dde300, {0x8d2480, 0xc001669040}, {0x7fe120, 0x48a501, 0xbb6680})
/usr/local/go/src/net/http/client.go:252 +0x5d8
net/http.(*Client).send(0xc001d07920, 0xc000dde300, {0xc00312c500, 0x8d26e0, 0xbb6680})
/usr/local/go/src/net/http/client.go:176 +0x9b
net/http.(*Client).do(0xc001d07920, 0xc000dde300)
/usr/local/go/src/net/http/client.go:725 +0x908
net/http.(*Client).Do(...)
/usr/local/go/src/net/http/client.go:593
main.httpJob({0x8db078, 0xc002f05300}, 0xc0000a6310, {0xc002ecc200, 0x1e6, 0x200})
/usr/src/app/main.go:282 +0xa9e
created by main.main
/usr/src/app/main.go:586 +0x725

from db1000n.

arriven avatar arriven commented on August 25, 2024

ok, I guess I know what's happening, I didn't consider the case when proxylist is a valid json but has no proxy entries in it, should be easy to fix

from db1000n.

arriven avatar arriven commented on August 25, 2024

@AndriiNytsyk check v0.5.8, although it shouldn't have been crashing since some earlier release (checking which one rn)

from db1000n.

arriven avatar arriven commented on August 25, 2024

^ Since https://github.com/Arriven/db1000n/releases/tag/v0.5.2

from db1000n.

AndriiNytsyk avatar AndriiNytsyk commented on August 25, 2024

Fixed on v0.5.8.
Thanks!

from db1000n.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.