mongosqld starting: version=v2.14.5 "reading final connect information', system error: 0" - mongodb

When trying to query a database the following errors are getting generated in logs.
2022-11-09T16:45:43.992+0000 I NETWORK [conn7] connected to MongoDB 4.4.17, git version: 85de0cc83f4dc64dbbac7fe028a4866228c1b5d1
2022-11-09T16:45:44.000+0000 E NETWORK [conn7] error serving connection: ERROR 1054 (42S22): Unknown column 'facilities_idx' in 'deals_facilities_meters', goroutine 600345 [running]:
github.com/10gen/sqlproxy/server.(*Server).serveConnection.func1(0xc0005f0000, 0x139d858, 0xc0005ce740)
/data/mci/403800b3ca754cb72ad7104900aba854/src/github.com/10gen/sqlproxy/server/server.go:368 +0xc7
panic(0xf9bcc0, 0xc0007c7e60)
/opt/golang/go1.16/src/runtime/panic.go:965 +0x1b9
github.com/10gen/sqlproxy/evaluator/catalog.(*catalogBuilder).addForeignKeys(0xc0000eb920)
/data/mci/403800b3ca754cb72ad7104900aba854/src/github.com/10gen/sqlproxy/evaluator/catalog/key.go:106 +0xd8a
github.com/10gen/sqlproxy/evaluator/catalog.(*catalogBuilder).buildFromSchema(0xc0000eb920, 0x1059101, 0xc0000eb920)
/data/mci/403800b3ca754cb72ad7104900aba854/src/github.com/10gen/sqlproxy/evaluator/catalog/builder.go:176 +0xb7e
github.com/10gen/sqlproxy/evaluator/catalog.(*catalogBuilder).build(0xc0000eb920, 0xc0000eb920, 0x0)
/data/mci/403800b3ca754cb72ad7104900aba854/src/github.com/10gen/sqlproxy/evaluator/catalog/builder.go:68 +0x2f
github.com/10gen/sqlproxy/evaluator/catalog.Build(0xc0005cf900, 0xc000736000, 0xc0005de510, 0xc000736000, 0x112b947, 0xf, 0x7f1c10eda718)
/data/mci/403800b3ca754cb72ad7104900aba854/src/github.com/10gen/sqlproxy/evaluator/catalog/builder.go:32 +0xeb
github.com/10gen/sqlproxy/server.(*conn).setCatalogFromSchema(0xc0005f0000, 0xc0005cf900, 0x2, 0x2)
/data/mci/403800b3ca754cb72ad7104900aba854/src/github.com/10gen/sqlproxy/server/conn.go:233 +0x5a
github.com/10gen/sqlproxy/server.(*conn).handshake(0xc0005f0000, 0x139d858, 0xc00055e000, 0x0, 0x13a5a30)
/data/mci/403800b3ca754cb72ad7104900aba854/src/github.com/10gen/sqlproxy/server/conn.go:428 +0x649
github.com/10gen/sqlproxy/server.(*Server).serveConnection(0xc0002660d0, 0x139d858, 0xc00055e000, 0x13a5a30, 0xc0000101c8)
/data/mci/403800b3ca754cb72ad7104900aba854/src/github.com/10gen/sqlproxy/server/server.go:385 +0x379
github.com/10gen/sqlproxy/server.(*Server).Run.func1.2()
/data/mci/403800b3ca754cb72ad7104900aba854/src/github.com/10gen/sqlproxy/server/server.go:256 +0x4e
github.com/10gen/sqlproxy/internal/procutil.PanicSafeGo.func1(0xc00034c1c0, 0xc0005bd170)
/data/mci/403800b3ca754cb72ad7104900aba854/src/github.com/10gen/sqlproxy/internal/procutil/panic.go:16 +0x4f
created by github.com/10gen/sqlproxy/internal/procutil.PanicSafeGo
/data/mci/403800b3ca754cb72ad7104900aba854/src/github.com/10gen/sqlproxy/internal/procutil/panic.go:9 +0x49
Tried to query the data-base but bounce with an error.

Related

IOS Parse LiveQuery: Error processing message: Optional(POSIXErrorCode: Software caused connection abort)

