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
Related
Trying to debug my program written in rust with lldb and cppvsdbg, and after executing a function, that supposed to return either tuple of Result(Protocol, Value), or Box<dyn std::error::Error> it throws this panic:
thread 'main' panicked at 'called Result::unwrap() on an Err value: Os { code: 3, kind: NotFound, message: "The system cannot find the path specified." }', replay_parser\src\lib.rs:167:55
I.e. it cannot find some file.
Not sure what file it refers to, but here is a full backtrace:
From lldb:
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 3, kind: NotFound, message: "The system cannot find the path specified." }', replay_parser\src\lib.rs:167:55
stack backtrace:
0: 0x7ff78321d28e - std::backtrace_rs::backtrace::dbghelp::trace
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\/library\std\src\..\..\backtrace\src\backtrace\dbghelp.rs:98
1: 0x7ff78321d28e - std::backtrace_rs::backtrace::trace_unsynchronized
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\/library\std\src\..\..\backtrace\src\backtrace\mod.rs:66
2: 0x7ff78321d28e - std::sys_common::backtrace::_print_fmt
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\/library\std\src\sys_common\backtrace.rs:67
3: 0x7ff78321d28e - std::sys_common::backtrace::_print::{{impl}}::fmt
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\/library\std\src\sys_common\backtrace.rs:46
4: 0x7ff78323422b - core::fmt::write
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\/library\core\src\fmt\mod.rs:1078
5: 0x7ff783218ab8 - std::io::Write::write_fmt<std::sys::windows::stdio::Stderr>
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\/library\std\src\io\mod.rs:1517
6: 0x7ff78321ffcd - std::sys_common::backtrace::_print
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\/library\std\src\sys_common\backtrace.rs:49
7: 0x7ff78321ffcd - std::sys_common::backtrace::print
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\/library\std\src\sys_common\backtrace.rs:36
8: 0x7ff78321ffcd - std::panicking::default_hook::{{closure}}
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\/library\std\src\panicking.rs:208
9: 0x7ff78321fa34 - std::panicking::default_hook
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\/library\std\src\panicking.rs:225
10: 0x7ff7832208de - std::panicking::rust_panic_with_hook
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\/library\std\src\panicking.rs:591
11: 0x7ff783220401 - std::panicking::begin_panic_handler::{{closure}}
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\/library\std\src\panicking.rs:497
12: 0x7ff78321dbef - std::sys_common::backtrace::__rust_end_short_backtrace<closure-0,!>
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\/library\std\src\sys_common\backtrace.rs:141
13: 0x7ff783220359 - std::panicking::begin_panic_handler
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\/library\std\src\panicking.rs:493
14: 0x7ff783233550 - core::panicking::panic_fmt
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\/library\core\src\panicking.rs:92
15: 0x7ff783233373 - core::option::expect_none_failed
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\/library\core\src\option.rs:1268
16: 0x7ff782fd55e2 - core::result::Result<mpq::archive::Archive, std::io::error::Error>::unwrap<mpq::archive::Archive,std::io::error::Error>
at C:\Users\Xeizzeth\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\result.rs:973
17: 0x7ff782fd4600 - replay_parser::parse_replay
at D:\Projects\SC2Emul\SC2Emulator\replay_parser\src\lib.rs:167
18: 0x7ff782fd14d8 - sc2_emulator::main
at D:\Projects\SC2Emul\SC2Emulator\sc2emul\src\main.rs:31
19: 0x7ff782fd174b - core::ops::function::FnOnce::call_once<fn() -> core::result::Result<tuple<>, log::SetLoggerError>,tuple<>>
at C:\Users\Xeizzeth\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\ops\function.rs:227
20: 0x7ff782fd154b - std::sys_common::backtrace::__rust_begin_short_backtrace<fn() -> core::result::Result<tuple<>, log::SetLoggerError>,core::result::Result<tuple<>, log::SetLoggerError>>
at C:\Users\Xeizzeth\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\sys_common\backtrace.rs:125
21: 0x7ff782fd17f1 - std::rt::lang_start::{{closure}}<core::result::Result<tuple<>, log::SetLoggerError>>
at C:\Users\Xeizzeth\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\rt.rs:66
22: 0x7ff783220a94 - core::ops::function::impls::{{impl}}::call_once
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\library\core\src\ops\function.rs:280
23: 0x7ff783220a94 - std::panicking::try::do_call
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\/library\std\src\panicking.rs:379
24: 0x7ff783220a94 - std::panicking::try
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\/library\std\src\panicking.rs:343
25: 0x7ff783220a94 - std::panic::catch_unwind
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\/library\std\src\panic.rs:396
26: 0x7ff783220a94 - std::rt::lang_start_internal
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\/library\std\src\rt.rs:51
27: 0x7ff782fd17c3 - std::rt::lang_start<core::result::Result<tuple<>, log::SetLoggerError>>
at C:\Users\Xeizzeth\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\rt.rs:65
28: 0x7ff782fd1510 - main
29: 0x7ff78325abbc - invoke_main
at d:\A01\_work\12\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:78
30: 0x7ff78325abbc - __scrt_common_main_seh
at d:\A01\_work\12\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288
31: 0x7ffed1de7034 - BaseThreadInitThunk
32: 0x7ffed1f82651 - RtlUserThreadStart
And from cppvsdbg:
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 3, kind: NotFound, message: "The system cannot find the path specified." }', replay_parser\src\lib.rs:167:55
stack backtrace:
0: 0x7ff78321d28e - std::backtrace_rs::backtrace::dbghelp::trace
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\/library\std\src\..\..\backtrace\src\backtrace\dbghelp.rs:98
1: 0x7ff78321d28e - std::backtrace_rs::backtrace::trace_unsynchronized
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\/library\std\src\..\..\backtrace\src\backtrace\mod.rs:66
2: 0x7ff78321d28e - std::sys_common::backtrace::_print_fmt
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\/library\std\src\sys_common\backtrace.rs:67
3: 0x7ff78321d28e - std::sys_common::backtrace::_print::{{impl}}::fmt
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\/library\std\src\sys_common\backtrace.rs:46
4: 0x7ff78323422b - core::fmt::write
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\/library\core\src\fmt\mod.rs:1078
5: 0x7ff783218ab8 - std::io::Write::write_fmt<std::sys::windows::stdio::Stderr>
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\/library\std\src\io\mod.rs:1517
6: 0x7ff78321ffcd - std::sys_common::backtrace::_print
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\/library\std\src\sys_common\backtrace.rs:49
7: 0x7ff78321ffcd - std::sys_common::backtrace::print
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\/library\std\src\sys_common\backtrace.rs:36
8: 0x7ff78321ffcd - std::panicking::default_hook::{{closure}}
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\/library\std\src\panicking.rs:208
9: 0x7ff78321fa34 - std::panicking::default_hook
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\/library\std\src\panicking.rs:225
10: 0x7ff7832208de - std::panicking::rust_panic_with_hook
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\/library\std\src\panicking.rs:591
11: 0x7ff783220401 - std::panicking::begin_panic_handler::{{closure}}
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\/library\std\src\panicking.rs:497
12: 0x7ff78321dbef - std::sys_common::backtrace::__rust_end_short_backtrace<closure-0,!>
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\/library\std\src\sys_common\backtrace.rs:141
13: 0x7ff783220359 - std::panicking::begin_panic_handler
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\/library\std\src\panicking.rs:493
14: 0x7ff783233550 - core::panicking::panic_fmt
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\/library\core\src\panicking.rs:92
15: 0x7ff783233373 - core::option::expect_none_failed
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\/library\core\src\option.rs:1268
16: 0x7ff782fd55e2 - core::result::Result<mpq::archive::Archive, std::io::error::Error>::unwrap<mpq::archive::Archive,std::io::error::Error>
at C:\Users\Xeizzeth\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\result.rs:973
17: 0x7ff782fd4600 - replay_parser::parse_replay
at D:\Projects\SC2Emul\SC2Emulator\replay_parser\src\lib.rs:167
18: 0x7ff782fd14d8 - sc2_emulator::main
at D:\Projects\SC2Emul\SC2Emulator\sc2emul\src\main.rs:31
19: 0x7ff782fd174b - core::ops::function::FnOnce::call_once<fn() -> core::result::Result<tuple<>, log::SetLoggerError>,tuple<>>
at C:\Users\Xeizzeth\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\ops\function.rs:227
20: 0x7ff782fd154b - std::sys_common::backtrace::__rust_begin_short_backtrace<fn() -> core::result::Result<tuple<>, log::SetLoggerError>,core::result::Result<tuple<>, log::SetLoggerError>>
at C:\Users\Xeizzeth\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\sys_common\backtrace.rs:125
21: 0x7ff782fd17f1 - std::rt::lang_start::{{closure}}<core::result::Result<tuple<>, log::SetLoggerError>>
at C:\Users\Xeizzeth\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\rt.rs:66
22: 0x7ff783220a94 - core::ops::function::impls::{{impl}}::call_once
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\library\core\src\ops\function.rs:280
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 3, kind: NotFound, message: "The system cannot find the path specified." }', replay_parser\src\lib.rs:167:55
stack backtrace:
0: 0x7ff78321d28e - std::backtrace_rs::backtrace::dbghelp::trace
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\/library\std\src\..\..\backtrace\src\backtrace\dbghelp.rs:98
1: 0x7ff78321d28e - std::backtrace_rs::backtrace::trace_unsynchronized
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\/library\std\src\..\..\backtrace\src\backtrace\mod.rs:66
2: 0x7ff78321d28e - std::sys_common::backtrace::_print_fmt
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\/library\std\src\sys_common\backtrace.rs:67
3: 0x7ff78321d28e - std::sys_common::backtrace::_print::{{impl}}::fmt
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\/library\std\src\sys_common\backtrace.rs:46
4: 0x7ff78323422b - core::fmt::write
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\/library\core\src\fmt\mod.rs:1078
5: 0x7ff783218ab8 - std::io::Write::write_fmt<std::sys::windows::stdio::Stderr>
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\/library\std\src\io\mod.rs:1517
6: 0x7ff78321ffcd - std::sys_common::backtrace::_print
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\/library\std\src\sys_common\backtrace.rs:49
7: 0x7ff78321ffcd - std::sys_common::backtrace::print
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\/library\std\src\sys_common\backtrace.rs:36
8: 0x7ff78321ffcd - std::panicking::default_hook::{{closure}}
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\/library\std\src\panicking.rs:208
9: 0x7ff78321fa34 - std::panicking::default_hook
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\/library\std\src\panicking.rs:225
10: 0x7ff7832208de - std::panicking::rust_panic_with_hook
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\/library\std\src\panicking.rs:591
11: 0x7ff783220401 - std::panicking::begin_panic_handler::{{closure}}
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\/library\std\src\panicking.rs:497
12: 0x7ff78321dbef - std::sys_common::backtrace::__rust_end_short_backtrace<closure-0,!>
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\/library\std\src\sys_common\backtrace.rs:141
13: 0x7ff783220359 - std::panicking::begin_panic_handler
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\/library\std\src\panicking.rs:493
14: 0x7ff783233550 - core::panicking::panic_fmt
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\/library\core\src\panicking.rs:92
15: 0x7ff783233373 - core::option::expect_none_failed
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\/library\core\src\option.rs:1268
16: 0x7ff782fd55e2 - core::result::Result<mpq::archive::Archive, std::io::error::Error>::unwrap<mpq::archive::Archive,std::io::error::Error>
at C:\Users\Xeizzeth\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\result.rs:973
17: 0x7ff782fd4600 - replay_parser::parse_replay
at D:\Projects\SC2Emul\SC2Emulator\replay_parser\src\lib.rs:167
18: 0x7ff782fd14d8 - sc2_emulator::main
at D:\Projects\SC2Emul\SC2Emulator\sc2emul\src\main.rs:31
19: 0x7ff782fd174b - core::ops::function::FnOnce::call_once<fn() -> core::result::Result<tuple<>, log::SetLoggerError>,tuple<>>
at C:\Users\Xeizzeth\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\ops\function.rs:227
20: 0x7ff782fd154b - std::sys_common::backtrace::__rust_begin_short_backtrace<fn() -> core::result::Result<tuple<>, log::SetLoggerError>,core::result::Result<tuple<>, log::SetLoggerError>>
at C:\Users\Xeizzeth\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\sys_common\backtrace.rs:125
21: 0x7ff782fd17f1 - std::rt::lang_start::{{closure}}<core::result::Result<tuple<>, log::SetLoggerError>>
at C:\Users\Xeizzeth\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\rt.rs:66
22: 0x7ff783220a94 - core::ops::function::impls::{{impl}}::call_once
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\library\core\src\ops\function.rs:280
23: 0x7ff783220a94 - std::panicking::try::do_call
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\/library\std\src\panicking.rs:379
24: 0x7ff783220a94 - std::panicking::try
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\/library\std\src\panicking.rs:343
25: 0x7ff783220a94 - std::panic::catch_unwind
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\/library\std\src\panic.rs:396
26: 0x7ff783220a94 - std::rt::lang_start_internal
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b\/library\std\src\rt.rs:51
27: 0x7ff782fd17c3 - std::rt::lang_start<core::result::Result<tuple<>, log::SetLoggerError>>
at C:\Users\Xeizzeth\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\rt.rs:65
28: 0x7ff782fd1510 - main
29: 0x7ff78325abbc - invoke_main
at d:\A01\_work\12\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:78
30: 0x7ff78325abbc - __scrt_common_main_seh
at d:\A01\_work\12\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288
31: 0x7ffed1de7034 - BaseThreadInitThunk
32: 0x7ffed1f82651 - RtlUserThreadStart
Any help is appreciated.
The problem was that it couldn't find the replay archive specified. I supplied it with relative path, and during debugging it couldn't find it by relative path so I had to supply the absolute path.
The Rust code is
use std::process::Command;
fn main() {
if cfg!(target_os = "windows") {
Command::new("cls").spawn().expect("cls command failed to start");
} else {
println!("Not windows");
}
}
and the error is
PS C:\dev\Rust\testing> cargo run
Compiling testing v0.1.0 (C:\dev\Rust\testing)
Finished dev [unoptimized + debuginfo] target(s) in 0.95s
Running `target\debug\testing.exe`
thread 'main' panicked at 'cls command failed to start: Os { code: 2, kind: NotFound, message: "The system cannot find the file
specified." }', src\main.rs:5:37
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
error: process didn't exit successfully: `target\debug\testing.exe` (exit code: 101)
with RUST_BACKTRACE="full":
PS C:\dev\Rust\testing> cargo run
Compiling testing v0.1.0 (C:\dev\Rust\testing)
Finished dev [unoptimized + debuginfo] target(s) in 1.12s
Running `target\debug\testing.exe`
thread 'main' panicked at 'cls command failed to start: Os { code: 2, kind: NotFound, message: "The system cannot find the file specified." }', src\main.rs:5:37
stack backtrace:
0: 0x7ff7c9ecf059 - std::backtrace_rs::backtrace::dbghelp::trace
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4\/library\std\src\..\..\backtrace\src\backtrace\dbghelp.rs:98
1: 0x7ff7c9ecf059 - std::backtrace_rs::backtrace::trace_unsynchronized
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4\/library\std\src\..\..\backtrace\src\backtrace\mod.rs:66
2: 0x7ff7c9ecf059 - std::sys_common::backtrace::_print_fmt
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4\/library\std\src\sys_common\backtrace.rs:79
3: 0x7ff7c9ecf059 - std::sys_common::backtrace::_print::{{impl}}::fmt
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4\/library\std\src\sys_common\backtrace.rs:58
4: 0x7ff7c9ee32fb - core::fmt::write
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4\/library\core\src\fmt\mod.rs:1080
5: 0x7ff7c9ecc598 - std::io::Write::write_fmt<std::sys::windows::stdio::Stderr>
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4\/library\std\src\io\mod.rs:1516
6: 0x7ff7c9ed1ae4 - std::sys_common::backtrace::_print
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4\/library\std\src\sys_common\backtrace.rs:61
7: 0x7ff7c9ed1ae4 - std::sys_common::backtrace::print
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4\/library\std\src\sys_common\backtrace.rs:48
8: 0x7ff7c9ed1ae4 - std::panicking::default_hook::{{closure}}
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4\/library\std\src\panicking.rs:208
9: 0x7ff7c9ed16c8 - std::panicking::default_hook
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4\/library\std\src\panicking.rs:227
10: 0x7ff7c9ed239f - std::panicking::rust_panic_with_hook
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4\/library\std\src\panicking.rs:577
11: 0x7ff7c9ed1f05 - std::panicking::begin_panic_handler::{{closure}}
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4\/library\std\src\panicking.rs:484
12: 0x7ff7c9ecf93f - std::sys_common::backtrace::__rust_end_short_backtrace<closure-0,!>
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4\/library\std\src\sys_common\backtrace.rs:153
13: 0x7ff7c9ed1eb9 - std::panicking::begin_panic_handler
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4\/library\std\src\panicking.rs:483
14: 0x7ff7c9ee2590 - core::panicking::panic_fmt
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4\/library\core\src\panicking.rs:85
15: 0x7ff7c9ee23b3 - core::option::expect_none_failed
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4\/library\core\src\option.rs:1234
16: 0x7ff7c9ec11c8 - core::result::Result<std::process::Child, std::io::error::Error>::expect<std::process::Child,std::io::error::Error>
at C:\Users\sadic\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\result.rs:933
17: 0x7ff7c9ec5f8f - testing::main
at C:\dev\Rust\testing\src\main.rs:5
18: 0x7ff7c9ec31eb - core::ops::function::FnOnce::call_once<fn(),tuple<>>
at C:\Users\sadic\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\ops\function.rs:227
19: 0x7ff7c9ec1d7b - std::sys_common::backtrace::__rust_begin_short_backtrace<fn(),tuple<>>
at C:\Users\sadic\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\sys_common\backtrace.rs:137
20: 0x7ff7c9ec40e1 - std::rt::lang_start::{{closure}}<tuple<>>
at C:\Users\sadic\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\rt.rs:66
21: 0x7ff7c9ed25a3 - core::ops::function::impls::{{impl}}::call_once
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4\library\core\src\ops\function.rs:280
22: 0x7ff7c9ed25a3 - std::panicking::try::do_call
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4\/library\std\src\panicking.rs:381
23: 0x7ff7c9ed25a3 - std::panicking::try
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4\/library\std\src\panicking.rs:345
24: 0x7ff7c9ed25a3 - std::panic::catch_unwind
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4\/library\std\src\panic.rs:382
25: 0x7ff7c9ed25a3 - std::rt::lang_start_internal
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4\/library\std\src\rt.rs:51
26: 0x7ff7c9ec40b3 - std::rt::lang_start<tuple<>>
at C:\Users\sadic\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\rt.rs:65
27: 0x7ff7c9ec6000 - main
28: 0x7ff7c9ee76c8 - invoke_main
at d:\agent\_work\63\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:78
29: 0x7ff7c9ee76c8 - __scrt_common_main_seh
at d:\agent\_work\63\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288
30: 0x7ffef5167034 - BaseThreadInitThunk
31: 0x7ffef617d0d1 - RtlUserThreadStart
error: process didn't exit successfully: `target\debug\testing.exe` (exit code: 101)
in contrast I have a C++ source file doing exactly the same successfully
#include <stdlib.h>
int main() {
system("cls");
}
I installed rustup using rustup_init.exe from rustup.rs and I am using cargo nightly to run the program, the stable branch does the same thing, I also have installed mingw64 and llvm if that helps. I didn't found anyone with the same problem in the internet. So, what it's happening and what do I do to solve this?
The reason it doesn't work is because cls is not an executable on Windows, it's a command of the Windows command line interpreter.
So if you want to execute it, you instead have to execute cmd /c cls.
Command::new("cmd")
.args(&["/c", "cls"])
.spawn()
.expect("cls command failed to start")
.wait()
.expect("failed to wait");
Alternatively, if you just want to clear the screen, you could also use the console crate.
// console = "0.14.0"
let term = console::Term::stdout();
term.clear_screen().expect("failed clearing screen");
Related:
"Clear screen with Windows “cls” command in Java console application"
"Java: Clear the console"
While those questions are not related to Rust, they do elaborate on cls not being an executable.
We have implemented ESlint Plugin in Sonarqube 5.6.6 for performing Sonar anlysis of a Javascript project.
I am executing the following tasks:
Checking out the code from repository
Running sonar-scanner on the checked out code.
Although the task is getting executed successfully, but I am getting an error while executing the task. the logs for the error part is as follows:
19:57:54.069 ERROR: Unable to parse file: /ebs/deployment/codebases/test-design/sonar/lib/atomic/List/LI/index.js
19:57:54.071 ERROR: Parse error at line 14 column 40:
4:
5: import React from 'react';
6: import classnames from 'classnames';
7: import PropTypes from 'prop-types';
8: import styles from './LI.css';
9:
10:
11: // eslint-disable-next-line
12: console.log(styles.length);
13:
14: const LI = ({ ...props, children, data = {}, titleKey = '', className = {}, styleNames, style, onClick, onMouseOver, onMouseOut }) => (
^
15: <li
16: {...props}
17: className={classnames(className)}
18: style={style}
19: data={data}
20: styleName={`li ${styleNames}`}
21: >
22: <button
23: styleName="buttonsStyles"
24: onClick={event => onClick(event, data)}
19:57:54.574 ERROR: Unable to parse file: /ebs/deployment/codebases/test-design/sonar/lib/atomic/Tabs/index.js
19:57:54.576 ERROR: Parse error at line 46 column 22:
36: className={className}
37: onMouseOver={onMouseOver}
38: onMouseOut={onMouseOut}
39: onClick={onClick}
40: />)
41: ))}
42: </UL>);
43:
44: const BorderedTab = ({
45: ...props,
46: liActiveStyleNames = '',
^
47: liStyleNames = '',
48: ulStyleNames = '',
49: }) => (<TabComponent
50: {...props}
51:
52: liStyleNames={`borderedTab ${liStyleNames || ''}`}
53: liActiveStyleNames={`borderedTabAcive ${liActiveStyleNames || ''}`}
54: ulStyleNames={`borderedTab ${ulStyleNames || ''}`}
55: />);
56:
Although the job ran successfully, but I am not sure whether the analysis is correct or not.
The sonar-scanner command is as follows:
sonar-scanner -Dsonar.sources=. -Dsonar.projectVersion=v1 -Dsonar.projectKey=test-design -Dsonar.projectName=test-DesigneSystem -Dsonar.host.url=http://localhost:9000 '-Dsonar.exclusions=**/font/**' -X
The profiles which we are using: csslint, eslint
Can anybody tell me what may be the issue.
I am new to Lisp, and am trying to work with ZMQ in it. For a simple function, I get the error below. How do I debug this error? Are there tools to help? It isn't dropping me into the ldb, how do I see what is at the address printed with the error?
Unhandled memory fault at #x10CC8B000.
[Condition of type SB-SYS:MEMORY-FAULT-ERROR]
Restarts:
0: [RETRY] Retry SLIME REPL evaluation request.
1: [*ABORT] Return to SLIME's top level.
2: [ABORT] abort thread (#<THREAD "new-repl-thread" RUNNING {1003E0F353}>)
Backtrace:
0: (SB-SYS:MEMORY-FAULT-ERROR)
[No Locals]
1: ("foreign function: call_into_lisp")
[No Locals]
2: ("foreign function: post_signal_tramp")
[No Locals]
3: ("foreign function: _ZN3zmq6pipe_t12get_identityEv")
[No Locals]
4: ("foreign function: _ZN3zmq8router_t5xrecvEPNS_5msg_tE")
[No Locals]
5: ("foreign function: _ZN3zmq5rep_t5xrecvEPNS_5msg_tE")
[No Locals]
6: ("foreign function: _ZN3zmq13socket_base_t4recvEPNS_5msg_tEi")
[No Locals]
7: ("foreign function: _ZL9s_recvmsgPN3zmq13socket_base_tEP9zmq_msg_ti")
[No Locals]
8: (ZEROMQ::%MSG-RECV #.(SB-SYS:INT-SAP #X005002D0) #.(SB-SYS:INT-SAP #X06006000) 0)
Locals:
SB-DEBUG::ARG-0 = #.(SB-SYS:INT-SAP #X005002D0)
SB-DEBUG::ARG-1 = #.(SB-SYS:INT-SAP #X06006000)
SB-DEBUG::ARG-2 = 0
9: ((LAMBDA (&REST SB-DI::ARGS) :IN SB-DI::HANDLE-SINGLE-STEP-AROUND-TRAP) #.(SB-SYS:INT-SAP #X06006000) #S(ZEROMQ:MSG :RAW #.(SB-SYS:INT-SAP #X005002D0)))
Locals:
SB-DI::ARGS = (#.(SB-SYS:INT-SAP #X06006000) #S(ZEROMQ:MSG :RAW #.(SB-SYS:INT-SAP #X005002D0)))
10: (RECV)
Locals:
CONTEXT = #.(SB-SYS:INT-SAP #X00500CC0)
SOCKET = #.(SB-SYS:INT-SAP #X06006000)
11: (SB-INT:SIMPLE-EVAL-IN-LEXENV (RECV) #<NULL-LEXENV>)
Locals:
SB-DEBUG::ARG-0 = (RECV)
SB-DEBUG::ARG-1 = #<NULL-LEXENV>
12: (EVAL (RECV))
Locals:
SB-DEBUG::ARG-0 = (RECV)
--more--
Here is the code I am trying to run. I am running these two functions in two different sbcl processes
sbcl<1>
(defun send ()
(zmq:with-context (context)
(zmq:with-socket (socket context :req)
(break)
(zmq:connect socket "tcp://127.0.0.1:3333")
(break)
(zmq:msg-send socket (zmq:make-msg :size 6 :data "Jello")))))
(send)
sbcl<2>
(defun recv ()
(zmq:with-context (context)
(zmq:with-socket (socket context :rep)
(break)
(zmq:bind socket "tcp://127.0.0.1:3333")
(break)
(zmq:msg-recv
socket (zmq:make-msg :size 6)))))
(recv)
[EDIT]
After a bit of digging around, I found this message in the buffer
* sbcl(49664,0x700000104000) malloc: *** error for object 0x500058: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
CORRUPTION WARNING in SBCL pid 49664(tid 123145303375872):
Received signal 6 in non-lisp thread 123145303375872, resignalling to a lisp thread.
The integrity of this image is possibly compromised.
Continuing with fingers crossed.
I have used the same C library with it's Python & Node bindings and it works without errors in Python and Node. I am only running into these errors with CL
So after a few days of hanging out in the #zeromq IRC, using lldb to debug the memory issues, I finally gave up. The CL bindings for zeromq aren't tested on OS X, and they do not work.
I switched to Ubuntu, and had no such problems.
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?