Author Topic: help with faucet  (Read 5446 times)

0 Members and 1 Guest are viewing this topic.

Offline puppies

  • Hero Member
  • *****
  • Posts: 1659
    • View Profile
  • BitShares: puppies
Hey everyone.  I have a webwallet and faucet set up at https://dele-puppy.com.  I cannot get referral links to work properly.  My faucet will register new accounts just fine, but adding the ?r=account-name doesn't seem to make a difference in the new account.  I am not looking to get into the faucet business or to compete with OL at all.  I am running both the wallet and the faucet as a service for the community.  The wallet is based in San Francisco and seems to offer better performance to some in our community.  The faucet can be used as a backup when OL is not functioning.  When I attempt to register a new account with https://dele-puppy.com/?r=dele-puppy my production log shows
Code: [Select]
I, [2016-03-21T16:05:57.040050 #15512]  INFO -- : Started POST "/api/v1/accounts" for <redacted IP> at 2016-03-21 16:05:57 -0400
I, [2016-03-21T16:05:57.050940 #15512]  INFO -- : Processing by Api::V1::AccountsController#create as JSON
I, [2016-03-21T16:05:57.051096 #15512]  INFO -- :   Parameters: {"account"=>{"name"=>"puppies-test-2", "owner_key"=>"BTS59wWKYExLCfAnU7LdpWHHrVjaA5XDgTXjhofcRw7RhcomTSYcC", "active_key"=>"BTS5abB7845TM3GSq1ExiWDEU7wKZFEfZJTYTDQ94h4cnZioiMbW1", "memo_key"=>"BTS5abB7845TM3GSq1ExiWDEU7wKZFEfZJTYTDQ94h4cnZioiMbW1", "refcode"=>nil}}
D, [2016-03-21T16:05:57.087642 #15512] DEBUG -- :   #[1m#[35m (0.4ms)#[0m  BEGIN
D, [2016-03-21T16:05:57.126459 #15512] DEBUG -- :   #[1m#[36mBtsAccount Exists (18.0ms)#[0m  #[1mSELECT  1 AS one FROM `bts_accounts` WHERE `bts_accounts`.`remote_ip` = BINARY <redacted IP> AND (created_at > '2016-03-21 16:00:57') LIMIT 1#[0m
I, [2016-03-21T16:05:57.128353 #15512]  INFO -- : ---- Registering account: 'puppies-test-2' BTS5abB7845TM3GSq1ExiWDEU7wKZFEfZJTYTDQ94h4cnZioiMbW1/BTS59wWKYExLCfAnU7LdpWHHrVjaA5XDgTXjhofcRw7RhcomTSYcC referrer:
I, [2016-03-21T16:05:57.129134 #15512]  INFO -- : call: [0, "get_account", ["puppies-test-2"]]
E, [2016-03-21T16:05:57.235216 #15512] ERROR -- : Websocket RPC Error: {"code"=>1, "message"=>"10 assert_exception: Assert Exception\nrec && rec->name == account_name_or_id: \n    {}\n    th_a  wallet.cpp:596 get_account", "data"=>{"code"=>10, "name"=>"assert_exception", "message"=>"Assert Exception", "stack"=>[{"context"=>{"level"=>"error", "file"=>"wallet.cpp", "line"=>596, "method"=>"get_account", "hostname"=>"", "thread_name"=>"th_a", "timestamp"=>"2016-03-21T20:05:57"}, "format"=>"rec && rec->name == account_name_or_id: ", "data"=>{}}]}}
I, [2016-03-21T16:05:57.236168 #15512]  INFO -- : call: [0, "register_account", ["puppies-test-2", "BTS5abB7845TM3GSq1ExiWDEU7wKZFEfZJTYTDQ94h4cnZioiMbW1", "BTS59wWKYExLCfAnU7LdpWHHrVjaA5XDgTXjhofcRw7RhcomTSYcC", "dele-puppy-reg", "dele-puppy-reg", 0, true]]
D, [2016-03-21T16:05:57.624972 #15512] DEBUG -- : {"ref_block_num"=>54133, "ref_block_prefix"=>3479785826, "expiration"=>"2016-03-21T20:06:27", "operations"=>[[5, {"fee"=>{"amount"=>1483385, "asset_id"=>"1.3.0"}, "registrar"=>"1.2.101323", "referrer"=>"1.2.101323", "referrer_percent"=>0, "name"=>"puppies-test-2", "owner"=>{"weight_threshold"=>1, "account_auths"=>[], "key_auths"=>[["BTS5abB7845TM3GSq1ExiWDEU7wKZFEfZJTYTDQ94h4cnZioiMbW1", 1]], "address_auths"=>[]}, "active"=>{"weight_threshold"=>1, "account_auths"=>[], "key_auths"=>[["BTS59wWKYExLCfAnU7LdpWHHrVjaA5XDgTXjhofcRw7RhcomTSYcC", 1]], "address_auths"=>[]}, "options"=>{"memo_key"=>"BTS59wWKYExLCfAnU7LdpWHHrVjaA5XDgTXjhofcRw7RhcomTSYcC", "voting_account"=>"1.2.5", "num_witness"=>0, "num_committee"=>0, "votes"=>[], "extensions"=>[]}, "extensions"=>{}}]], "extensions"=>[], "signatures"=>["1f681f1e599dc9a77d4e3f5bd12acb1e4a658cde2b1b40fef403b46a65cd5b918424fdac871aa6f73f60e39675ed30fae2966c4ba1ffc0a6e465da9fdec6ca77c5"]}
D, [2016-03-21T16:05:57.640035 #15512] DEBUG -- :   #[1m#[35mSQL (11.8ms)#[0m  INSERT INTO `bts_accounts` (`name`, `owner_key`, `active_key`, `memo_key`, `remote_ip`, `created_at`, `updated_at`) VALUES ('puppies-test-2', 'BTS59wWKYExLCfAnU7LdpWHHrVjaA5XDgTXjhofcRw7RhcomTSYcC', 'BTS5abB7845TM3GSq1ExiWDEU7wKZFEfZJTYTDQ94h4cnZioiMbW1', 'BTS5abB7845TM3GSq1ExiWDEU7wKZFEfZJTYTDQ94h4cnZioiMbW1', <redacted IP>, '2016-03-21 20:05:57', '2016-03-21 20:05:57')
D, [2016-03-21T16:05:57.643623 #15512] DEBUG -- :   #[1m#[36m (2.0ms)#[0m  #[1mCOMMIT#[0m
I, [2016-03-21T16:05:57.654643 #15512]  INFO -- :   Rendered api/v1/accounts/show.json.jbuilder (5.0ms)
I, [2016-03-21T16:05:57.655155 #15512]  INFO -- : Completed 201 Created in 604ms (Views: 10.9ms | ActiveRecord: 41.2ms)
I, [2016-03-21T16:07:23.065115 #15512]  INFO -- : Started POST "/" for 5.217.143.35 at 2016-03-21 16:07:23 -0400
F, [2016-03-21T16:07:23.066696 #15512] FATAL -- :
ActionController::RoutingError (No route matches [POST] "/"):
  vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
  vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
  vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:38:in `call_app'
  vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:20:in `block in call'
  vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:68:in `block in tagged'
  vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:26:in `tagged'
  vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:68:in `tagged'
  vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:20:in `call'
  vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/request_id.rb:21:in `call'
  vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/methodoverride.rb:22:in `call'
  vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/runtime.rb:18:in `call'
  vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
  vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/sendfile.rb:113:in `call'
  vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/engine.rb:518:in `call'
  vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/application.rb:165:in `call'
  passenger (5.0.24) src/ruby_supportlib/phusion_passenger/rack/thread_handler_extension.rb:97:in `process_request'
  passenger (5.0.24) src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:160:in `accept_and_process_next_request'
  passenger (5.0.24) src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:113:in `main_loop'
  passenger (5.0.24) src/ruby_supportlib/phusion_passenger/request_handler.rb:416:in `block (3 levels) in start_threads'
  passenger (5.0.24) src/ruby_supportlib/phusion_passenger/utils.rb:113:in `block in create_thread_and_abort_on_exception'
my faucet.yml is
Code: [Select]
cli_wallet_connection: ws://localhost:8099
registrar_account: dele-puppy-reg
referrer_percent: 80
refcode_prefix: F01

default_url: localhost
default_port: 3000

exception_notification:
  sender_address: faucet@example.com
  exception_recipients: admin@example.com

smtp:
  address: address
  user_name: user
  password: password

Any idea what is preventing referrals fAny more information that could help figure this out?  It is not really an important issue.  As I said I don't really want lots of people using my faucet unless absolutely needed.  I am a noob at the running a website thing, and would like to learn more though.

Thanks.
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads