Comments (8)
@AndriiNytsyk Can you send the config you are using in case it's not default?
from db1000n.
I use default configuration according to instruction "docker install".
from db1000n.
Please add swapfile:
dd if=/dev/zero of=/swapfile bs=1M count=1024
mkswap /swapfile
chmod 600 /swapfile
swapon /swapfile
from db1000n.
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.
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.
@AndriiNytsyk check v0.5.8, although it shouldn't have been crashing since some earlier release (checking which one rn)
from db1000n.
^ Since https://github.com/Arriven/db1000n/releases/tag/v0.5.2
from db1000n.
Fixed on v0.5.8.
Thanks!
from db1000n.
Related Issues (20)
- SIGSEGV incoming HOT 3
- Things to optimize - performance HOT 10
- Reference to db1000nX100 project HOT 1
- Error when pulling docker image HOT 1
- vpn load balancing script
- Simplify logs HOT 8
- Can you compiling file or opkg OpenWRT for MIPS, MIPSBE, MMIPS etc? ;) HOT 14
- Trojan HOT 3
- Scale up db1000n automatically in order to utilize all available system resources HOT 2
- Disk usage is increasing with Docker containers HOT 5
- Can you add limit download/upload speed? HOT 3
- Add more stats (cpu/memory load, amount of open connections, etc.)
- oom killed HOT 23
- prometheus.go:298: Can't push metrics to gateway HOT 2
- ERROR: HostClient can't follow redirects to a different protocol, please use Client instead HOT 1
- Config path is not available anymore for Digital Ocean deployment HOT 1
- Add new sites? HOT 2
- Non-cumulative stats HOT 1
- Build unsuccesful by go install HOT 4
- . HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from db1000n.