I am trying to SSH into another server via the Rails console, however, get the below error. I tried pretty much every suggestion that I could find online but still get the same error. I can login to the server with SSH no problem ssh root#xxx.x.xxx.x.
Net::SSH.start("xxx.xx.xx.x","root",:keys=> ["ssh-rsa ........"], :verbose => Logger::DEBUG) do |ssh|
puts ssh
end
D, [2018-08-31T09:25:57.604405 #30930] DEBUG -- socket[3fcf45daf8a0]: queueing packet nr 3 type 5 len 28
D, [2018-08-31T09:25:57.604540 #30930] DEBUG -- socket[3fcf45daf8a0]: sent 52 bytes
D, [2018-08-31T09:25:57.643325 #30930] DEBUG -- socket[3fcf45daf8a0]: read 52 bytes
D, [2018-08-31T09:25:57.643674 #30930] DEBUG -- socket[3fcf45daf8a0]: received packet nr 3 type 6 len 28
D, [2018-08-31T09:25:57.643897 #30930] DEBUG -- net.ssh.authentication.session[3fcf4c354a20]: trying none
D, [2018-08-31T09:25:57.644151 #30930] DEBUG -- socket[3fcf45daf8a0]: queueing packet nr 4 type 50 len 44
D, [2018-08-31T09:25:57.644285 #30930] DEBUG -- socket[3fcf45daf8a0]: sent 68 bytes
D, [2018-08-31T09:25:57.646320 #30930] DEBUG -- socket[3fcf45daf8a0]: read 52 bytes
D, [2018-08-31T09:25:57.646501 #30930] DEBUG -- socket[3fcf45daf8a0]: received packet nr 4 type 51 len 28
D, [2018-08-31T09:25:57.646664 #30930] DEBUG -- net.ssh.authentication.session[3fcf4c354a20]: allowed methods: publickey
D, [2018-08-31T09:25:57.646807 #30930] DEBUG -- net.ssh.authentication.methods.none[3fcf4c341718]: none failed
D, [2018-08-31T09:25:57.646918 #30930] DEBUG -- net.ssh.authentication.session[3fcf4c354a20]: trying publickey
D, [2018-08-31T09:25:57.647084 #30930] DEBUG -- net.ssh.authentication.agent[3fcf4c32ebf4]: connecting to ssh-agent
E, [2018-08-31T09:25:57.647262 #30930] ERROR -- net.ssh.authentication.agent[3fcf4c32ebf4]: could not connect to ssh-agent: Permission denied - connect(2) for /tmp/ssh-LmmHflAUE4b4/agent.28067
E, [2018-08-31T09:25:57.647375 #30930] ERROR -- net.ssh.authentication.session[3fcf4c354a20]: all authorization methods failed (tried none, publickey)
Net::SSH::AuthenticationFailed: Authentication failed for user root#xxx.xx.xx.x
from /opt/gitlab/embedded/lib/ruby/gems/2.4.0/gems/net-ssh-5.0.1/lib/net/ssh.rb:259:in `start'
from (irb):2
from /opt/gitlab/embedded/lib/ruby/gems/2.4.0/gems/railties-4.2.10/lib/rails/commands/console.rb:110:in `start'
from /opt/gitlab/embedded/lib/ruby/gems/2.4.0/gems/railties-4.2.10/lib/rails/commands/console.rb:9:in `start'
from /opt/gitlab/embedded/lib/ruby/gems/2.4.0/gems/railties-4.2.10/lib/rails/commands/commands_tasks.rb:68:in `console'
from /opt/gitlab/embedded/lib/ruby/gems/2.4.0/gems/railties-4.2.10/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
from /opt/gitlab/embedded/lib/ruby/gems/2.4.0/gems/railties-4.2.10/lib/rails/commands.rb:17:in `<top (required)>'
from bin/rails:14:in `require'
from bin/rails:14:in `<main>'
Ok, so its nothing to do with the library/keys or SSH itself, I am trying to do this from gitlab-rails c, it works fine from irb on the same server.
Related
I' trying to connect from raspberry 3 B to a Modbus device (sensor temperature) using a serial connection using a USB RS485 converter .This is my code:
from pymodbus.constants import Endian
from pymodbus.payload import BinaryPayloadDecoder
from pymodbus.client.sync import ModbusSerialClient as ModbusClient
from pymodbus.constants import Defaults
Defaults.RetryOnEmpty = True
import time
import logging
FORMAT = ('%(asctime)-15s %(threadName)-15s '
'%(levelname)-8s %(module)-15s:%(lineno)-8s %(message)s')
logging.basicConfig(format=FORMAT)
log = logging.getLogger()
log.setLevel(logging.DEBUG)
def run_sync_client():
while True:
#try:
client = ModbusClient(method='rtu', port='/dev/ttyUSB0', timeout=9, baudrate=9600, parity='N', stopbits=1, bytesize=8,reset_socket=False) # Implementation of the SHT31 as a modbus serial client
if client.connect():
print("connected")
print ("begin reading")
#for i in range(0 ,100):
request = client.read_holding_registers(address=0 , count=2, unit=4)
if request.isError():
print(request)
else:
print("Read OK! " + str(request.registers[1]))
time.sleep(1)
print(request)
result = request.registers
print(result)
temp= BinaryPayloadDecoder.fromRegisters(result, Endian.little, wordorder=Endian.little )
temperature= temp.decode_16bit_int()
print( temperature)
time.sleep(4)
# except:
#print("An exception occurred")
client.close()
while True:
if __name__ == "__main__":
run_sync_client()
The output in the console is:
connected
begin reading
2022-02-24 14:56:37,901 MainThread DEBUG transaction :139 Current transaction state - IDLE
2022-02-24 14:56:37,902 MainThread DEBUG transaction :144 Running transaction 1
2022-02-24 14:56:37,904 MainThread DEBUG transaction :273 SEND: 0x4 0x3 0x0 0x1 0x0 0x2 0x95 0x9e
2022-02-24 14:56:37,905 MainThread DEBUG sync :76 New Transaction state 'SENDING'
2022-02-24 14:56:37,906 MainThread DEBUG transaction :287 Changing transaction state from 'SENDING' to 'WAITING FOR REPLY'
2022-02-24 14:56:38,068 MainThread DEBUG transaction :375 Changing transaction state from 'WAITING FOR REPLY' to 'PROCESSING REPLY'
2022-02-24 14:56:38,069 MainThread DEBUG transaction :297 RECV: 0x4 0x3 0x2 0x17 0x58 0x2c 0x2e 0x3f 0x88
2022-02-24 14:56:38,071 MainThread DEBUG rtu_framer :237 Frame check failed, ignoring!!
2022-02-24 14:56:38,072 MainThread DEBUG rtu_framer :119 Resetting frame - Current Frame in buffer - 0x4 0x3 0x2 0x17 0x58 0x2c 0x2e 0x3f 0x88
2022-02-24 14:56:38,073 MainThread DEBUG transaction :465 Getting transaction 4
2022-02-24 14:56:38,074 MainThread DEBUG transaction :224 Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE'
Modbus Error: [Input/Output] No Response received from the remote unit/Unable to decode response
I would love to have a little help understanding the error I'm getting. Thanks
In the IRP_MJ_DEVICE_CONTROL Dispatch function, I try to invoke the KeWaitForSingleObject with infianity timeout.
Like this:
KeWaitForSingleObject(pMainDevExt->pEvent, Executive, KernelMode, FALSE, NULL);
pEvent is Nonpaged pool allocate by ExAllocatePoolWithTag.
But i get a BSOD with IRQL_NOT_LESS_OR_EQUAL
1: kd> g
Driver Verifier: Enabled for MyDriver.sys, 0:0x100009, 1:0x2, build 19042, key 4XXOFJKTWokcIDxOlNSWC
KDTARGET: Refreshing KD connection
*** Fatal System Error: 0x0000000a
(0x0000000000000000,0x0000000000000002,0x0000000000000000,0xFFFFF8015AA156F1)
Break instruction exception - code 80000003 (first chance)
A fatal system error has occurred.
Debugger entered on first try; Bugcheck callbacks have not been invoked.
A fatal system error has occurred.
nt!DbgBreakPointWithStatus:
fffff801`5ac08b90 cc int 3
0: kd> k
# Child-SP RetAddr Call Site
00 fffffb8e`8a844b48 fffff801`5ad1cd12 nt!DbgBreakPointWithStatus
01 fffffb8e`8a844b50 fffff801`5ad1c2f6 nt!KiBugCheckDebugBreak+0x12
02 fffffb8e`8a844bb0 fffff801`5ac00df7 nt!KeBugCheck2+0x946
03 fffffb8e`8a8452c0 fffff801`5ac12c69 nt!KeBugCheckEx+0x107
04 fffffb8e`8a845300 fffff801`5ac0ef69 nt!KiBugCheckDispatch+0x69
05 fffffb8e`8a845440 fffff801`5aa156f1 nt!KiPageFault+0x469
06 fffffb8e`8a8455d0 fffff801`5b1e559d nt!KeWaitForSingleObject+0x1e1
07 fffffb8e`8a8456c0 fffff801`5b1e49de nt!ViKeWaitForSingleObjectCommon+0x95
08 fffffb8e`8a845710 fffff801`5e051280 nt!VerifierKeWaitForSingleObject+0x1e
09 fffffb8e`8a845750 fffff801`5ab225b5 MyDriver!DispatchIoControl+0x240
0a fffffb8e`8a845800 fffff801`5aeec718 nt!IofCallDriver+0x55
0b fffffb8e`8a845840 fffff801`5aeebfe5 nt!IopSynchronousServiceTail+0x1a8
0c fffffb8e`8a8458e0 fffff801`5aeeb9e6 nt!IopXxxControlFile+0x5e5
0d fffffb8e`8a845a20 fffff801`5ac126b5 nt!NtDeviceIoControlFile+0x56
0e fffffb8e`8a845a90 00007ff9`c524cf04 nt!KiSystemServiceCopyEnd+0x25
0f 0000007b`f44ff678 00007ff9`c2d0ad21 ntdll!NtDeviceIoControlFile+0x14
10 0000007b`f44ff680 00007ff9`c43f5611 KERNELBASE!DeviceIoControl+0x121
11 0000007b`f44ff6f0 00007ff6`253c85fc KERNEL32!DeviceIoControlImplementation+0x81
12 0000007b`f44ff740 000001d7`eca97ad0 0x00007ff6`253c85fc
13 0000007b`f44ff748 00000000`00000000 0x000001d7`eca97ad0
Then i found this in MSDN
https://learn.microsoft.com/en-us/windows-hardware/drivers/kernel/dispatch-routines-and-irqls
Furthermore, they should not be dependent on any blocking calls (such as KeWaitForSingleObject with a nonzero time-out).
But, i don't know why.
Why can't i call KeWaitForSingleObject with a nonzero time-out?
My KEVENT is located in Nonpaged pool!
Why there is a page fault??? Why can't i invoke???
This has nothing to do with paged vs non-paged code, your code is invoked at DISPATCH_LEVEL where it is not allowed to make a blocking wait, as per MS docs. You pass NULL instead of a 0 timeout, try this instead:
LARGE_INTEGER timeout;
timeout.QuadPart = 0;
KeWaitForSingleObject(pMainDevExt->pEvent, Executive, KernelMode, FALSE, &timeout);
Note that this will allow you to check if the event has been signalled, but you can not perform a blocking wait in DISPATCH_LEVEL, non-paged event or not ;)
I have an table named Artist and I am running a search with or operator
orQuery = Parse.Query.or(query1, query2, query3, query4, query5, query6, query7, query8, query9, query10);
but server crashing and when I am adding another row in table,then search query is working fine..
Here is the error message:
`2019-11-16T18:47:27.973552+00:00 heroku[web.1]: State changed from up to crashed
2019-11-16T18:47:28.046944+00:00 heroku[web.1]: State changed from crashed to starting
2019-11-16T18:47:27.960077+00:00 heroku[web.1]: Process exited with status 134
2019-11-16T18:47:27.856741+00:00 app[web.1]:
2019-11-16T18:47:27.856755+00:00 app[web.1]: <--- Last few GCs --->
2019-11-16T18:47:27.856757+00:00 app[web.1]:
2019-11-16T18:47:27.856759+00:00 app[web.1]: [4:0x3732630] 447289 ms: Mark-sweep 243.9 (257.8) -> 243.4 (257.8) MB, 330.2 / 0.0 ms (average mu = 0.149, current mu = 0.058) allocation failure scavenge might not succeed
2019-11-16T18:47:27.856760+00:00 app[web.1]: [4:0x3732630] 447664 ms: Mark-sweep 244.1 (257.8) -> 243.5 (257.6) MB, 367.5 / 0.0 ms (average mu = 0.086, current mu = 0.021) allocation failure scavenge might not succeed
2019-11-16T18:47:27.856762+00:00 app[web.1]: [4:0x3732630] 447686 ms: Scavenge 244.3 (257.6) -> 243.8 (257.8) MB, 1.7 / 0.0 ms (average mu = 0.086, current mu = 0.021) allocation failure
2019-11-16T18:47:27.856793+00:00 app[web.1]:
2019-11-16T18:47:27.858836+00:00 app[web.1]:
2019-11-16T18:47:27.858839+00:00 app[web.1]: <--- JS stacktrace --->
2019-11-16T18:47:27.858840+00:00 app[web.1]:
2019-11-16T18:47:27.858842+00:00 app[web.1]: ==== JS stack trace =========================================
2019-11-16T18:47:27.858844+00:00 app[web.1]:
2019-11-16T18:47:27.858845+00:00 app[web.1]: 0: ExitFrame [pc: 0x13725d9]
2019-11-16T18:47:27.858847+00:00 app[web.1]: Security context: 0x0c8fcd2808a1 <JSObject>
2019-11-16T18:47:27.858849+00:00 app[web.1]: 1: mongoObjectToParseObject(aka mongoObjectToParseObject) [0xa22d76fc3b1] [/app/node_modules/parse-server/lib/Adapters/Storage/Mongo/MongoTransform.js:~1113] [pc=0x18308b605d68](this=0x05582c3c04a9 <undefined>,0x1d950f06d4b9 <String[#11]: SearchTerms>,0x08f440575ef1 <Object map = 0x29ebf7841881>,0x059981459f61 <Object map = 0x29ebf78587b1>)
2019-11-16T18:47:27.858851+00:00 app[web.1]: 2: /* anonymou...
2019-11-16T18:47:27.858852+00:00 app[web.1]:
2019-11-16T18:47:27.858879+00:00 app[web.1]: FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
2019-11-16T18:47:27.859052+00:00 app[web.1]:
2019-11-16T18:47:27.870306+00:00 app[web.1]: Writing Node.js report to file: report.20191116.184727.4.0.001.json
2019-11-16T18:47:27.870347+00:00 app[web.1]: Node.js report completed
2019-11-16T18:47:27.870926+00:00 app[web.1]: 1: 0x9d8da0 node::Abort() [node]
2019-11-16T18:47:27.871469+00:00 app[web.1]: 2: 0x9d9f56 node::OnFatalError(char const*, char const*) [node]
2019-11-16T18:47:27.872050+00:00 app[web.1]: 3: 0xb37dbe v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [node]
2019-11-16T18:47:27.872619+00:00 app[web.1]: 4: 0xb38139 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [node]
2019-11-16T18:47:27.873259+00:00 app[web.1]: 5: 0xce34f5 [node]
2019-11-16T18:47:27.873899+00:00 app[web.1]: 6: 0xce3b86 v8::internal::Heap::RecomputeLimits(v8::internal::GarbageCollector) [node]
2019-11-16T18:47:27.874546+00:00 app[web.1]: 7: 0xcefa1a v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [node]
2019-11-16T18:47:27.875187+00:00 app[web.1]: 8: 0xcf0925 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node]
2019-11-16T18:47:27.875837+00:00 app[web.1]: 9: 0xcf3338 v8::internal::Heap::AllocateRawWithRetryOrFail(int, v8::internal::AllocationType, v8::internal::AllocationAlignment) [node]
2019-11-16T18:47:27.876468+00:00 app[web.1]: 10: 0xcb9c67 v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType) [node]
2019-11-16T18:47:27.877218+00:00 app[web.1]: 11: 0xfefb9b v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [node]
2019-11-16T18:47:27.877979+00:00 app[web.1]: 12: 0x13725d9 [node]`
this is a dupe of Node.js heap out of memory. You can try bumping up how much memory your node process has with NODE_OPTIONS="--max-old-space-size=16384" npm start.
I tried this in Procfile and now it is working
web: node --max-old-space-size=4096 parse/server.js
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 4 years ago.
Improve this question
I have a proxy that acts between a Minecraft (Windows 10 Edition) client and a server, the protocol is UDP. The client broadcasts an unconnected ping, then server replies with an unconnected pong, everything with that is okay. The thing is when the server sends the packet to my proxy, my proxy sends it to client but for some reason something happens during that part; either my proxy is not sending the packet or the client is not receiving the packet, but most likely it's the second option.
Edit: I got the unconnected pings and pongs working, now the server shows online on the server list, now the problem is mainly the open connection requests/replies. How I got the the pings and pongs working was I re-encoded the buffers and send them instead of sending them raw.
Here you can see from wireshark, the minecraft client sends an unconnected ping the proxy:
NO. Time. Source. Dest. Proto. Len. Packet
417 10.452413 10.0.0.248 10.0.0.255 RakNet 75 Unconnected Ping (client -> proxy)
430 10.457000 10.0.0.248 x.x.x.x RakNet 610 Unconnected Ping (proxy -> server)
431 10.587214 x.x.x.x 10.0.0.248 RakNet 212 Unconnected Pong (server -> proxy -> client)
Now the proxy receive the unconnected pong, send it to the client, and the client doesn't receive it, I can confirm this because on the game the server shows offline and doesn't show any data:
Localhost Server Screenshot
In my code, I first bind the proxy on port 19132 and set the server address I want to communicate with:
var config = NewConfig()
var proxy = Proxy{}
var err error
proxy.UDPConn, err = net.ListenUDP("udp", &net.UDPAddr{IP: net.ParseIP(config.BindAddr), Port: config.BindPort})
if err != nil {
Panic(err.Error())
os.Exit(1)
}
Info("Starting proxy on " + config.BindAddr + ":" + strconv.Itoa(config.BindPort))
addrs, err := net.LookupHost(config.ServerAddr)
if err != nil {
Panic(err.Error())
os.Exit(1)
}
conn := NewConnection(&proxy)
conn.server.SetAddress(net.UDPAddr{IP: net.ParseIP(addrs[0]), Port: config.ServerPort})
conn.HandleIncomingPackets()
Now my proxy starts receiving and sending packets automatically.
for true {
buffer := make([]byte, 2048)
_, addr, err := conn.proxy.UDPConn.ReadFromUDP(buffer)
if err != nil {
Alert(err.Error())
continue
}
MessageId := buffer[0]
Debug("Message Id : " + strconv.Itoa(int(MessageId))) // this is the packet id
if conn.client.IsConnected() { // client is connected
if conn.IsServer(*addr) {
conn.pkHandler.HandleIncomingPacket(buffer, conn.client) // if server send to client
}else{
conn.pkHandler.HandleIncomingPacket(buffer, conn.server) // if client send to server
}
} else {
switch MessageId {
case byte(IdUnconnectedPingOpenConnection):
conn.handleUnconnectedPing(*addr, buffer) // send this server
break
case byte(IdUnconnectedPongOpenConnection):
conn.handleUnconnectedPong(*addr, buffer) // parse server data and send to client
break
case byte(IdOpenConnectionRequest1):
conn.handleConnectionRequest1(*addr, buffer) // connect client and send to server
break
//case byte(IdOpenConnectionReply1):
// conn.handleConnectionReply1(*addr, buffer)
// break
}
}
}
This is the message id log:
[2018-06-10 13:52:12][Log/DEBUG]: Message Id : 1
[2018-06-10 13:52:12][Log/INFO]: Received unconnected ping from client address: 10.0.0.248
[2018-06-10 13:52:12][Log/DEBUG]: Message Id : 28
[2018-06-10 13:52:12][Log/INFO]: Received unconnected pong from server address: x.x.x.x
[2018-06-10 13:52:13][Log/DEBUG]: Message Id : 1
[2018-06-10 13:52:13][Log/INFO]: Received unconnected ping from client address: 10.0.0.248
[2018-06-10 13:52:13][Log/DEBUG]: Message Id : 28
[2018-06-10 13:52:13][Log/INFO]: Received unconnected pong from server address: x.x.x.x
Another way I confirmed the client is not receiving packets is that when in the game I click the server in the server list, the client sends an open connection request 1 (5) and the server replies with open connection reply 1 (6), the client is supposed to receive this and continue with an open connection request 2 (7) then finally the server replies with open connection reply 2 (8), but the client never sends open connection request 2 (7), because it never got the open connection reply 1 (6) from the proxy and hence times out and disconnects, here is a log showing this:
[2018-06-10 11:07:46][Log/DEBUG]: Message Id : 5
[5 0 255 255 0 254 254 254 254 253 253 253 253 18 52 86 120 8]
[2018-06-10 11:07:47][Log/DEBUG]: Message Id : 6
[6 0 255 255 0 254 254 254 254 253 253 253 253 18 52 86 120 36 149 162 237 197 55 226 161 0 8 28]
[2018-06-10 11:07:47][Log/DEBUG]: Message Id : 5
[5 0 255 255 0 254 254 254 254 253 253 253 253 18 52 86 120 8]
[2018-06-10 11:07:47][Log/DEBUG]: Message Id : 6
[6 0 255 255 0 254 254 254 254 253 253 253 253 18 52 86 120 36 149 162 237 197 55 226 161 0 8 28]
[2018-06-10 11:07:47][Log/DEBUG]: Message Id : 1
[1 0 0 0 0 3 3 91 191 0 255 255 0 254 254 254 254 253 253 253 253 18 52 86 120 191 216 14 215 31 123 8 249]
After so much debugging and testing, I figured I just needed to continue sending the datagram buffers, if it came from the server send it to client and vice-versa. If I cancelled the packet from sending I needed to send an ACK. It was all that simple.
I am developing a site with devise gem. Locally it's work but on heroku it is not working. Devise also send confirmation email locally but show nothing on heroku.
http://incomon.herokuapp.com/
Heroku Logs
2014-02-25T06:05:47.922900+00:00 app[web.1]: [deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
2014-02-25T06:05:47.934244+00:00 heroku[router]: at=info method=POST path=/users/sign_up host=incomon.herokuapp.com request_id=140cdcbc-c6be-4dbb-bcaf-4ab77f7a76e0 fwd="182.185.250.158" dyno=web.1 connect=2ms service=76ms status=200 bytes=3573
2014-02-25T06:24:01.826741+00:00 heroku[router]: at=info method=GET path=/ host=incomon.herokuapp.com request_id=8c3a9cc2-26c2-441f-b079-601d53025787 fwd="182.185.250.158" dyno=web.1 connect=88ms service=61ms status=304 bytes=1022
2014-02-25T06:24:03.441070+00:00 heroku[router]: at=info method=POST path=/users/sign_up host=incomon.herokuapp.com request_id=52e81d7a-cd33-4bf8-9a7c-c85ef57f9ca6 fwd="182.185.250.158" dyno=web.1 connect=1ms service=15ms status=200 bytes=3573
2014-02-25T06:24:15.053833+00:00 app[web.1]: FATAL: terminating connection due to administrator command
2014-02-25T06:27:07.154449+00:00 heroku[router]: at=info method=GET path=/ host=incomon.herokuapp.com request_id=377101eb-2804-46d3-a41d-d0f65fd07726 fwd="182.185.250.158" dyno=web.1 connect=0ms service=67ms status=200 bytes=1636
2014-02-25T06:27:10.767345+00:00 heroku[router]: at=info method=GET path=/favicon.ico host=incomon.herokuapp.com request_id=8681650f-b5ea-438f-b16a-ccf863e49eab fwd="182.185.250.158" dyno=web.1 connect=1ms service=6ms status=200 bytes=228
2014-02-25T06:27:26.227841+00:00 heroku[router]: at=info method=POST path=/users host=incomon.herokuapp.com request_id=18c1662e-070f-4cc4-b800-347d2ba8663a fwd="182.185.250.158" dyno=web.1 connect=1ms service=136ms status=500 bytes=1543
2014-02-25T06:27:26.692345+00:00 heroku[router]: at=info method=GET path=/favicon.ico host=incomon.herokuapp.com request_id=a5491fe3-e684-4b3e-b094-7ca5f096866f fwd="182.185.250.158" dyno=web.1 connect=2ms service=7ms status=304 bytes=133
2014-02-25T06:27:35.903201+00:00 heroku[router]: at=info method=GET path=/ host=incomon.herokuapp.com request_id=b826446e-15d7-487f-a93f-86a667a034bb fwd="182.185.250.158" dyno=web.1 connect=1ms service=10ms status=304 bytes=848
2014-02-25T06:27:36.553396+00:00 heroku[router]: at=info method=GET path=/favicon.ico host=incomon.herokuapp.com request_id=03a94dbd-2bd0-417a-8333-67a4996605f6 fwd="182.185.250.158" dyno=web.1 connect=0ms service=8ms status=304 bytes=133
2014-02-25T06:27:39.361486+00:00 heroku[router]: at=info method=GET path=/favicon.ico host=incomon.herokuapp.com request_id=d0eae806-b61b-4f84-af8e-d0fc73b30c64 fwd="182.185.250.158" dyno=web.1 connect=0ms service=7ms status=304 bytes=133
2014-02-25T06:27:40.517027+00:00 heroku[router]: at=info method=POST path=/users/sign_in host=incomon.herokuapp.com request_id=45769d05-2579-4ada-ae77-330e68f14ea7 fwd="182.185.250.158" dyno=web.1 connect=1ms service=23ms status=200 bytes=2710
2014-02-25T06:27:40.907652+00:00 heroku[router]: at=info method=GET path=/favicon.ico host=incomon.herokuapp.com request_id=70b3f49a-fa9c-4281-8515-9399636277d3 fwd="182.185.250.158" dyno=web.1 connect=2ms service=11ms status=304 bytes=133
2014-02-25T06:27:46.970682+00:00 app[web.1]: I, [2014-02-25T06:05:47.869467 #2] INFO -- : Processing by User::RegistrationsController#new as HTML
2014-02-25T06:27:46.970682+00:00
app[web.1]: => Ctrl-C to shutdown server
2014-02-25T06:27:46.970682+00:00 app[web.1]: I, [2014-02-25T06:04:46.336464 #2] INFO -- : Started GET "/" for 182.185.250.158 at 2014-02-25 06:04:46 +0000
2014-02-25T06:27:46.970682+00:00 app[web.1]: I, [2014-02-25T06:04:46.444481 #2] INFO -- : Processing by HomeController#index as HTML
2014-02-25T06:27:46.970682+00:00 app[web.1]: I, [2014-02-25T06:04:46.506698 #2] INFO -- : Rendered home/index.html.haml within layouts/application (23.4ms)
2014-02-25T06:27:46.970682+00:00 app[web.1]: I, [2014-02-25T06:04:46.508911 #2] INFO -- : Completed 200 OK in 64ms (Views: 30.2ms | ActiveRecord: 0.0ms)
2014-02-25T06:27:46.970962+00:00 app[web.1]: I, [2014-02-25T06:05:58.328060 #2] INFO -- : Processing by User::RegistrationsController#create as HTML
2014-02-25T06:27:46.970962+00:00 app[web.1]: I, [2014-02-25T06:05:59.225468 #2] INFO -- : Completed 500 Internal Server Error in 897ms
2014-02-25T06:27:46.970962+00:00 app[web.1]: I, [2014-02-25T06:05:47.932458 #2] INFO -- : Completed 200 OK in 63ms (Views: 44.8ms | ActiveRecord: 12.0ms)
2014-02-25T06:27:46.970962+00:00 app[web.1]: I, [2014-02-25T06:05:59.223051 #2] INFO -- : Rendered vendor/bundle/ruby/2.0.0/gems/devise-3.2.2/app/views/devise/mailer/confirmation_instructions.html.erb (48.4ms)
2014-02-25T06:27:46.970962+00:00 app[web.1]: F, [2014-02-25T06:05:59.228397 #2] FATAL -- :
2014-02-25T06:27:46.970962+00:00 app[web.1]: ActionView::Template::Error (Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true):
2014-02-25T06:27:46.971156+00:00 app[web.1]: 5: <p><%= link_to 'Confirm my account', confirmation_url(#resource, :confirmation_token => #token) %></p>
2014-02-25T06:27:46.971156+00:00 app[web.1]: 2:
2014-02-25T06:27:46.971156+00:00 app[web.1]: 4:
2014-02-25T06:27:46.971156+00:00 app[web.1]:
2014-02-25T06:27:46.971156+00:00 app[web.1]: 3: <p>You can confirm your account email through the link below:</p>
2014-02-25T06:27:46.971156+00:00 app[web.1]: app/controllers/user/registrations_controller.rb:16:in `create'
2014-02-25T06:27:46.971915+00:00 app[web.1]: I, [2014-02-25T06:24:03.428963 #2] INFO -- : Started GET "/users/sign_up" for 182.185.250.158 at 2014-02-25 06:24:03 +0000
2014-02-25T06:27:46.971156+00:00 app[web.1]: I, [2014-02-25T06:24:01.789030 #2] INFO -- : Rendered home/index.html.haml within layouts/application (1.0ms)
2014-02-25T06:27:46.971156+00:00 app[web.1]: I, [2014-02-25T06:24:01.784470 #2] INFO -- : Started GET "/" for 182.185.250.158 at 2014-02-25 06:24:01 +0000
2014-02-25T06:27:46.971156+00:00 app[web.1]:
2014-02-25T06:27:46.971915+00:00 app[web.1]: I, [2014-02-25T06:24:03.431179 #2] INFO -- : Processing by User::RegistrationsController#new as HTML
2014-02-25T06:27:46.971156+00:00 app[web.1]: I, [2014-02-25T06:24:01.786775 #2] INFO -- : Processing by HomeController#index as HTML
2014-02-25T06:27:46.971915+00:00 app[web.1]: I, [2014-02-25T06:24:14.949567 #2] INFO -- : Processing by User::RegistrationsController#create as HTML
2014-02-25T06:27:46.971915+00:00 app[web.1]: I, [2014-02-25T06:24:03.437029 #2] INFO -- : Rendered user/registrations/new.html.haml within layouts/application (3.3ms)
2014-02-25T06:27:46.971915+00:00 app[web.1]: I, [2014-02-25T06:24:01.790129 #2] INFO -- : Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)
2014-02-25T06:27:46.971915+00:00 app[web.1]: I, [2014-02-25T06:24:03.431343 #2] INFO -- : Parameters: {"authenticity_token"=>"AkkP/F7SZjNfBGPERz80uQLTrnw3gi8P8/gfa6OIOL0="}
2014-02-25T06:27:46.971915+00:00 app[web.1]: I, [2014-02-25T06:24:14.949696 #2] INFO -- : Parameters: {"utf8"=>"✓", "authenticity_token"=>"AkkP/F7SZjNfBGPERz80uQLTrnw3gi8P8/gfa6OIOL0=", "user"=>{"firstName"=>"Tayyab", "lastName"=>"Zahid", "email"=>"tayyabzahid96#gmail.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "userName"=>"tayyab"}, "commit"=>"Sign Up"}
2014-02-25T06:27:46.972148+00:00 app[web.1]: I, [2014-02-25T06:24:15.054836 #2] INFO -- : Completed 500 Internal Server Error in 105ms
2014-02-25T06:27:46.972148+00:00 app[web.1]: : BEGIN
2014-02-25T06:27:46.971915+00:00 app[web.1]: I, [2014-02-25T06:24:03.437836 #2] INFO -- : Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.0ms)
2014-02-25T06:27:46.971915+00:00 app[web.1]: I, [2014-02-25T06:24:14.947905 #2] INFO -- : Started POST "/users" for 182.185.250.158 at 2014-02-25 06:24:14 +0000
2014-02-25T06:27:46.971915+00:00 app[web.1]: E, [2014-02-25T06:24:15.054427 #2] ERROR -- : PG::ConnectionBad: PQconsumeInput() SSL connection has been closed unexpectedly
2014-02-25T06:27:46.972148+00:00 app[web.1]: F, [2014-02-25T06:24:15.056230 #2] FATAL -- :
2014-02-25T06:27:46.972148+00:00 app[web.1]: I, [2014-02-25T06:27:07.092850 #2] INFO -- : Started GET "/" for 182.185.250.158 at 2014-02-25 06:27:07 +0000
2014-02-25T06:27:46.972148+00:00 app[web.1]: app/controllers/user/registrations_controller.rb:16:in `create'
2014-02-25T06:27:46.972148+00:00 app[web.1]: I, [2014-02-25T06:27:07.137126 #2] INFO -- : Processing by HomeController#index as HTML
2014-02-25T06:27:46.972620+00:00 app[web.1]: I, [2014-02-25T06:27:07.141871 #2] INFO -- : Rendered home/index.html.haml within layouts/application (1.5ms)
2014-02-25T06:27:46.972620+00:00 app[web.1]: I, [2014-02-25T06:27:07.153884 #2] INFO -- : Completed 200 OK in 16ms (Views: 14.2ms | ActiveRecord: 0.0ms)
2014-02-25T06:27:46.972620+00:00 app[web.1]: I, [2014-02-25T06:27:12.070759 #2] INFO -- : Started GET "/users/sign_up" for 182.185.250.158 at 2014-02-25 06:27:12 +0000
2014-02-25T06:27:46.972620+00:00 app[web.1]: I, [2014-02-25T06:27:12.080240 #2] INFO -- : Rendered user/registrations/new.html.haml within layouts/application (4.0ms)
2014-02-25T06:27:46.972620+00:00 app[web.1]: I, [2014-02-25T06:27:12.073526 #2] INFO -- : Processing by User::RegistrationsController#new as HTML
2014-02-25T06:27:46.972620+00:00 app[web.1]: I, [2014-02-25T06:27:12.073625 #2] INFO -- : Parameters: {"authenticity_token"=>"w+7mt9jtpi52dlmiEQXc996D+gYN9r/amyAP3RahSuM="}
2014-02-25T06:27:46.972811+00:00 app[web.1]: E, [2014-02-25T06:27:26.203898 #2] ERROR -- : PG::UndefinedTable: ERROR: relation "users" does not exist
2014-02-25T06:27:46.972620+00:00 app[web.1]: I, [2014-02-25T06:27:12.081285 #2] INFO -- : Completed 200 OK in 8ms (Views: 5.5ms | ActiveRecord: 0.0ms)
2014-02-25T06:27:46.972620+00:00 app[web.1]: I, [2014-02-25T06:27:26.097156 #2] INFO -- : Started POST "/users" for 182.185.250.158 at 2014-02-25 06:27:26 +0000
2014-02-25T06:27:46.972811+00:00 app[web.1]: ^
2014-02-25T06:27:46.972811+00:00 app[web.1]: LINE 1: SELECT 1 AS one FROM "users" WHERE "users"."email" = 'tayy...
2014-02-25T06:27:46.972811+00:00 app[web.1]: LINE 1: SELECT 1 AS one FROM "users" WHERE "users"."email" = 'tayy...
2014-02-25T06:27:46.972620+00:00 app[web.1]: I, [2014-02-25T06:27:26.098986 #2] INFO -- : Processing by User::RegistrationsController#create as HTML
2014-02-25T06:27:46.972620+00:00 app[web.1]: I, [2014-02-25T06:27:26.099114 #2] INFO -- : Parameters: {"utf8"=>"✓", "authenticity_token"=>"w+7mt9jtpi52dlmiEQXc996D+gYN9r/amyAP3RahSuM=", "user"=>{"firstName"=>"Tayyab", "lastName"=>"Zahid", "email"=>"tayyabz#stis.pk", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "userName"=>"tayyab"}, "commit"=>"Sign Up"}
2014-02-25T06:27:46.972811+00:00 app[web.1]: I, [2014-02-25T06:27:26.225627 #2] INFO -- : Completed 500 Internal Server Error in 126ms
2014-02-25T06:27:46.973311+00:00 app[web.1]:
2014-02-25T06:27:46.973311+00:00 app[web.1]: app/controllers/user/registrations_controller.rb:16:in `create'
2014-02-25T06:27:46.973311+00:00 app[web.1]: I, [2014-02-25T06:27:35.897992 #2] INFO -- : Processing by HomeController#index as HTML
2014-02-25T06:27:46.972811+00:00 app[web.1]: : SELECT 1 AS one FROM "users" WHERE "users"."email" = 'tayyabz#stis.pk' LIMIT 1):
2014-02-25T06:27:46.973311+00:00 app[web.1]: I, [2014-02-25T06:27:35.896428 #2] INFO -- : Started GET "/" for 182.185.250.158 at 2014-02-25 06:27:35 +0000
2014-02-25T06:27:46.973311+00:00 app[web.1]: I, [2014-02-25T06:27:35.901762 #2] INFO -- : Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.0ms)
2014-02-25T06:27:46.972811+00:00 app[web.1]: : SELECT 1 AS one FROM "users" WHERE "users"."email" = 'tayyabz#stis.pk' LIMIT 1
2014-02-25T06:27:46.973311+00:00 app[web.1]: I, [2014-02-25T06:27:40.499174 #2] INFO -- : Started GET "/users/sign_in" for 182.185.250.158 at 2014-02-25 06:27:40 +0000
2014-02-25T06:27:46.973493+00:00 app[web.1]: I, [2014-02-25T06:27:40.516752 #2] INFO -- : Completed 200 OK in 14ms (Views: 11.5ms | ActiveRecord: 0.0ms)
2014-02-25T06:27:46.972811+00:00 app[web.1]: F, [2014-02-25T06:27:26.227535 #2] FATAL -- :
2014-02-25T06:27:46.972811+00:00 app[web.1]: ActiveRecord::StatementInvalid (PG::UndefinedTable: ERROR: relation "users" does not exist
2014-02-25T06:27:46.973493+00:00 app[web.1]: I, [2014-02-25T06:27:46.964988 #2] INFO -- : Started POST "/users/sign_in" for 182.185.250.158 at 2014-02-25 06:27:46 +0000
2014-02-25T06:27:46.973311+00:00 app[web.1]:
2014-02-25T06:27:46.973493+00:00 app[web.1]: I, [2014-02-25T06:27:46.969713 #2] INFO -- : Processing by User::SessionsController#create as HTML
2014-02-25T06:27:46.970962+00:00 app[web.1]: I, [2014-02-25T06:05:47.869564 #2] INFO -- : Parameters: {"authenticity_token"=>"AkkP/F7SZjNfBGPERz80uQLTrnw3gi8P8/gfa6OIOL0="}
2014-02-25T06:27:46.970962+00:00 app[web.1]: I, [2014-02-25T06:05:58.324570 #2] INFO -- : Started POST "/users" for 182.185.250.158 at 2014-02-25 06:05:58 +0000
2014-02-25T06:27:46.970962+00:00 app[web.1]: I, [2014-02-25T06:05:58.328309 #2] INFO -- : Parameters: {"utf8"=>"✓", "authenticity_token"=>"AkkP/F7SZjNfBGPERz80uQLTrnw3gi8P8/gfa6OIOL0=", "user"=>{"firstName"=>"Tayyab", "lastName"=>"Zahid", "email"=>"tayyabzahid96#gmail.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "userName"=>"tayyab"}, "commit"=>"Sign Up"}
2014-02-25T06:27:46.972148+00:00 app[web.1]: : BEGIN):
2014-02-25T06:27:46.972148+00:00 app[web.1]:
2014-02-25T06:27:46.972148+00:00 app[web.1]:
2014-02-25T06:27:46.973311+00:00 app[web.1]: I, [2014-02-25T06:27:35.900793 #2] INFO -- : Rendered home/index.html.haml within layouts/application (1.2ms)
2014-02-25T06:27:46.973311+00:00 app[web.1]: I, [2014-02-25T06:27:40.502401 #2] INFO -- : Processing by User::SessionsController#new as HTML
2014-02-25T06:27:46.973493+00:00 app[web.1]: I, [2014-02-25T06:27:46.969849 #2] INFO -- : Parameters: {"utf8"=>"✓", "authenticity_token"=>"w+7mt9jtpi52dlmiEQXc996D+gYN9r/amyAP3RahSuM=", "user"=>{"email"=>"tayyabz#stis.pk", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
2014-02-25T06:27:46.973311+00:00 app[web.1]: I, [2014-02-25T06:27:40.502524 #2] INFO -- : Parameters: {"authenticity_token"=>"w+7mt9jtpi52dlmiEQXc996D+gYN9r/amyAP3RahSuM="}
2014-02-25T06:27:46.970682+00:00 app[web.1]: => Booting WEBrick
2014-02-25T06:27:46.970682+00:00 app[web.1]: => Rails 4.0.2 application starting in production on http://0.0.0.0:22113
2014-02-25T06:27:46.970682+00:00 app[web.1]: => Run `rails server -h` for more startup options
2014-02-25T06:27:46.970682+00:00 app[web.1]: I, [2014-02-25T06:05:47.866396 #2] INFO -- : Started GET "/users/sign_up" for 182.185.250.158 at 2014-02-25 06:05:47 +0000
2014-02-25T06:27:46.970962+00:00 app[web.1]: I, [2014-02-25T06:05:47.931496 #2] INFO -- : Rendered user/registrations/new.html.haml within layouts/application (40.6ms)
2014-02-25T06:27:46.972148+00:00 app[web.1]: ActiveRecord::StatementInvalid (PG::ConnectionBad: PQconsumeInput() SSL connection has been closed unexpectedly
2014-02-25T06:27:46.972811+00:00 app[web.1]: ^
2014-02-25T06:27:46.973493+00:00 app[web.1]: I, [2014-02-25T06:27:40.515825 #2] INFO -- : Rendered user/sessions/new.html.haml within layouts/application (8.2ms)
2014-02-25T06:27:46.981461+00:00 heroku[router]: at=info method=POST path=/users/sign_in host=incomon.herokuapp.com request_id=870f7f2b-252a-4932-acee-b155b11ff492 fwd="182.185.250.158" dyno=web.1 connect=0ms service=24ms status=500 bytes=1543
2014-02-25T06:27:47.372924+00:00 heroku[router]: at=info method=GET path=/favicon.ico host=incomon.herokuapp.com request_id=527d7c85-5306-42c5-8880-093b22f2e39f fwd="182.185.250.158" dyno=web.1 connect=6ms service=6ms status=304 bytes=133
Error on Webpage
We're sorry, but something went wrong.
If you are the application owner check the logs for more information.
Why this will be happening? Any Help?
ActiveRecord::StatementInvalid (PG::UndefinedTable: ERROR: relation "users" does not exist
It looks like maybe you haven't run your migrations yet?