Comments (30)
Can you run command "./rebar3 tar" and send me archive?
from erlymon.
As requested...
erlymon-1.0.0.tar.gz
btw: there was an error while compiling about pbkdf2. i work around it by adding
{pbkdf2, {git, "https://github.com/comtihon/erlang-pbkdf2.git", {tag, "2.0.0"}}},
to rebar.config
from erlymon.
This bug has been fixed. Can you upgrade the code and compile project?
from erlymon.
it still exits with:
===> Failed to fetch and copy dep: {git,"[email protected]:comtihon/erlang-pbkdf2.git",
{tag,"2.0.0"}}
modified rebar.config to fetch pbkdf2. compiling finished with one warning:
===> Compiling gproc
/opt/erlymon/_build/default/lib/gproc/src/gproc_dist.erl:23: Warning: behaviour gen_leader undefined
program startet with following output
14:22:32.610 [info] Application lager started on node erlymon@lamp
14:22:32.611 [info] Pools [{mongo,[{size,10},{max_overflow,20}],[{host,<<49,50,55,46,48,46,48,46,49>>},{port,27017},{database,<<100,97,116,97,45,98,97,115,101,45,110,97,109,101>>},{login,<<100,97,116,97,45,98,97,115,101,45,1
17,115,101,114,45,110,97,109,101>>},{password,<<100,97,116,97,45,98,97,115,101,45,117,115,101,114,45,112,97,115,115,119,111,114,100>>}]}]
14:22:32.611 [info] Pool spec: mongo [{size,10},{max_overflow,20}] [{host,<<49,50,55,46,48,46,48,46,49>>},{port,27017},{database,<<100,97,116,97,45,98,97,115,101,45,110,97,109,101>>},{login,<<100,97,116,97,45,98,97,115,101,4
5,117,115,101,114,45,110,97,109,101>>},{password,<<100,97,116,97,45,98,97,115,101,45,117,115,101,114,45,112,97,115,115,119,111,114,100>>}]
14:22:32.611 [info] init worker args: <<100,97,116,97,45,98,97,115,101,45,110,97,109,101>> data-base-name
14:22:32.617 [info] init worker args: <<100,97,116,97,45,98,97,115,101,45,110,97,109,101>> data-base-name
14:22:32.618 [info] init worker args: <<100,97,116,97,45,98,97,115,101,45,110,97,109,101>> data-base-name
14:22:32.619 [info] init worker args: <<100,97,116,97,45,98,97,115,101,45,110,97,109,101>> data-base-name
14:22:32.619 [info] init worker args: <<100,97,116,97,45,98,97,115,101,45,110,97,109,101>> data-base-name
14:22:32.620 [info] init worker args: <<100,97,116,97,45,98,97,115,101,45,110,97,109,101>> data-base-name
14:22:32.620 [info] init worker args: <<100,97,116,97,45,98,97,115,101,45,110,97,109,101>> data-base-name
14:22:32.621 [info] init worker args: <<100,97,116,97,45,98,97,115,101,45,110,97,109,101>> data-base-name
14:22:32.621 [info] init worker args: <<100,97,116,97,45,98,97,115,101,45,110,97,109,101>> data-base-name
14:22:32.623 [info] init worker args: <<100,97,116,97,45,98,97,115,101,45,110,97,109,101>> data-base-name
14:22:32.669 [info] Create account admin: username: admin, password: admin
14:22:32.670 [info] Start tcp server t55 port: 5005
14:22:32.671 [info] Start tcp server meitrack port: 5020
14:22:32.672 [info] Start tcp server echo port: 5555
14:22:32.673 [info] Start http server osmand port: 5055
14:22:32.674 [info] Start http server web port: 8080
14:22:32.676 [info] Start http server webm port: 8081
=PROGRESS REPORT==== 12-Mar-2016::14:22:32 ===
supervisor: {local,sasl_safe_sup}
started: [{pid,<0.970.0>},
{id,alarm_handler},
{mfargs,{alarm_handler,start_link,[]}},
{restart_type,permanent},
{shutdown,2000},
{child_type,worker}]
=PROGRESS REPORT==== 12-Mar-2016::14:22:32 ===
supervisor: {local,sasl_sup}
started: [{pid,<0.972.0>},
{id,release_handler},
{mfargs,{release_handler,start_link,[]}},
{restart_type,permanent},
{shutdown,2000},
{child_type,worker}]
Eshell V7.2 (abort with ^G)
(erlymon@lamp)1>
from erlymon.
After about 1 minute it died with
14:28:35.807 [warning] lager_error_logger_h dropped 287 messages in the last second that exce
eded the limit of 50 messages/sec
14:28:35.810 [error] Error in process <0.979.0> on node erlymon@lamp with exit value:
{function_clause,[{cowboy_protocol,parse_method,[<<>>,{state,#Port<0.1068>,ranch_tcp,[cowboy_router,cowboy_han
dler],false,[{listener,web},{dispatch,[{'_',[],[{[<<"api">>,<<"server">>,<<"get">>],[],em_http_api_server_get_
handler,[]},{[<<"api">>,<<"server">>,<<"update">>],[],em_http_api_server_update_handler,[]},{[<<"api">>,<<"ses
sion">>],[],em_http_api_session_handler,[]},{[<<"api">>,<<"login">>],[],em_http_api_login_handler,[]},{[<<"api
">>,<<"logout">>],[],em_http_api_logout_handler,[]},{[<<"api">>,<<"register">>],[],em_http_api_register_handle
r,[]},{[<<"api">>,<<"async">>],[],em_http_api_async_handler,[]},{[<<"api">>,<<"device">>,<<"get">>],[],em_http
_api_device_get_handler,[]},{[<<"api">>,<<"device">>,<<"add">>],[],em_http_api_device_add_handler,[]},{[<<"api
">>,<<"device">>,<<"update">>],[],em_http_api_device_update_handler,[]},{[<<"api">>,<<"device">>,<<"remove">>]
,[],em_http_api_device_remove_handler,[]},{[<<"api">>,<<"user">>,<<"get">>],[],em_http_api_user_get_handler,[]
},{[<<"api">>,<<"user">>,<<"add">>],[],em_http_api_user_add_handler,[]},{[<<"api">>,<<"user">>,<<"update">>],[
],em_http_api_user_update_handler,[]},{[<<"api">>,<<"user">>,<<"remove">>],[],em_http_api_user_remove_handler,
[]},{[<<"api">>,<<"position">>,<<"get">>],[],em_http_api_position_get_handler,[]},{[],[],cowboy_static,{priv_f
ile,erlymon,"web/index.html"}},{['...'],[],cowboy_static,{priv_dir,erlymon,"web/",[{mimetypes,cow_mimetypes,al
l}]}}]}]}],undefined,5,1,100,4096,64,4096,100,5000,-576460687063},<<22,3,1,0,135,1,0,0,131,3,2,23,40,124,119,1
54,220,251,139,4,27,103,130,153,227,231,52,95,205,107,231,108,169,88,189,247,139,136,166,105,77,119,164,0,0,16
,192,10,192,20,192,9,192,19,0,53,0,47,0,10,86,0,1,0,0,74,255,1,0,1,0,0,23,0,0,0,35,0,0,0,5,0,5,1,0,0,0,0,51,11
6,0,0,0,18,0,0,0,16,0,20,0,18,8,115,112,100,121,47,51,46,49,8,104,116,116,112,47,49,46,49,117,80,0,0,0,11,0,2,
1,0,0,10,0,6,0,4,0,23,0,24>>],[{file,"/opt/erlymon/_build/default/lib/cowboy/src/cowboy_protocol.erl"},{line,1
75}]}]}
14:28:35.811 [error] Ranch listener web terminated with reason: no function clause matching cowboy_protocol:pa
rse_method(<<>>, {state,#Port<0.1068>,ranch_tcp,[cowboy_router,cowboy_handler],false,[{listener,web},{dispatch
,[{...}]}],...}, <<22,3,1,0,135,1,0,0,131,3,2,23,40,124,119,154,220,251,139,4,27,103,130,153,227,231,52,95,205
,107,...>>) line 175
from erlymon.
Can you fetch erlang-pbkdf2 ?
from erlymon.
i modified rebar.config to fetch pbkdf2. While compiling it did skip pbkdf2, because it was allready there. Should i tar again the project, or do you have an idea?
from erlymon.
Can you return rebar.config and remove _build folder and rebar.lock? And rebuild project.
from erlymon.
Yes i can; but as you could read above, i tried with original download first and compiling timed out while fetching pbkdf2. modification of config was made after that... But i restore and retry...
from erlymon.
Can you send the output after executing the command./rebar3 сompile?
from erlymon.
Can you execute "git clone [email protected]:comtihon/erlang-pbkdf2.git"?
from erlymon.
Here
root@lamp /opt/erlymon# ./rebar3 compile
===> Verifying dependencies...
===> Fetching cowboy ({git,"git://github.com/ninenines/cowboy.git",
{tag,"2.0.0-pre.3"}})
===> Fetching cowboy_session ({git,
"https://github.com/rusblaze/cowboy_session.git",
{branch,"feature/cowboy_2.0_fix"}})
===> Fetching ibrowse ({git,"git://github.com/cmullaparthi/ibrowse.git",
{tag,"v4.2.2"}})
===> Fetching iso8601 ({git,"https://github.com/blt/erlang_iso8601.git",
{branch,"master"}})
===> Fetching jsx ({git,"https://github.com/talentdeficit/jsx.git",
{tag,"v2.7.1"}})
===> Fetching lager ({git,"git://github.com/basho/lager.git",
{tag,"3.1.0"}})
===> Fetching mongodb ({git,"https://github.com/comtihon/mongodb-erlang.git",
{tag,"v0.9.4"}})
===> Package <<"rebar_ct">> not found. Fetching registry updates and trying again...
===> Updating package registry...
===> Writing registry to /root/.cache/rebar3/hex/default/registry
===> Generating package index...
===> [cloudi_service_oauth1:1.5.1] Only existing version of cloudi_service_db_riak is 1.3.3 which does not match constraint ~> 1.5
.1. Using anyway, but it is not guaranteed to work.
===> Writing index to /root/.cache/rebar3/hex/default/packages.idx
===> Plugin rebar_ct not available. It will not be used.
===> Fetching poolboy ({git,"https://github.com/devinus/poolboy.git",
{tag,"1.5.1"}})
===> Fetching ranch ({git,"https://github.com/extend/ranch.git",
{tag,"1.2.1"}})
===> Fetching bson ({git,"git://github.com/comtihon/bson-erlang",
{tag,"v0.2.2"}})
===> Fetching cowlib ({git,"https://github.com/ninenines/cowlib",
"master"})
===> WARNING: It is recommended to use {branch, Name}, {tag, Tag} or {ref, Ref}, otherwise updating the dep may not work as expect
ed.
===> Fetching goldrush ({git,"git://github.com/DeadZen/goldrush.git",
{tag,"0.1.8"}})
===> Fetching gproc ({git,"git://github.com/esl/gproc.git",
{branch,"master"}})
===> Fetching pbkdf2 ({git,"[email protected]:comtihon/erlang-pbkdf2.git",
{tag,"2.0.0"}})
===> Failed to fetch and copy dep: {git,"[email protected]:comtihon/erlang-pbkdf2.git",
{tag,"2.0.0"}}
root@lamp /opt/erlymon#
The git clone command has to be runned in _build/default/lib or where?
-> Doesn't matter because it fails anyway.
root@lamp default/lib# ls
bson cowboy cowboy_session cowlib goldrush gproc ibrowse iso8601 jsx lager mongodb poolboy ranch
root@lamp default/lib# git clone [email protected]:comtihon/erlang-pbkdf2.git
Cloning into 'erlang-pbkdf2'...
ssh: connect to host github.com port 22: Connection timed out
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
But "git clone https://github.com/comtihon/erlang-pbkdf2.git" would run fine
root@lamp default/lib# git clone https://github.com/comtihon/erlang-pbkdf2.git
Cloning into 'erlang-pbkdf2'...
remote: Counting objects: 30822, done.
remote: Compressing objects: 100% (10/10), done.
remote: Total 30822 (delta 11), reused 10 (delta 10), pack-reused 30802
Receiving objects: 100% (30822/30822), 12.55 MiB | 2.65 MiB/s, done.
Resolving deltas: 100% (22062/22062), done.
Checking connectivity... done.
root@lamp default/lib# ls
bson cowboy cowboy_session cowlib erlang-pbkdf2 goldrush gproc ibrowse iso8601 jsx lager mongodb poolboy ranch
from erlymon.
Next... Edit the file : erlymon/_build/default/lib/mongodb/rebar.config.
Change {git, "[email protected]:comtihon/erlang-pbkdf2.git", {tag, "2.0.0"}}} to {git, "https://github.com/comtihon/erlang-pbkdf2.git", {tag, "2.0.0"}}}
And build project
from erlymon.
output
root@lamp /opt/erlymon# ./rebar3 compile
===> Verifying dependencies...
===> Package <<"rebar_ct">> not found. Fetching registry updates and trying again...
===> Updating package registry...
===> Writing registry to /root/.cache/rebar3/hex/default/registry
===> Generating package index...
===> [cloudi_service_oauth1:1.5.1] Only existing version of cloudi_service_db_riak is 1.3.3 which does not match constraint ~> 1.5
.1. Using anyway, but it is not guaranteed to work.
===> Writing index to /root/.cache/rebar3/hex/default/packages.idx
===> Plugin rebar_ct not available. It will not be used.
===> Fetching pbkdf2 ({git,"git://github.com/comtihon/erlang-pbkdf2.git",
{tag,"2.0.0"}})
===> Skipping poolboy (from {git,
"git://github.com/devinus/poolboy.git",
{tag,"1.5.1"}}) as an app of the same name has already been fetched
===> Skipping ranch (from {git,"https://github.com/ninenines/ranch",
"1.1.0"}) as an app of the same name has already been fetched
===> Fetching uuid ({git,"git://github.com/travis/erlang-uuid.git",
"f6a1cf9027e4af78b4a81201f4f6db1a822b8316"})
===> WARNING: It is recommended to use {branch, Name}, {tag, Tag} or {ref, Ref}, otherwise updating the dep may not work as expect
ed.
===> Compiling cowlib
===> Compiling iso8601
===> Compiling pbkdf2
===> Compiling uuid
===> Compiling gproc
/opt/erlymon/_build/default/lib/gproc/src/gproc_dist.erl:23: Warning: behaviour gen_leader undefined
===> Compiling cowboy_session
===> Compiling jsx
===> Compiling ranch
===> Compiling poolboy
===> Compiling bson
===> Compiling mongodb
===> Compiling goldrush
===> Compiling lager
===> Compiling ibrowse
===> Compiling cowboy
===> Compiling erlymon
root@lamp /opt/erlymon# ./rebar3 release
===> Verifying dependencies...
===> Package <<"rebar_ct">> not found. Fetching registry updates and trying again...
===> Updating package registry...
===> Writing registry to /root/.cache/rebar3/hex/default/registry
===> Generating package index...
===> [cloudi_service_oauth1:1.5.1] Only existing version of cloudi_service_db_riak is 1.3.3 which does not match constraint ~> 1.5
.1. Using anyway, but it is not guaranteed to work.
===> Writing index to /root/.cache/rebar3/hex/default/packages.idx
===> Plugin rebar_ct not available. It will not be used.
===> Compiling erlymon
===> Starting relx build process ...
===> Resolving OTP Applications from directories:
/opt/erlymon/_build/default/lib
/opt/erlymon/apps
/usr/lib/erlang/lib
===> Resolved erlymon-1.0.0
===> Dev mode enabled, release will be symlinked
===> release successfully created!
root@lamp /opt/erlymon#
from erlymon.
Next execute
sh _build/default/rel/erlymon/bin/erlymon console
from erlymon.
output part 1
root@lamp /opt/erlymon# sh _build/default/rel/erlymon/bin/erlymon console
Exec: /usr/lib/erlang/erts-7.2/bin/erlexec -boot /opt/erlymon/_build/default/rel/erlymon/releases/1.0.0/erlymon -mode embedded -bo
ot_var ERTS_LIB_DIR /usr/lib/erlang/erts-7.2/../lib -config /opt/erlymon/_build/default/rel/erlymon/releases/1.0.0/sys.config -arg
s_file /opt/erlymon/_build/default/rel/erlymon/releases/1.0.0/vm.args -- console
Root: /opt/erlymon/_build/default/rel/erlymon
/opt/erlymon/_build/default/rel/erlymon
Erlang/OTP 18 [erts-7.2] [source] [64-bit] [async-threads:30] [kernel-poll:true]
15:31:42.672 [info] Application lager started on node erlymon@lamp
15:31:42.673 [info] Pools [{mongo,[{size,10},{max_overflow,20}],[{host,<<49,50,55,46,48,46,48,46,49>>},{port,27017},{database,<<10
0,97,116,97,45,98,97,115,101,45,110,97,109,101>>},{login,<<100,97,116,97,45,98,97,115,101,45,117,115,101,114,45,110,97,109,101>>},
{password,<<100,97,116,97,45,98,97,115,101,45,117,115,101,114,45,112,97,115,115,119,111,114,100>>}]}]
15:31:42.673 [info] Pool spec: mongo [{size,10},{max_overflow,20}] [{host,<<49,50,55,46,48,46,48,46,49>>},{port,27017},{database,<
<100,97,116,97,45,98,97,115,101,45,110,97,109,101>>},{login,<<100,97,116,97,45,98,97,115,101,45,117,115,101,114,45,110,97,109,101>
>},{password,<<100,97,116,97,45,98,97,115,101,45,117,115,101,114,45,112,97,115,115,119,111,114,100>>}]
15:31:42.673 [info] init worker args: <<100,97,116,97,45,98,97,115,101,45,110,97,109,101>> data-base-name
15:31:42.680 [info] init worker args: <<100,97,116,97,45,98,97,115,101,45,110,97,109,101>> data-base-name
15:31:42.680 [info] init worker args: <<100,97,116,97,45,98,97,115,101,45,110,97,109,101>> data-base-name
15:31:42.681 [info] init worker args: <<100,97,116,97,45,98,97,115,101,45,110,97,109,101>> data-base-name
15:31:42.681 [info] init worker args: <<100,97,116,97,45,98,97,115,101,45,110,97,109,101>> data-base-name
15:31:42.682 [info] init worker args: <<100,97,116,97,45,98,97,115,101,45,110,97,109,101>> data-base-name
15:31:42.683 [info] init worker args: <<100,97,116,97,45,98,97,115,101,45,110,97,109,101>> data-base-name
15:31:42.683 [info] init worker args: <<100,97,116,97,45,98,97,115,101,45,110,97,109,101>> data-base-name
15:31:42.684 [info] init worker args: <<100,97,116,97,45,98,97,115,101,45,110,97,109,101>> data-base-name
15:31:42.685 [info] init worker args: <<100,97,116,97,45,98,97,115,101,45,110,97,109,101>> data-base-name
15:31:42.726 [info] Create account admin: username: admin, password: admin
15:31:42.727 [info] Start tcp server t55 port: 5005
15:31:42.728 [info] Start tcp server meitrack port: 5020
15:31:42.729 [info] Start tcp server echo port: 5555
15:31:42.729 [info] Start http server osmand port: 5055
15:31:42.731 [info] Start http server web port: 8080
15:31:42.732 [info] Start http server webm port: 8081
=PROGRESS REPORT==== 12-Mar-2016::15:31:42 ===
supervisor: {local,sasl_safe_sup}
started: [{pid,<0.970.0>},
{id,alarm_handler},
{mfargs,{alarm_handler,start_link,[]}},
{restart_type,permanent},
{shutdown,2000},
{child_type,worker}]
=PROGRESS REPORT==== 12-Mar-2016::15:31:42 ===
supervisor: {local,sasl_sup}
started: [{pid,<0.972.0>},
{id,release_handler},
{mfargs,{release_handler,start_link,[]}},
{restart_type,permanent},
{shutdown,2000},
{child_type,worker}]
Eshell V7.2 (abort with ^G)
nothing more happend for about 3 minutes. but i then reloaded the browser (port 8080) and then
(erlymon@lamp)1> 15:33:56.532 [warning] lager_error_logger_h dropped 287 messages in the last second that exceeded the limit of 50
messages/sec
15:33:56.534 [error] Error in process <0.980.0> on node erlymon@lamp with exit value:
{function_clause,[{cowboy_protocol,parse_method,[<<>>,{state,#Port<0.1068>,ranch_tcp,[cowboy_router,cowboy_handler],false,[{listen
er,web},{dispatch,[{'_',[],[{[<<"api">>,<<"server">>,<<"get">>],[],em_http_api_server_get_handler,[]},{[<<"api">>,<<"server">>,<<"
update">>],[],em_http_api_server_update_handler,[]},{[<<"api">>,<<"session">>],[],em_http_api_session_handler,[]},{[<<"api">>,<<"l
ogin">>],[],em_http_api_login_handler,[]},{[<<"api">>,<<"logout">>],[],em_http_api_logout_handler,[]},{[<<"api">>,<<"register">>],
[],em_http_api_register_handler,[]},{[<<"api">>,<<"async">>],[],em_http_api_async_handler,[]},{[<<"api">>,<<"device">>,<<"get">>],
[],em_http_api_device_get_handler,[]},{[<<"api">>,<<"device">>,<<"add">>],[],em_http_api_device_add_handler,[]},{[<<"api">>,<<"dev
ice">>,<<"update">>],[],em_http_api_device_update_handler,[]},{[<<"api">>,<<"device">>,<<"remove">>],[],em_http_api_device_remove_
handler,[]},{[<<"api">>,<<"user">>,<<"get">>],[],em_http_api_user_get_handler,[]},{[<<"api">>,<<"user">>,<<"add">>],[],em_http_api
_user_add_handler,[]},{[<<"api">>,<<"user">>,<<"update">>],[],em_http_api_user_update_handler,[]},{[<<"api">>,<<"user">>,<<"remove
">>],[],em_http_api_user_remove_handler,[]},{[<<"api">>,<<"position">>,<<"get">>],[],em_http_api_position_get_handler,[]},{[],[],c
owboy_static,{priv_file,erlymon,"web/index.html"}},{['...'],[],cowboy_static,{priv_dir,erlymon,"web/",[{mimetypes,cow_mimetypes,al
l}]}}]}]}],undefined,5,1,100,4096,64,4096,100,5000,-576460612278},<<22,3,1,0,135,1,0,0,131,3,2,17,188,217,158,36,222,0,24,255,220,
155,7,74,118,58,134,54,136,255,57,253,4,164,157,3,187,200,188,42,205,177,249,0,0,16,192,10,192,20,192,9,192,19,0,53,0,47,0,10,86,0
,1,0,0,74,255,1,0,1,0,0,23,0,0,0,35,0,0,0,5,0,5,1,0,0,0,0,51,116,0,0,0,18,0,0,0,16,0,20,0,18,8,115,112,100,121,47,51,46,49,8,104,1
16,116,112,47,49,46,49,117,80,0,0,0,11,0,2,1,0,0,10,0,6,0,4,0,23,0,24>>],[{file,"/opt/erlymon/_build/default/lib/cowboy/src/cowboy
_protocol.erl"},{line,175}]}]}
15:33:56.535 [error] Ranch listener web terminated with reason: no function clause matching cowboy_protocol:parse_method(<<>>, {st
ate,#Port<0.1068>,ranch_tcp,[cowboy_router,cowboy_handler],false,[{listener,web},{dispatch,[{...}]}],...}, <<22,3,1,0,135,1,0,0,13
1,3,2,17,188,217,158,36,222,0,24,255,220,155,7,74,118,58,134,54,136,255,...>>) line 175
15:33:56.693 [error] Error in process <0.982.0> on node erlymon@lamp with exit value:
{function_clause,[{cowboy_protocol,parse_method,[<<>>,{state,#Port<0.1070>,ranch_tcp,[cowboy_router,cowboy_handler],false,[{listen
er,web},{dispatch,[{'_',[],[{[<<"api">>,<<"server">>,<<"get">>],[],em_http_api_server_get_handler,[]},{[<<"api">>,<<"server">>,<<"
update">>],[],em_http_api_server_update_handler,[]},{[<<"api">>,<<"session">>],[],em_http_api_session_handler,[]},{[<<"api">>,<<"l
ogin">>],[],em_http_api_login_handler,[]},{[<<"api">>,<<"logout">>],[],em_http_api_logout_handler,[]},{[<<"api">>,<<"register">>],
[],em_http_api_register_handler,[]},{[<<"api">>,<<"async">>],[],em_http_api_async_handler,[]},{[<<"api">>,<<"device">>,<<"get">>],
[],em_http_api_device_get_handler,[]},{[<<"api">>,<<"device">>,<<"add">>],[],em_http_api_device_add_handler,[]},{[<<"api">>,<<"dev
ice">>,<<"update">>],[],em_http_api_device_update_handler,[]},{[<<"api">>,<<"device">>,<<"remove">>],[],em_http_api_device_remove_
handler,[]},{[<<"api">>,<<"user">>,<<"get">>],[],em_http_api_user_get_handler,[]},{[<<"api">>,<<"user">>,<<"add">>],[],em_http_api
_user_add_handler,[]},{[<<"api">>,<<"user">>,<<"update">>],[],em_http_api_user_update_handler,[]},{[<<"api">>,<<"user">>,<<"remove
">>],[],em_http_api_user_remove_handler,[]},{[<<"api">>,<<"position">>,<<"get">>],[],em_http_api_position_get_handler,[]},{[],[],c
owboy_static,{priv_file,erlymon,"web/index.html"}},{['...'],[],cowboy_static,{priv_dir,erlymon,"web/",[{mimetypes,cow_mimetypes,al
l}]}}]}]}],undefined,5,1,100,4096,64,4096,100,5000,-576460612120},<<22,3,1,0,139,1,0,0,135,3,1,154,19,150,180,46,181,59,235,251,21
2,44,144,132,180,203,91,215,92,56,15,15,75,169,113,86,88,108,146,156,22,217,235,0,0,20,192,10,192,20,0,57,192,9,192,19,0,51,0,53,0
,47,0,10,86,0,1,0,0,74,255,1,0,1,0,0,23,0,0,0,35,0,0,0,5,0,5,1,0,0,0,0,51,116,0,0,0,18,0,0,0,16,0,20,0,18,8,115,112,100,121,47,51,
46,49,8,104,116,116,112,47,49,46,49,117,80,0,0,0,11,0,2,1,0,0,10,0,6,0,4,0,23,0,24>>],[{file,"/opt/erlymon/_build/default/lib/cowb
oy/src/cowboy_protocol.erl"},{line,175}]}]}
15:33:56.694 [error] Ranch listener web terminated with reason: no function clause matching cowboy_protocol:parse_method(<<>>, {st
ate,#Port<0.1070>,ranch_tcp,[cowboy_router,cowboy_handler],false,[{listener,web},{dispatch,[{...}]}],...}, <<22,3,1,0,139,1,0,0,13
5,3,1,154,19,150,180,46,181,59,235,251,212,44,144,132,180,203,91,215,92,...>>) line 175
from erlymon.
some news, part of the failure prob. was the browser pointing to https:
loading http: did 'only' output
15:46:15.953 [warning] lager_error_logger_h dropped 287 messages in the last second that exceeded the limit of 50 messages/sec
but still the webpage 8080 ist empty, and the page 8081 'only' has a blue title "Traccar"
from erlymon.
A similar mistake discussing function_clause in cowboy_protocol:parse_method/2 #448
from erlymon.
OK, but these errors are silently logged now. The webpage loads, but empty. this is probably something different. not?
from erlymon.
Use the site to port 8080. Site to port 8081 is a site cap.
from erlymon.
??
but still the webpage 8080 ist empty, and the page 8081 'only' has a blue title "Traccar"
from erlymon.
site on port 8081 is not working
from erlymon.
but 8080 is blank and i dont know how to track that down?
from erlymon.
What browser are you using?
from erlymon.
chrome. have also edge on my notebook (win10) which shows the same blank page.
The Page looks empty, but is a proper html-page.
<!DOCTYPE html>
<html>
<head>
<title>Traccar</title>
<link rel="stylesheet" href="//cdn.sencha.com/ext/gpl/5.1.0/build/packages/ext-theme-neptune/build/resources/ext-theme-neptune-all.css">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/ol3/3.5.0/ol.css">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<script type="text/javascript" src="//cdn.sencha.com/ext/gpl/5.1.0/build/ext-all-debug.js"></script>
<script type="text/javascript" src="//cdn.sencha.com/ext/gpl/5.1.0/build/packages/ext-theme-neptune/build/ext-theme-neptune.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/ol3/3.5.0/ol-debug.js"></script>
<script type="text/javascript" src="app.js"></script>
</head>
<body>
</body>
</html>
PS: in the meantime some errors popped out on console.
18:20:31.594 [error] Supervisor cowboy_session_server_sup had child undefined started with cowboy_session_server:start_link([{sid,<<"9427
a313-7ca9-4483-a5eb-bb4556dbb7f1">>},{storage,cowboy_session_storage_ets},{expire,1440}]) at <0.1069.0> exit with reason expire in contex
t child_terminated
18:20:31.596 [error] Supervisor cowboy_session_server_sup had child undefined started with cowboy_session_server:start_link([{sid,<<"9427
a313-7ca9-4483-a5eb-bb4556dbb7f1">>},{storage,cowboy_session_storage_ets},{expire,1440}]) at <0.1069.0> exit with reason reached_max_rest
art_intensity in context shutdown
18:20:31.597 [error] Supervisor cowboy_session had child undefined started with cowboy_session_server_sup:start_link() at <0.1057.0> exit
with reason shutdown in context child_terminated```
from erlymon.
Console (browser) has bugs?
from erlymon.
No; two different 'locations' ->
- Browser (Chrome and Edge) shows blank page.
- Linux Console (with erlymon) shows errors - maybe some timeouts because of the not 'working' browser.
from erlymon.
I will install windows and try to reproduce the problem.
from erlymon.
I have windows-10 on my noteboot.
Erlymon is installed on Debian (vm)
from erlymon.
18:20:31.594 [error] Supervisor cowboy_session_server_sup had child undefined started with cowboy_session_server:start_link([{sid,<<"9427 a313-7ca9-4483-a5eb-bb4556dbb7f1">>},{storage,cowboy_session_storage_ets},{expire,1440}]) at <0.1069.0> exit with reason expire in contex t child_terminated 18:20:31.596 [error] Supervisor cowboy_session_server_sup had child undefined started with cowboy_session_server:start_link([{sid,<<"9427 a313-7ca9-4483-a5eb-bb4556dbb7f1">>},{storage,cowboy_session_storage_ets},{expire,1440}]) at <0.1069.0> exit with reason reached_max_rest art_intensity in context shutdown 18:20:31.597 [error] Supervisor cowboy_session had child undefined started with cowboy_session_server_sup:start_link() at <0.1057.0> exit with reason shutdown in context child_terminated
This error fixed.
I was able to visit the site. I used OS windose 10 and browsers (Opera, Chrome, Internet Explorer).
Can you update to the latest version and play the current errors?
from erlymon.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from erlymon.