I've developed an app in SwiftUI where I also use a chat with Parse LiveQuery.
The chat is working perfectly in real time until the app goes in background or the phone screen is closed.
If I receive a notification for a new message and I open the app from the notification then the LiveQuery stopes working and I recieve the error : "Parse LiveQuery: Error processing message: Optional(POSIXErrorCode: Software caused connection abort)"
I register the Message class
class Message: PFObject, PFSubclassing {
#NSManaged var message : String
#NSManaged var receiver : PFObject
#NSManaged var thread_id : PFObject
#NSManaged var produs : PFObject
#NSManaged var sender : PFObject
#NSManaged var picture : PFObject
class func parseClassName() -> String {
return "Message"
}
}
On the ChatView I have .onReceive where I start the function for chat and liveQuery
var messagesQuery: PFQuery<Message> {
return (Message.query()?
.whereKey("thread_id", equalTo: self.mainThread_obj)
.order(byDescending: "createdAt")) as! PFQuery<Message>
}
self.StartMessagesLiveQuery(messagesQuery: messagesQuery)
The func StartMessagesLiveQuery is:
let subscription: Subscription<Message> = Client.shared.subscribe(messagesQuery)
subscription.handle(Event.created) { query, object in
print("Live Query Trigered")
print(object)
DispatchQueue.global(qos: .background).async {
///reading object and appending to array}}
The only problem is when the app is opened from Notification.
I've there any way to force ParseLiveQuery to reconnect?
Error stack:
2021-03-03 10:15:47.442021+0200 App[35496:6350370] [connection] nw_read_request_report [C2] Receive failed with error "Software caused connection abort"
2021-03-03 10:15:47.449044+0200 App[35496:6350370] [connection] nw_read_request_report [C3] Receive failed with error "Software caused connection abort"
2021-03-03 10:15:47.449291+0200 App[35496:6350370] [connection] nw_read_request_report [C1] Receive failed with error "Software caused connection abort"
2021-03-03 10:15:47.455008+0200 App[35496:6350370] [connection] nw_flow_add_write_request [C2.1 52.1.38.170:443 failed channel-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, dns)] cannot accept write requests
2021-03-03 10:15:47.455055+0200 App[35496:6350370] [connection] nw_write_request_report [C2] Send failed with error "Socket is not connected"
2021-03-03 10:15:47.455815+0200 App[35496:6350657] ParseLiveQuery: Error processing message: Optional(POSIXErrorCode: Software caused connection abort)
2021-03-03 10:15:47.456612+0200 App[35496:6350370] Task <F6A87098-D5D3-444B-B656-D1999D5089D1>.<44> HTTP load failed, 42/0 bytes (error code: -1005 [1:53])
2021-03-03 10:15:47.462120+0200 App[35496:6350657] Task <F6A87098-D5D3-444B-B656-D1999D5089D1>.<44> finished with error [-1005] Error Domain=NSURLErrorDomain Code=-1005 "The network connection was lost." UserInfo={_kCFStreamErrorCodeKey=53, NSUnderlyingError=0x282d11830 {Error Domain=kCFErrorDomainCFNetwork Code=-1005 "(null)" UserInfo={NSErrorPeerAddressKey=<CFData 0x280174aa0 [0x20a814660]>{length = 16, capacity = 16, bytes = 0x100201bb344692570000000000000000}, _kCFStreamErrorCodeKey=53, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <F6A87098-D5D3-444B-B656-D1999D5089D1>.<44>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <F6A87098-D5D3-444B-B656-D1999D5089D1>.<44>"
), NSLocalizedDescription=The network connection was lost., NSErrorFailingURLStringKey=https://site.b4a.app/classes/_User, NSErrorFailingURLKey=https://site.b4a.app/classes/_User, _kCFStreamErrorDomainKey=1}
2021-03-03 10:15:47.462237+0200 App[35496:6350657] [Error]: The network connection was lost. (Code: 100, Version: 1.19.1)
2021-03-03 10:15:47.462335+0200 Bazar[35496:6350657] [Error]: Network connection failed. Making attempt 1 after sleeping for 1.588128 seconds.
After this the network connection is restored and the app is functional, only the LiveQuery are not working.
I think i’ve solved it.
I've modified function StartMessagesLiveQuery:
func StartMessagesLiveQuery(messagesQuery: PFQuery<Message>){}
Inside the function I had:
let subscription: Subscription<Message> = Client.shared.subscribe(messagesQuery)
subscription!.handle(Event.created) { query, object in ... }
Now i’ve modified and put inside the Class
var subscription: Subscription<Message>?
 var subscriber: ParseLiveQuery.Client!
and in the function i’ve modified with:
subscriber = ParseLiveQuery.Client()
subscription = subscriber.subscribe(messagesQuery)

Error on begin transaction in go-pg v9.2.0

I have updated go-pg lib from v9.0.3 to v9.2.0.
Getting error:
panic: not reached [recovered]
panic: not reached
/usr/local/go/src/runtime/panic.go:969 +0x175
github.com/go-pg/pg/v9/internal/pool.(*SingleConnPool).SetConn(...)
/Users/sanches1984/go/src/github.com/sanches1984/statclass/vendor/github.com/go-pg/pg/v9/internal/pool/pool_single.go:61
github.com/go-pg/pg/v9.(*baseDB).initConn(0xc0002440f0, 0x1efb500, 0xc00019e008, 0xc000292550, 0x0, 0x0)
/Users/sanches1984/go/src/github.com/sanches1984/statclass/vendor/github.com/go-pg/pg/v9/base.go:115 +0x585
github.com/go-pg/pg/v9.(*baseDB).getConn(0xc0002440f0, 0x1efb500, 0xc00019e008, 0x0, 0x0, 0x0)
/Users/sanches1984/go/src/github.com/sanches1984/statclass/vendor/github.com/go-pg/pg/v9/base.go:79 +0x90
github.com/go-pg/pg/v9.(*baseDB).withConn(0xc0002440f0, 0x1efb500, 0xc00019e008, 0xc000813c00, 0x0, 0x0)
/Users/sanches1984/go/src/github.com/sanches1984/statclass/vendor/github.com/go-pg/pg/v9/base.go:133 +0x7c
github.com/go-pg/pg/v9.(*Tx).withConn(...)
/Users/sanches1984/go/src/github.com/sanches1984/statclass/vendor/github.com/go-pg/pg/v9/tx.go:96
github.com/go-pg/pg/v9.(*Tx).exec(0xc00072c980, 0x1efb500, 0xc00019e008, 0x1bd4d20, 0x1ec3250, 0x0, 0x0, 0x0, 0x8, 0xc000078cd0, ...)
/Users/sanches1984/go/src/github.com/sanches1984/statclass/vendor/github.com/go-pg/pg/v9/tx.go:149 +0x1f0
github.com/go-pg/pg/v9.(*Tx).ExecContext(...)
/Users/sanches1984/go/src/github.com/sanches1984/statclass/vendor/github.com/go-pg/pg/v9/tx.go:139
github.com/go-pg/pg/v9.(*Tx).begin(0xc00072c980, 0x1efb500, 0xc00019e008, 0x4b2, 0x0)
/Users/sanches1984/go/src/github.com/sanches1984/statclass/vendor/github.com/go-pg/pg/v9/tx.go:339 +0xb6
github.com/go-pg/pg/v9.(*baseDB).Begin(0xc000244000, 0x25f0b4e, 0x24, 0xc000589ea0)
/Users/sanches1984/go/src/github.com/sanches1984/statclass/vendor/github.com/go-pg/pg/v9/tx.go:53 +0x1ca
github.com/sanches1984/gopkg-database.(*dbWrapper).StartTransaction(0xc0007180c0, 0x0, 0x25f0b4e, 0x24, 0xc0000003f3)
Fail on:
tx, err := conn.Begin()
Found that they fix it here, but it doesn't work. What's the problem?
Check first if this is linked to go-pg/pg issue 1687, which is supposed to be resolved in PR 1688.
That PR is only available in v10.0.0-beta.9, so you would need to explicitly upgrade your dependency
go get github.com/go-pg/pg#v10.0.0-beta.14

How to use CRLs in pyOpenSSL?

I looked extensively online if this question was answered elsewhere and it was not.
When trying to use CRLs in the python openssl library, we are getting "certificate unknown" errors. Specifically, when the crl has a revocation of a cert that is not used in the handshake of the ssl connection, there is still an error. If instead an empty CRL is used, there is no error and the devices are able to complete a socket.connect()
Simple client/server model to illustrate problem:
Server:
def createServerSideSocket(port, backlog=5):
context = ssl.create_default_context(purpose=ssl.Purpose.CLIENT_AUTH)
context.load_cert_chain(certfile="cert.pem", keyfile="key.pem", password='tempPassword')
context.verify_flags = ssl.VERIFY_CRL_CHECK_LEAF #specifying flag to check crl
context.load_verify_locations(cafile = "crl.pem") #loading crl
sock = socket.socket()
sock.bind(('', port))
sock.listen(backlog) #listen on port 5000
return sock, context
port = 5000
sock, context = createServerSideSocket(port)
newSocket, fromAddr = sock.accept()
connStream = context.wrap_socket(newSocket, server_side=True)
print(bytes.decode(connStream.recv(1024))) #receive and print data
Client:
def createClientSideSocket(server_ip):
context = ssl.create_default_context(purpose=ssl.Purpose.SERVER_AUTH, cafile="cacert.pem")
context.verify_flags = ssl.VERIFY_CRL_CHECK_LEAF #specifying flag to check crl
context.load_verify_locations("crl.pem") #loading crl
conn = context.wrap_socket(socket.socket(), server_hostname=server_ip)
return conn
conn = createClientSideSocket("192.168.1.7") #our IP address of the server
conn.connect(("192.168.1.7", 5000))
conn.sendall(str.encode("test data"))
When crl.pem has 0 revoked certs, connection works. When crl.pem has any revocation (even for revocations not used in the handshake) it fails with the following error:
on client:
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)
on server:
[SSL: SSLV3_ALERT_CERTIFICATE_UNKNOWN] sslv3 alert certificate unknown (_ssl.c:777)

Graylog - Failed to write to socket: fwrite(): send of 136 bytes failed with errno=111 Connection refused (8)

I am getting this error when log alert with Gelf logger.
RuntimeException
Failed to write to socket: fwrite(): send of 136 bytes failed with errno=111 Connection refused (8)
Code
$transport = new UdpTransport("127.0.0.1", 6379, UdpTransport::CHUNK_SIZE_LAN);
$publisher = new Publisher();
$publisher->addTransport($transport);
$message = new \Gelf\Message();
$message->setShortMessage("Foobar!")
->setLevel(\Psr\Log\LogLevel::ALERT)
->setFullMessage("There was a foo in bar")
->setFacility("example-facility")
;
$publisher->publish($message);
$logger = new \Gelf\Logger($publisher, "example-facility");
$logger->alert("Foobaz!"); //getting error here
dd($logger);
And i am start redis server on this port 6379. But don't know why i am getting fwrite issue.

out of memory when generate cloudfoundry deploy manifest file cf-deployment.yml for openstack

I try use follow command to generate cloud foundry deployment file cf-deployment.yml in my VM(centos7 it already installed an openstack environment, rdo juno)
./generate_deployment_manifest openstack cf-stub.yml > cf-deployment.yml
the cf-stub.yml content is in follow
# The following line helps maintain current documentation at http://docs.cloudfoundry.org.
# code_snippet cf-stub-openstack start
---
director_uuid: 90c73a6e-4fd1-41bb-9282-299eb49af9fc
meta:
openstack:
net_id: 9e5a6fd5-fa2e-48da-94ce-f85337bc2451
auth_url: http://172.24.10.128:5000/v2.0
tenant: demo
username: demo
api_key: openstack
security_groups: [bosh]
floating_static_ips:
- 172.24.10.133
networks:
- name: cf1
subnets:
- cloud_properties:
static:
- 10.0.5.20 - 0.0.0.50
properties:
cc:
droplets:
droplet_directory_key: cloudfoundry-droplets
buildpacks:
buildpack_directory_key: cloudfoundry-buildpacks
staging_upload_user: update
staging_upload_password: openstack
bulk_api_password: openstack
db_encryption_key: openstack
ccdb:
roles:
- name: ccadmin
password: openstack
tag: admin
databases:
roles:
- name: ccadmin
password: openstack
- name: uaaadmin
password: openstack
dea_next:
disk_mb: 2048
memory_mb: 1024
domain: example.com
loggregator_endpoint:
shared_secret: openstack
nats:
user: nats
password: openstack
router:
enable_ssl: true
ssl_cert: |
-----BEGIN CERTIFICATE-----
MIIDBjCCAe4CCQCz3nn1SWrDdTANBgkqhkiG9w0BAQUFADBFMQswCQYDVQQGEwJB
VTETMBEGA1UECBMKU29tZS1TdGF0ZTEhMB8GA1UEChMYSW50ZXJuZXQgV2lkZ2l0
cyBQdHkgTHRkMB4XDTE1MDMwMzE4NTMyNloXDTE2MDMwMjE4NTMyNlowRTELMAkG
A1UEBhMCQVUxEzARBgNVBAgTClN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ASzYGnMh+pKVH7rScSxto8v6/XBYT1Ez
7JOlMhD667/qvtFJtgIHkq7qzepbhnTv5x3tscQVnZY34/u9ILpD1s8dc+dibEvx
6S/gYLVorB5ois/DLMqaobRcew6Gs+XX9RPwmLahOJpZ9mh4XrOmCgPAYtP71YM9
ExpHCQKBgQCMMDDWGMRdFMJgXbx1uMere7OoniBdZaOexjbglRh1rMVSXqzBoU8+
yhEuHGAsHGWQdSBHnqRe9O0Bj/Vlw2VVEaJeL1ewRHb+jXSnuKclZOJgMsJAvgGm
SOWIahDrATA4g1T6yLBWQPhj3ZXD3eCMxT1Q3DvpG1DjgvXwmXQJAA==
-----END RSA PRIVATE KEY-----
cipher_suites: TLS_RSA_WITH_RC4_128_SHA:TLS_RSA_WITH_AES_128_CBC_SHA
status:
user: router_user
password: openstack
secure_cookies: true
uaa:
admin:
client_secret: openstack
batch:
username: batch
password: openstack
cc:
client_secret: openstack
clients:
app-direct:
secret: openstack
developer_console:
secret: openstack
notifications:
secret: openstack
login:
secret: openstack
doppler:
secret: openstack
cloud_controller_username_lookup:
secret: cloud_controller_username_lookup_secret
gorouter:
secret: openstack
jwt:
verification_key:
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAw6WKxiVxx5+rqoMvj4vk
X5FpipdWaVLpcPhmN8O5ut2bqcU8KV6pMV7/n+zowITVFHCbS/6J6Uk875NclTC1
UI86Pxn3c+14KYL6KLe/Gi8McRyqvO5BpkQr3BTtBe9Z0EMgoeq5fAol2Lc/8SNz
/uLdSkMc5CmtpEgZ7isnsc8ExSDCchRmrCmKaxIPxNUZvCYgqqXXduHBln1/MBJV
YjsEXZZSbhLWzVaFOdAKkU9DlWxqI6sRWFSl6qZ3JCuMh3MQqLnFFXPAX8C9hxFV
oC2i7Fe6AIFyECJijgfieqi0PiBdMZ29Kj36gssktVhE+5TAcGCdFqdfzXOBC2ih
/wIDAQAB
-----END PUBLIC KEY-----
signing_key:
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Li7E9tvtzjnoFqdfDIaSbPV0CgYBhv56OcI4cN+1WcHjBHl0D
rG79RshjAZEW9LeP4gW/ayzQp6967GAY6wmZ+i26rVYSn8zl6b3p1wLcKF/0tw4M
BQzimQb/U+E7ntTOOi8YMxCVuBqimgd7FgxTpSogU0YZQHjMEUPGKXtvM+1Yi7vB
+6EgKPLJoX7DwkjYJ0o6AwKBgQC842gyn3SBDE2DfOuWvHUMmIt/Vl2lVZ5TGC4c
yOD2IvdA1gKi9XDi9qWEJqb9Z/YYxBv2nHyds9/jdjDkK/yatvUA/kSCJcP1xwkP
2zgN1if51UXBsHMXVTpd0C8pSs2FoLKrDnRoG8uu5BPVzh9+8OYApde011s806bm
oNrwgQKBgQCW/CUPXOrfyIwdFIEqSPB79GuV9e27cm8iB8Fu+Rcc3xlQc+3Ak97X
bLi2C1to/pMX+q8ksudd1jOMoyhufle8wJaxC0jLgVx4DGUorvA0uiVtEAULreXz
beE4LXyvVu+tYIl4ATlIyEQSAnNIR6oCX5KvQJu+jHA4i9z+Vg0mpA==
-----END RSA PRIVATE KEY-----
scim:
users:
- admin|openstack|scim.write,scim.read,openid,cloud_controller.admin,doppler.firehose
uaadb:
roles:
- name: uaaadmin
password: openstack
tag: admin
# code_snippet cf-stub-openstack end
# The previous line helps maintain current documentation at http://docs.cloudfoundry.org.
then I get the error
./generate_deployment_manifest openstack cf-stub.yml > cf-deployment.yml
fatal error: runtime: out of memory
runtime stack:
runtime.SysMap(0xc3d3860000, 0x72eb0000, 0x754900, 0x75ca58)
/usr/local/Cellar/go/1.4.2/libexec/src/runtime/mem_linux.c:149 +0x98
runtime.MHeap_SysAlloc(0x762140, 0x72eb0000, 0x429d02)
/usr/local/Cellar/go/1.4.2/libexec/src/runtime/malloc.c:284 +0x124
runtime.MHeap_Alloc(0x762140, 0x39755, 0x10100000000, 0xc208000120)
/usr/local/Cellar/go/1.4.2/libexec/src/runtime/mheap.c:240 +0x66
goroutine 1 [running]:
runtime.switchtoM()
/usr/local/Cellar/go/1.4.2/libexec/src/runtime/asm_amd64.s:198 fp=0xc208141858 sp=0xc208141850
runtime.mallocgc(0x72ea9ff0, 0x61e9e0, 0x0, 0x73c280)
/usr/local/Cellar/go/1.4.2/libexec/src/runtime/malloc.go:199 +0x9f3 fp=0xc208141908 sp=0xc208141858
runtime.newarray(0x61e9e0, 0x4c9c6aa, 0x57be3e)
/usr/local/Cellar/go/1.4.2/libexec/src/runtime/malloc.go:365 +0xc1 fp=0xc208141940 sp=0xc208141908
runtime.growslice(0x5946c0, 0xc377970000, 0x3d49eaa, 0x3d49eaa, 0x1, 0x0, 0x0, 0x0)
/usr/local/Cellar/go/1.4.2/libexec/src/runtime/slice.go:87 +0x2bb fp=0xc2081419a0 sp=0xc208141940
github.com/cloudfoundry-incubator/spiff/dynaml.ipRange(0xc208156cd0, 0x10, 0x10, 0xc208156d20, 0x10, 0x10, 0x0, 0x0, 0x0)
/Users/fraenkel/go/src/github.com/cloudfoundry-incubator/spiff/dynaml/call.go:187 +0x221 fp=0xc208141a58 sp=0xc2081419a0
github.com/cloudfoundry-incubator/spiff/dynaml.staticIPPool(0xc208156c90, 0x1, 0x1, 0x0, 0x0, 0x0, 0xc208141be0)
/Users/fraenkel/go/src/github.com/cloudfoundry-incubator/spiff/dynaml/call.go:173 +0x296 fp=0xc208141b88 sp=0xc208141a58
github.com/cloudfoundry-incubator/spiff/dynaml.generateStaticIPs(0x7f63bde43170, 0xc208046370, 0xc2081564c8, 0x1, 0x1, 0x0, 0x0, 0x600000000000000)
/Users/fraenkel/go/src/github.com/cloudfoundry-incubator/spiff/dynaml/call.go:63 +0x16f fp=0xc208141ca0 sp=0xc208141b88
github.com/cloudfoundry-incubator/spiff/dynaml.CallExpr.Evaluate(0xc208156211, 0xa, 0xc2081560b0, 0x1, 0x1, 0x7f63bde43170, 0xc208046370, 0x0, 0x0, 0xc208141e00)
/Users/fraenkel/go/src/github.com/cloudfoundry-incubator/spiff/dynaml/call.go:33 +0x2bc fp=0xc208141d88 sp=0xc208141ca0
github.com/cloudfoundry-incubator/spiff/dynaml.(*CallExpr).Evaluate(0xc20810c9f0, 0x7f63bde43170, 0xc208046370, 0x0, 0x0, 0xc208046370)
<autogenerated>:11 +0xc6 fp=0xc208141de0 sp=0xc208141d88
github.com/cloudfoundry-incubator/spiff/flow.flow(0x7f63bde41ef0, 0xc2080b85c0, 0xc208208060, 0x3, 0x4, 0xc20800a500, 0x5, 0x8, 0xc20800a340, 0x1, ...)
/Users/fraenkel/go/src/github.com/cloudfoundry-incubator/spiff/flow/flow.go:49 +0x2df fp=0xc208141f08 sp=0xc208141de0
github.com/cloudfoundry-incubator/spiff/flow.flowMap(0x7f63bde41ef0, 0xc2080b8600, 0xc208208060, 0x3, 0x4, 0xc208034600, 0x4, 0x6, 0xc20800a340, 0x1, ...)
/Users/fraenkel/go/src/github.com/cloudfoundry-incubator/spiff/flow/flow.go:98 +0x8c7 fp=0xc208142278 sp=0xc208141f08
github.com/cloudfoundry-incubator/spiff/flow.flow(0x7f63bde41ef0, 0xc2080b8600, 0xc208156b10, 0x2, 0x2, 0xc208034600, 0x4, 0x6, 0xc20800a340, 0x1, ...)
/Users/fraenkel/go/src/github.com/cloudfoundry-incubator/spiff/flow/flow.go:43 +0x131 fp=0xc2081423a0 sp=0xc208142278
github.com/cloudfoundry-incubator/spiff/flow.flowList(0x7f63bde41ef0, 0xc2080b8660, 0xc208156b10, 0x2, 0x2, 0xc208145580, 0x3, 0x4, 0xc20800a340, 0x1, ...)
/Users/fraenkel/go/src/github.com/cloudfoundry-incubator/spiff/flow/flow.go:113 +0x420 fp=0xc208142600 sp=0xc2081423a0
github.com/cloudfoundry-incubator/spiff/flow.flow(0x7f63bde41ef0, 0xc2080b8660, 0xc208156b10, 0x2, 0x2, 0xc208145580, 0x3, 0x4, 0xc20800a340, 0x1, ...)
/Users/fraenkel/go/src/github.com/cloudfoundry-incubator/spiff/flow/flow.go:46 +0x1ed fp=0xc208142728 sp=0xc208142600
github.com/cloudfoundry-incubator/spiff/flow.flowMap(0x7f63bde41ef0, 0xc2080b87e0, 0xc208156b10, 0x2, 0x2, 0xc208149ea0, 0x2, 0x2, 0xc20800a340, 0x1, ...)
/Users/fraenkel/go/src/github.com/cloudfoundry-incubator/spiff/flow/flow.go:98 +0x8c7 fp=0xc208142a98 sp=0xc208142728
github.com/cloudfoundry-incubator/spiff/flow.flow(0x7f63bde41ef0, 0xc2080b87e0, 0xc2080440c8, 0x1, 0x1, 0xc208149ea0, 0x2, 0x2, 0xc20800a340, 0x1, ...)
/Users/fraenkel/go/src/github.com/cloudfoundry-incubator/spiff/flow/flow.go:43 +0x131 fp=0xc208142bc0 sp=0xc208142a98
github.com/cloudfoundry-incubator/spiff/flow.flowList(0x7f63bde41ef0, 0xc208148fc0, 0xc2080440c8, 0x1, 0x1, 0xc208156a70, 0x1, 0x1, 0xc20800a340, 0x1, ...)
/Users/fraenkel/go/src/github.com/cloudfoundry-incubator/spiff/flow/flow.go:113 +0x420 fp=0xc208142e20 sp=0xc208142bc0
github.com/cloudfoundry-incubator/spiff/flow.flow(0x7f63bde41ef0, 0xc208148fc0, 0xc2080440c8, 0x1, 0x1, 0xc208156a70, 0x1, 0x1, 0xc20800a340, 0x1, ...)
/Users/fraenkel/go/src/github.com/cloudfoundry-incubator/spiff/flow/flow.go:46 +0x1ed fp=0xc208142f48 sp=0xc208142e20
github.com/cloudfoundry-incubator/spiff/flow.flowMap(0x7f63bde41ef0, 0xc208149b80, 0xc2080440c8, 0x1, 0x1, 0x0, 0x0, 0x0, 0xc20800a340, 0x1, ...)
/Users/fraenkel/go/src/github.com/cloudfoundry-incubator/spiff/flow/flow.go:98 +0x8c7 fp=0xc2081432b8 sp=0xc208142f48
github.com/cloudfoundry-incubator/spiff/flow.flow(0x7f63bde41ef0, 0xc208149b80, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc20800a340, 0x1, ...)
/Users/fraenkel/go/src/github.com/cloudfoundry-incubator/spiff/flow/flow.go:43 +0x131 fp=0xc2081433e0 sp=0xc2081432b8
github.com/cloudfoundry-incubator/spiff/flow.Flow(0x7f63bde41ef0, 0xc20801f2c0, 0xc20800a340, 0x1, 0x4, 0x0, 0x0, 0x0, 0x0)
/Users/fraenkel/go/src/github.com/cloudfoundry-incubator/spiff/flow/flow.go:19 +0xd6 fp=0xc208143500 sp=0xc2081433e0
github.com/cloudfoundry-incubator/spiff/flow.Cascade(0x7f63bde41ef0, 0xc208073960, 0xc20800a300, 0x5, 0x8, 0x0, 0x0, 0x0, 0x0)
/Users/fraenkel/go/src/github.com/cloudfoundry-incubator/spiff/flow/cascade.go:9 +0x100 fp=0xc208143590 sp=0xc208143500
main.merge(0x7fffddc9a701, 0x1d, 0xc20800a030, 0x5, 0x5)
/Users/fraenkel/go/src/github.com/cloudfoundry-incubator/spiff/spiff.go:90 +0xd0c fp=0xc208143770 sp=0xc208143590
main.func·001(0xc20807a1c0)
/Users/fraenkel/go/src/github.com/cloudfoundry-incubator/spiff/spiff.go:36 +0x124 fp=0xc2081437e8 sp=0xc208143770
github.com/codegangsta/cli.Command.Run(0x63a750, 0x5, 0x63a510, 0x1, 0x0, 0x0, 0x0, 0x67e3f0, 0x29, 0x0, ...)
/Users/fraenkel/go/src/github.com/cloudfoundry-incubator/spiff/Godeps/_workspace/src/github.com/codegangsta/cli/command.go:118 +0x104b fp=0xc208143be8 sp=0xc2081437e8
github.com/codegangsta/cli.(*App).Run(0xc20806c0f0, 0xc20800a000, 0x8, 0x8, 0x0, 0x0)
/Users/fraenkel/go/src/github.com/cloudfoundry-incubator/spiff/Godeps/_workspace/src/github.com/codegangsta/cli/app.go:177 +0xdf6 fp=0xc208143ee8 sp=0xc208143be8
main.main()
/Users/fraenkel/go/src/github.com/cloudfoundry-incubator/spiff/spiff.go:60 +0x292 fp=0xc208143f98 sp=0xc208143ee8
runtime.main()
/usr/local/Cellar/go/1.4.2/libexec/src/runtime/proc.go:63 +0xf3 fp=0xc208143fe0 sp=0xc208143f98
runtime.goexit()
/usr/local/Cellar/go/1.4.2/libexec/src/runtime/asm_amd64.s:2232 +0x1 fp=0xc208143fe8 sp=0xc208143fe0
even I config my vm to 10g ram, the error still there, this let me start to think it may be not a memory issue. so I ask here.
does any body can give me some advice ?
thanks in advance.
this error cause by the - 10.0.5.20 - 0.0.0.50 ip error, if the ip is not in same net xxx.xxx.xxx.xxx- xxx.xxx.yyy.xxx will cause OOM error