Giter VIP home page Giter VIP logo

algobasket / peatiocryptoexchange Goto Github PK

View Code? Open in Web Editor NEW
186.0 42.0 202.0 60.82 MB

An open-source Crypto-Currency exchange. Peatio v3.0 Coming Soon !

Home Page: https://www.peatio.info

Ruby 43.39% Shell 0.95% JavaScript 24.87% CoffeeScript 8.56% HTML 6.39% CSS 2.85% SCSS 3.24% Slim 9.74%
crypto cryptocurrency cryptocurrencies bitcoin bitcoin-api wallet cryptocoins cryptocurrency-exchanges blockchain ethereum

peatiocryptoexchange's Introduction

PEATIO v2.0 - An open-source crypto currency exchange

Installation Request or Bug Fixing, fill up this form -

FILL UP THIS REQUEST FORM

Peatio is a free and open-source crypto currency exchange implementation with the Rails framework and other cutting-edge technology.

Mission

Our mission is to build the world best open-source crypto currency exchange with a high performance trading engine and safety which can be trusted and enjoyed by users. Additionally we want to move the crypto currency exchange technology forward by providing support and add new features. We are helping people to build easy their own exchange around the world.

Help is greatly appreciated, feel free to submit pull-requests or open issues.

Things You Should Know

RUNNING AN EXCHANGE IS HARD.

Peatio makes it easier, but running an exchange is still harder than a blog, which you can download the source code and following the guide or even a cool installer and boom!!! a fancy site is there to profit. We always prioritize security and speed higher than 1-click setup. We split Peatio to many components (processes) so it's flexible to deploy and scalable.

SECURITY KNOWLEDGE IS A REQUIREMENT.

Peatio cannot protect your customers when you leave your admin password 1234567, or open sensitive ports to public internet. No one can. Running an exchange is a very risky task because you're dealing with money directly. If you don't known how to make your exchange secure, hire an expert.

You must know what you're doing, there's no shortcut. Please get prepared before continue:

  • Rails knowledge
  • Security knowledge
  • System administration

Features

  • Designed as high performance crypto currency exchange.
  • Built-in high performance matching-engine.
  • Built-in Proof of Solvency Audit.
  • Built-in ticket system for customer support.
  • Usability and scalibility.
  • Websocket API and high frequency trading support.
  • Support multiple digital currencies (eg. Bitcoin, Litecoin, Dogecoin etc.).
  • Easy customization of payment processing for both fiat and digital currencies.
  • SMS and Google Two-Factor authenticaton.
  • KYC Verification.
  • Powerful admin dashboard and management tools.
  • Highly configurable and extendable.
  • Industry standard security out of box.
  • Active community behind.
  • Free and open-source.
  • Created and maintained by Peatio open-source group.

Known Exchanges using Peatio

Mobile Apps

  • Boilr - Cryptocurrency and bullion price alarms for Android

Requirements

  • Linux / Mac OSX
  • Ruby 2.2.7
  • Rails 4.0+
  • Git 1.7.10+
  • Redis 2.0+
  • MySQL
  • RabbitMQ

** More details are in the doc.

Getting started

API

You can interact with Peatio through API:

Here're some API clients and/or wrappers:

Custom Style

Peatio front-end based Bootstrap 3.0 version and Sass, and you can custom exchange style for your mind.

  • change bootstrap default variables in vars/_bootstrap.css.scss
  • change peatio custom default variables in vars/_basic.css.scss
  • add your custom variables in vars/_custom.css.scss
  • add your custom css style in layouts/_custom.css.scss
  • add or change features style in `features/_xyz.css.scss'

vars/_custom.css.scss can overwrite vars/_basic.css.scss defined variables layout/_custom.css.scss can overwrite layout/_basic.css.scss and layoputs/_header.css.scss style

Getting Involved

Want to report a bug, request a feature, contribute or translate Peatio?

  • Browse our issues, comment on proposals, report bugs.
  • Clone the peatio repo, make some changes according to our development guidelines and issue a pull-request with your changes.
  • Anything you want to tell us please send it to [email protected]
  • If you need technical support or customization service, contact us: [email protected]

License

Peatio is released under the terms of the MIT license. See http://peatio.mit-license.org for more information.

peatiocryptoexchange's People

Contributors

algobasket avatar dependabot[bot] avatar tieandsuit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

peatiocryptoexchange's Issues

Auto Refresh

Dont work the auto refresh in the exchange, for send and receive, and the orders.

Error when creating new address

deposit_issue

Hi, I get the following error when I try to create a new address:

"The page you were looking for doesn't exist.
You may have mistyped the address or the page may have moved."

I attached a pic. I have triple check my wallet settings and log file for hot wallet. No issues with rpc user/pass (checked with curl too). Just can't create a new address.
@algobasket What could cause this error?

404 Not Found

I successfully Installed peatio in production mode , no error how ever when i run it gives me ERROR
404 NOT FOUND ! any one can help me?

Pusher : Error (console log)

on my console log i am getting this error.

I alredy registered on pusher and got the code and replaced them on my APP

WebSocket connection to 'wss://api.pusherapp.com/app/46c99999999979dc9995?protocol=7&client=js&version=2.2.0&flash=false' failed: WebSocket is closed before the connection is established.
c.close @ funds-76328736273dvgdsdsdd88b2e99187.js:34

Pusher : Error : {"type":"WebSocketError","error":{"type":"PusherError","data":{"code":4001,"message":"App key 46c99999999979dc9995 not in this cluster. Did you forget to specify the cluster?"}}}
b.warn @ funds-76328736273dvgdsdsdd88b2e99187.js:34

rake db:setup error

NoMethodError: undefined method observers=' for ActiveRecord::Base:Class /home/deploy/.rbenv/peatio/vendor/bundle/ruby/2.5.0/gems/activerecord-4.2.11.1/lib/active_record/dynamic_matchers.rb:26:in method_missing'
/home/deploy/.rbenv/peatio/vendor/bundle/ruby/2.5.0/gems/activerecord-4.2.11.1/lib/active_record/railtie.rb:110:in block (3 levels) in <class:Railtie>' /home/deploy/.rbenv/peatio/vendor/bundle/ruby/2.5.0/gems/activerecord-4.2.11.1/lib/active_record/railtie.rb:109:in each'
/home/deploy/.rbenv/peatio/vendor/bundle/ruby/2.5.0/gems/activerecord-4.2.11.1/lib/active_record/railtie.rb:109:in block (2 levels) in <class:Railtie>' /home/deploy/.rbenv/peatio/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.11.1/lib/active_support/lazy_load_hooks.rb:38:in instance_eval'
/home/deploy/.rbenv/peatio/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.11.1/lib/active_support/lazy_load_hooks.rb:38:in execute_hook' /home/deploy/.rbenv/peatio/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.11.1/lib/active_support/lazy_load_hooks.rb:28:in block in on_load'
/home/deploy/.rbenv/peatio/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.11.1/lib/active_support/lazy_load_hooks.rb:27:in each' /home/deploy/.rbenv/peatio/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.11.1/lib/active_support/lazy_load_hooks.rb:27:in on_load'
/home/deploy/.rbenv/peatio/vendor/bundle/ruby/2.5.0/gems/activerecord-4.2.11.1/lib/active_record/railtie.rb:108:in block in <class:Railtie>' /home/deploy/.rbenv/peatio/vendor/bundle/ruby/2.5.0/gems/railties-4.2.11.1/lib/rails/initializable.rb:30:in instance_exec'
/home/deploy/.rbenv/peatio/vendor/bundle/ruby/2.5.0/gems/railties-4.2.11.1/lib/rails/initializable.rb:30:in run' /home/deploy/.rbenv/peatio/vendor/bundle/ruby/2.5.0/gems/railties-4.2.11.1/lib/rails/initializable.rb:55:in block in run_initializers'
/home/deploy/.rbenv/peatio/vendor/bundle/ruby/2.5.0/gems/railties-4.2.11.1/lib/rails/initializable.rb:54:in run_initializers' /home/deploy/.rbenv/peatio/vendor/bundle/ruby/2.5.0/gems/railties-4.2.11.1/lib/rails/application.rb:352:in initialize!'
/home/deploy/.rbenv/peatio/vendor/bundle/ruby/2.5.0/gems/railties-4.2.11.1/lib/rails/railtie.rb:194:in public_send' /home/deploy/.rbenv/peatio/vendor/bundle/ruby/2.5.0/gems/railties-4.2.11.1/lib/rails/railtie.rb:194:in method_missing'
/home/deploy/.rbenv/peatio/config/environment.rb:5:in <top (required)>' /home/deploy/.rbenv/peatio/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.11.1/lib/active_support/dependencies.rb:274:in require'
/home/deploy/.rbenv/peatio/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.11.1/lib/active_support/dependencies.rb:274:in block in require' /home/deploy/.rbenv/peatio/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.11.1/lib/active_support/dependencies.rb:240:in load_dependency'
/home/deploy/.rbenv/peatio/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.11.1/lib/active_support/dependencies.rb:274:in require' /home/deploy/.rbenv/peatio/vendor/bundle/ruby/2.5.0/gems/railties-4.2.11.1/lib/rails/application.rb:328:in require_environment!'

Updating old account with new currencies

I've been all over regarding this. When you add a new currency, the older accounts before the newest coin was added do not have new coin wallets.

You can manually go into the accounts table and add them in by editing the number under the currency column or using something like this to do it automatically? which i couldn't get to work.

https://github.com/Brexchange/Brexchange/blob/stable/lib/tasks/account.rake
or
https://github.com/rubykube/peatio/blob/master/lib/tasks/accounts.rake

NoMethodError: undefined method to_sym' for nil:NilClass
/home/deploy/peatio/lib/tasks/account_update.rake:5:in map'

Adding them in manually is horrible but it does the job, but it leaves a problem under the admin dashboard when you view a member of whose wallet you added.

UPDATE: I've fixed this part below, it was a dumb error on my end not adding it to the payment_address table, the update script problem remains
I, [2018-10-21T04:51:41.145697 #18051] INFO -- : Started GET "/admin/members/4" for 108.162.219.74 at 2018-10-21 04:51:41 +0000 I, [2018-10-21T04:51:41.188945 #18051] INFO -- : Processing by Admin::MembersController#show as HTML I, [2018-10-21T04:51:41.188999 #18051] INFO -- : Parameters: {"id"=>"4"} I, [2018-10-21T04:51:41.257062 #18051] INFO -- : Rendered shared/admin/_member.html.slim (23.9ms) I, [2018-10-21T04:51:41.266877 #18051] INFO -- : Rendered shared/admin/_account.html.slim (7.2ms) I, [2018-10-21T04:51:41.268388 #18051] INFO -- : Rendered shared/admin/_account.html.slim (1.4ms) I, [2018-10-21T04:51:41.269478 #18051] INFO -- : Rendered shared/admin/_account.html.slim (1.0ms) I, [2018-10-21T04:51:41.270561 #18051] INFO -- : Rendered shared/admin/_account.html.slim (1.0ms) I, [2018-10-21T04:51:41.271382 #18051] INFO -- : Rendered shared/admin/_account.html.slim (0.8ms) I, [2018-10-21T04:51:41.271438 #18051] INFO -- : Rendered shared/admin/_member_accounts.html.slim (14.0ms) I, [2018-10-21T04:51:41.271487 #18051] INFO -- : Rendered admin/members/show.html.slim within layouts/admin (48.5ms) I, [2018-10-21T04:51:41.271571 #18051] INFO -- : Completed 500 Internal Server Error in 83ms F, [2018-10-21T04:51:41.272374 #18051] FATAL -- : ActionView::Template::Error (undefined method coin?' for nil:NilClass):
8: = item_for account, :amount
9: = item_for account, :locked
10: = item_for account, :balance
11: - if account.currency_obj.coin?
12: = item_for t('.payment_address') do
13: = account.payment_address.address
app/views/shared/admin/_account.html.slim:11:in _app_views_shared_admin__account_html_slim___271691715853936049_47242019128580' app/views/shared/admin/_member_accounts.html.slim:2:in block in _app_views_shared_admin__member_accounts_html_slim__1164927640701448652_47242019342120'
app/views/shared/admin/_member_accounts.html.slim:1:in _app_views_shared_admin__member_accounts_html_slim__1164927640701448652_47242019342120' app/views/admin/members/show.html.slim:5:in _app_views_admin_members_show_html_slim___1733331812087846287_47242024543200'
lib/middleware/security.rb:11:in call'

is there a specific way you guys do this? any help much appreciated.

frontend issue

I have the front end working, on port 3000 but I cant get
nginx to work with passenger.

output: /bin/sh: 1: exec: /home/deploy/.rbenv/shims/ruby: not found
age/Cor/App/Implementation.cpp:221 ]: Could not spawn process for application /home/deploy/peatio: The application process exited prematurely.

/etc/nginx/passenger.conf

passenger_root /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini;
passenger_ruby /home/deploy/.rbenv/shims/ruby;

Having trouble connecting to Redis

I am able going through the production config and am able to see the server, but it seems to crash due to a redis connection issue

image

last 100 lines of global_state.rb.out

[2019-02-25T14:19:01.501773 #4225] ERROR -- : Resource temporarily unavailable - read would block (IO::EAGAINWaitReadable)
/home/deploy/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/redis-3.0.7/lib/redis/connection/ruby.rb:49:in `read_nonblock'
/home/deploy/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/redis-3.0.7/lib/redis/connection/ruby.rb:49:in `_read_from_socket'
/home/deploy/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/redis-3.0.7/lib/redis/connection/ruby.rb:41:in `gets'
/home/deploy/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/redis-3.0.7/lib/redis/connection/ruby.rb:273:in `read'
/home/deploy/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/redis-3.0.7/lib/redis/client.rb:229:in `block in read'
/home/deploy/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/redis-3.0.7/lib/redis/client.rb:220:in `io'
/home/deploy/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/redis-3.0.7/lib/redis/client.rb:228:in `read'
/home/deploy/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/redis-3.0.7/lib/redis/client.rb:96:in `block in call'
/home/deploy/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/redis-3.0.7/lib/redis/client.rb:201:in `block (2 levels) in process'
/home/deploy/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/redis-3.0.7/lib/redis/client.rb:309:in `ensure_connected'
/home/deploy/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/redis-3.0.7/lib/redis/client.rb:191:in `block in process'
/home/deploy/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/redis-3.0.7/lib/redis/client.rb:270:in `logging'
/home/deploy/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/redis-3.0.7/lib/redis/client.rb:190:in `process'
/home/deploy/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/redis-3.0.7/lib/redis/client.rb:96:in `call'
/home/deploy/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/redis-3.0.7/lib/redis.rb:784:in `block in get'
/home/deploy/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/redis-3.0.7/lib/redis.rb:37:in `block in synchronize'
/home/deploy/.rbenv/versions/2.2.2/lib/ruby/2.2.0/monitor.rb:211:in `mon_synchronize'
/home/deploy/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/redis-3.0.7/lib/redis.rb:37:in `synchronize'
/home/deploy/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/redis-3.0.7/lib/redis.rb:783:in `get'
/home/deploy/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/redis-store-1.1.4/lib/redis/store/interface.rb:5:in `get'
/home/deploy/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/redis-store-1.1.4/lib/redis/store/marshalling.rb:17:in `get'
/home/deploy/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/redis-activesupport-4.0.0/lib/active_support/cache/redis_store.rb:169:in `read_entry'
/home/deploy/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.0.12/lib/active_support/cache.rb:314:in `block in read'
/home/deploy/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.0.12/lib/active_support/cache.rb:519:in `instrument'
/home/deploy/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.0.12/lib/active_support/cache.rb:313:in `read'
/home/vagrant/PeatioCryptoExchange/app/models/global.rb:59:in `ticker'
/home/vagrant/PeatioCryptoExchange/lib/daemons/global_state.rb:21:in `block in <top (required)>'
/home/vagrant/PeatioCryptoExchange/lib/daemons/global_state.rb:18:in `each'
/home/vagrant/PeatioCryptoExchange/lib/daemons/global_state.rb:18:in `<top (required)>'
/home/deploy/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/daemons-1.1.9/lib/daemons/application.rb:203:in `load'
/home/deploy/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/daemons-1.1.9/lib/daemons/application.rb:203:in `start_load'
/home/deploy/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/daemons-1.1.9/lib/daemons/application.rb:298:in `start'
/home/deploy/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/daemons-1.1.9/lib/daemons/controller.rb:70:in `run'
/home/deploy/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/daemons-1.1.9/lib/daemons.rb:147:in `block in run'
/home/deploy/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/daemons-1.1.9/lib/daemons/cmdline.rb:109:in `call'
/home/deploy/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/daemons-1.1.9/lib/daemons/cmdline.rb:109:in `catch_exceptions'
/home/deploy/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/daemons-1.1.9/lib/daemons.rb:146:in `run'
/home/deploy/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/daemons-rails-1.2.1/lib/daemons/rails.rb:16:in `run'
lib/daemons/global_state_ctl:6:in `<main>'

redis appears to be up and there isn't a pw configured...

deploy@ubuntu-xenial:/home/vagrant/PeatioCryptoExchange$ redis-cli ping
PONG

Any ideas with this @algobasket ?

nailgun smtp with google domains

Hey, @algobasket - I have my mail settings all green in nailgun and the logs are telling me that it sent the email, but nothing ever arrives? I am running this on vagrant from my localhost...

I, [2019-02-26T15:07:14.405731 #28064]  INFO -- : Redirected to http://192.168.33.10/settings
I, [2019-02-26T15:07:14.405913 #28064]  INFO -- : Completed 302 Found in 49ms (ActiveRecord: 4.1ms)
I, [2019-02-26T15:07:14.409695 #28064]  INFO -- : Started GET "/settings" for 192.168.33.1 at 2019-02-26 15:07:14 +0000
I, [2019-02-26T15:07:14.413687 #28064]  INFO -- : Processing by Private::SettingsController#index as HTML
I, [2019-02-26T15:07:14.442398 #28064]  INFO -- :   Rendered private/settings/index.html.slim within layouts/application (17.2ms)
I, [2019-02-26T15:07:14.445197 #28064]  INFO -- :   Rendered shared/_html5.html.slim (0.1ms)
I, [2019-02-26T15:07:14.445916 #28064]  INFO -- :   Rendered shared/_meta.html.slim (0.3ms)
I, [2019-02-26T15:07:14.446601 #28064]  INFO -- :   Rendered shared/_alert.html.slim (0.1ms)
I, [2019-02-26T15:07:14.452244 #28064]  INFO -- :   Rendered shared/_header_profile_setting.html.slim (4.3ms)
I, [2019-02-26T15:07:14.453198 #28064]  INFO -- :   Rendered shared/_header_lang_sel.html.slim (0.1ms)
I, [2019-02-26T15:07:14.453422 #28064]  INFO -- :   Rendered shared/_header.html.slim (6.5ms)
I, [2019-02-26T15:07:14.454244 #28064]  INFO -- :   Rendered shared/_flash.slim (0.0ms)
I, [2019-02-26T15:07:14.454622 #28064]  INFO -- :   Rendered shared/_frame.html.slim (0.7ms)
I, [2019-02-26T15:07:14.454996 #28064]  INFO -- :   Rendered shared/_footer.html.slim (0.0ms)
I, [2019-02-26T15:07:14.455394 #28064]  INFO -- : Completed 200 OK in 41ms (Views: 27.7ms | ActiveRecord: 3.7ms)
I, [2019-02-26T15:08:14.568976 #1513]  INFO -- :
Sent mail to [email protected] (60165.4ms)

image

  # below settings only in production env
  # system notify mail settings
  # --------------------------------------------------------------
  SMTP_PORT: 587
  SMTP_DOMAIN: mg.cipherz.com
  SMTP_ADDRESS: smtp.mailgun.org
  SMTP_USERNAME: [email protected]
  SMTP_PASSWORD: redacted
  SMTP_AUTHENTICATION: plain # could be plain, login or cram_md5

Deposit gets 0 confirmations, Error on PaymentTransaction

I get the following error when making a deposit:

Error on PaymentTransaction::Normal: undefined local variable or method `c' for #<Deposits::

The deposit shows up in the user's wallet but always stays at 0 confirmations. Seems to be a conflict in the coin_rpc.rb

Add New Coin

After adding the new currencies in the system, following the step by step provided in the documentation. What would be the command to enable them for users?
I have noticed that I have to resend the db: setup command, but all user accounts are deleted ...

What could be doing wrong?

Note: After the db: setup command, but currencies appear in the system normally.

errors setup

Installing dependency gems
./peatio-fresh-installer.sh: line 168: bundle: command not found
Prepare configure files
/usr/bin/env: ruby: No such file or directory
Setup Pusher
sed: can't read config/application.yml: No such file or directory
sed: can't read config/application.yml: No such file or directory
sed: can't read config/application.yml: No such file or directory
ENTER YOUR SSH IP OR DOMAIN NAME : sship
185.22.232.222
sed: can't read config/application.yml: No such file or directory
USE http or https : protocol
http
sed: can't read config/application.yml: No such file or directory
Setup bitcoind rpc endpoint
Enter Bitcoin Username: bitcoinusername
bitcoinusername
sed: can't read config/currencies.yml: No such file or directory
Enter Bitcoin Password: bitcoinpass
bitcoinusername
sed: can't read config/currencies.yml: No such file or directory
Config database settings
Enter MySQL Username: mysqlusername
root
sed: can't read config/database.yml: No such file or directory
Enter MySQL Password: mysqlpassword
qw12345
sed: can't read config/database.yml: No such file or directory
Initialize the database and load the seed data
./peatio-fresh-installer.sh: line 211: bundle: command not found
Precompile assets
./peatio-fresh-installer.sh: line 215: bundle: command not found
Running Daemons
Running Daemons
Passenger Setting
rm: cannot remove ‘/etc/nginx/sites-enabled/default’: No such file or directory
ln: failed to create symbolic link ‘/etc/nginx/conf.d/peatio.conf’: No such file or directory
nginx: unrecognized service

bundle exec rake db:setup error

thanks for the tutorial, everything was doing well until i run: bundle exec rake db:setup so i got the error bellow, can you help me? thanks.

deploy@ubuntupeatio-VirtualBox:~/peatio$ bundle exec rake db:setup
rake aborted!
Psych::SyntaxError: (): could not find expected ':' while scanning a simple key at line 48 column 3
/home/deploy/peatio/vendor/bundle/ruby/2.2.0/gems/figaro-0.7.0/lib/figaro.rb:21:in raw' /home/deploy/peatio/vendor/bundle/ruby/2.2.0/gems/figaro-0.7.0/lib/figaro.rb:17:in env'
/home/deploy/peatio/vendor/bundle/ruby/2.2.0/gems/figaro-0.7.0/lib/figaro/railtie.rb:7:in block in <class:Railtie>' /home/deploy/peatio/vendor/bundle/ruby/2.2.0/gems/activesupport-4.0.12/lib/active_support/lazy_load_hooks.rb:36:in call'
/home/deploy/peatio/vendor/bundle/ruby/2.2.0/gems/activesupport-4.0.12/lib/active_support/lazy_load_hooks.rb:36:in execute_hook' /home/deploy/peatio/vendor/bundle/ruby/2.2.0/gems/activesupport-4.0.12/lib/active_support/lazy_load_hooks.rb:45:in block in run_load_hooks'
/home/deploy/peatio/vendor/bundle/ruby/2.2.0/gems/activesupport-4.0.12/lib/active_support/lazy_load_hooks.rb:44:in each' /home/deploy/peatio/vendor/bundle/ruby/2.2.0/gems/activesupport-4.0.12/lib/active_support/lazy_load_hooks.rb:44:in run_load_hooks'
/home/deploy/peatio/vendor/bundle/ruby/2.2.0/gems/railties-4.0.12/lib/rails/application.rb:67:in inherited' /home/deploy/peatio/config/application.rb:15:in module:Peatio'
/home/deploy/peatio/config/application.rb:14:in <top (required)>' /home/deploy/peatio/Rakefile:5:in require'
/home/deploy/peatio/Rakefile:5:in <top (required)>' /home/deploy/.rbenv/versions/2.2.2/bin/bundle:23:in load'
/home/deploy/.rbenv/versions/2.2.2/bin/bundle:23:in `

'
(See full trace by running task with --trace)

bundle install errors

I am asking myself why this errors started show up hahahah, I swear to god all runned perfect on this morning.

now
I tried run the command: bundle install --without development test --path vendor/bundle

and I get this:

Warning: the running version of Bundler is older than the version that created the lockfile. We suggest you upgrade to the latest version of Bundler by running gem install bundler`.
Fetching gem metadata from https://rubygems.org/.......
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Using rake 10.4.2
Using aasm 3.4.0
Using i18n 0.7.0
Using minitest 4.7.5
Using multi_json 1.10.1
Installing atomic 1.1.99 with native extensions

Errno::EACCES: Permission denied @ rb_sysopen - /home/deploy/peatio/vendor/bundle/ruby/2.3.0/gems/atomic-1.1.99/.coveralls.yml
Using tzinfo 0.3.42
Using builder 3.1.4
Using erubis 2.7.0
Using rack 1.5.2
Using mime-types 1.25.1
Using activerecord-deprecated_finders 1.0.3
Using arel 4.0.2
Using bundler 1.11.2
Using thor 0.19.1
Using hike 1.2.3
Using tilt 1.4.1
Using amq-protocol 1.9.2
Installing eventmachine 1.0.4 with native extensions

Errno::EACCES: Permission denied @ rb_sysopen - /home/deploy/peatio/vendor/bundle/ruby/2.3.0/gems/eventmachine-1.0.4/.gitignore
Using angularjs-rails 1.3.15
Using awesome_print 1.2.0
Using descendants_tracker 0.0.3
Using ice_nine 0.11.0
Installing bcrypt-ruby 3.1.2 with native extensions

Errno::EACCES: Permission denied @ rb_sysopen - /home/deploy/peatio/vendor/bundle/ruby/2.3.0/gems/bcrypt-ruby-3.1.2/.gitignore
Using sass 3.2.19
Using browser 0.8.0
Using cancancan 1.7.1
Installing json 1.8.1 with native extensions

Errno::EACCES: Permission denied @ rb_sysopen - /home/deploy/peatio/vendor/bundle/ruby/2.3.0/gems/json-1.8.1/.gitignore
Using chronic 0.10.2
Using coderay 1.1.0
Using coffee-script-source 1.7.0
Using execjs 2.2.1
Using currencies 0.4.2
Using daemons 1.1.9
Using structured_warnings 0.1.4
Using eco-source 1.1.0.rc.1
Installing http_parser.rb 0.6.0 with native extensions

Errno::EACCES: Permission denied @ rb_sysopen - /home/deploy/peatio/vendor/bundle/ruby/2.3.0/gems/http_parser.rb-0.6.0/.gitignore
Using equalizer 0.0.9
Using multipart-post 2.0.0
Installing ffi 1.9.3 with native extensions

Errno::EACCES: Permission denied @ rb_sysopen - /home/deploy/peatio/vendor/bundle/ruby/2.3.0/gems/ffi-1.9.3/ffi.gemspec
Using formatador 0.2.5
Using request_store 1.1.0
Using hashie 3.3.2
Using multi_xml 0.5.5
Using kramdown 1.3.3
Using rb-fsevent 0.10.3
Using lumberjack 1.0.13
Using nenv 0.3.0
Using shellany 0.0.1
Using method_source 0.8.2
Using slop 3.4.7
Using guard-compat 1.2.1
Using http_accept_language 2.0.1
Using httpclient 2.3.4.1
Using jwt 2.1.0
Using mini_portile 0.6.2
Installing mysql2 0.3.21 with native extensions

Errno::EACCES: Permission denied @ rb_sysopen - /home/deploy/peatio/vendor/bundle/ruby/2.3.0/gems/mysql2-0.3.21/LICENSE
Using phonelib 0.3.5
Using signature 0.1.7
Installing rbtree 0.4.2 with native extensions

Errno::EACCES: Permission denied @ rb_sysopen - /home/deploy/peatio/vendor/bundle/ruby/2.3.0/gems/rbtree-0.4.2/LICENSE
Using redis 3.0.7
Using rotp 1.6.1
Using temple 0.6.7
An error occurred while installing atomic (1.1.99), and Bundler cannot continue.
Make sure that gem install atomic -v '1.1.99' succeeds before bundling.
`

Error Solvency

I, [2019-02-26T14:06:28.695321 #19921] INFO -- : Completed 500 Internal Server Error in 5983ms
F, [2019-02-26T14:06:28.697473 #19921] FATAL -- :
ActionView::Template::Error (undefined method sum' for nil:NilClass): 11: span.title = t('.btc-assets-total') 12: span.currency 13: == t("currency.icon.btc") 14: = @btc_proof.sum 15: = render 'liability_data', account: @btc_account, proof: @btc_proof 16: 17: #brl-proof.tab-pane: .trade-wrapper app/views/private/assets/_liability_tabs.html.slim:14:in _app_views_private_assets__liability_tabs_html_slim__1354508124934000459_47444682067040'
app/views/private/assets/_liability_proof.html.slim:10:in _app_views_private_assets__liability_proof_html_slim__2601858994275372780_47444682541520' app/views/private/assets/index.html.slim:21:in block in _app_views_private_assets_index_html_slim___498693701765864209_47444684108620'
app/views/private/assets/index.html.slim:1:in _app_views_private_assets_index_html_slim___498693701765864209_47444684108620' lib/middleware/security.rb:11:in call'

Bitcoin deposit list is empty. How to fix it?

in: funds#/deposits/btc

Bitcoin deposit list is empty , how to fix it?

bitcoind it is running and I have the lastest blocks I can see the coins are threre.

in Currencies Summary I can see in Hot-Wallet Balance all users bitcoin are there, but how I send it for them?

looks like this code it is broken?

Nginx SITE DON'T LOAD

Can I get some help with the last part of building peatio

image

it is done but when I load the UI I get

image

can you help me?

add new currency

i see your video and demo and i open admin panel but i dont see any option to add new currency how can add new currency in exchange

Could not find rake-10.4.2 in any of the sources

I've got this error message when run the command: bundle exec rake daemons:start

Traceback (most recent call last):
11: from /root/.rbenv/versions/2.5.0/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in require' 10: from /root/.rbenv/versions/2.5.0/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in require'
9: from /var/lib/gems/2.3.0/gems/bundler-1.16.5/lib/bundler/setup.rb:20:in <top (required)>' 8: from /var/lib/gems/2.3.0/gems/bundler-1.16.5/lib/bundler.rb:107:in setup'
7: from /var/lib/gems/2.3.0/gems/bundler-1.16.5/lib/bundler/runtime.rb:20:in setup' 6: from /var/lib/gems/2.3.0/gems/bundler-1.16.5/lib/bundler/runtime.rb:108:in block in definition_method'
5: from /var/lib/gems/2.3.0/gems/bundler-1.16.5/lib/bundler/definition.rb:227:in requested_specs' 4: from /var/lib/gems/2.3.0/gems/bundler-1.16.5/lib/bundler/definition.rb:238:in specs_for'
3: from /var/lib/gems/2.3.0/gems/bundler-1.16.5/lib/bundler/definition.rb:171:in specs' 2: from /var/lib/gems/2.3.0/gems/bundler-1.16.5/lib/bundler/spec_set.rb:85:in materialize'
1: from /var/lib/gems/2.3.0/gems/bundler-1.16.5/lib/bundler/spec_set.rb:85:in map!' /var/lib/gems/2.3.0/gems/bundler-1.16.5/lib/bundler/spec_set.rb:91:in block in materialize': Could not find rake-10.4.2 in any of the sources (Bundler::GemNotFound)

I've installed rake v10.4.2 manually but got the same error when run the command.

Somebody can help me?

Deposits do not appear in user account

After making the deposit at the address that is automatically provided by the system, the amount is only available in the main admin panel, showing the total wallet balance, but the balance is not directed to the user.

rebuild a .slim template

I did some changes into the index.html.slim , now how I can rebuild it and see the changes?

thank you.

404 not found

every thing was going good but after run these commands

sudo rm /etc/nginx/sites-enabled/default
sudo ln -s /home/deploy/peatio/config/nginx.conf /etc/nginx/conf.d/peatio.conf
sudo service nginx restart

my web browser show

404 Not Found
nginx/1.14.0

what happend this

Setting SMTP mail properly on my localhost

hi guys, the project it is working nicely on my local machine, I just got a problem to receive and send emails. to validate accounts.

some guys said to use mail-gun, but i could make it works on my local-machine, any suggestions how to install it and test the email function from my local-machine? thank you.

I have to change the config but I dont know what to put there.

below settings only in production env

system notify mail settings

--------------------------------------------------------------

SMTP_PORT: YOUR_SMTP_PORT
SMTP_DOMAIN: YOUR_SMTP_DOMAIN
SMTP_ADDRESS: YOUR_SMTP_ADDRESS
SMTP_USERNAME: YOUR_SMTP_USERNAME
SMTP_PASSWORD: YOUR_SMTP_PASSWORD
SMTP_AUTHENTICATION: plain # could be plain, login or cram_md5

Missing files

I am missing the following files in my locales folder:

peatio/current/config/locales/

en.yml
breadcrumbs/en.yml (// add titles for new routes)
currency/en.yml (// add new currency titles to the existing list of supported currencies)
deposits/{coin}s/en.yml
enumerize/en.yml

I only have server.en.yml & client.en.yml

how can I fix this?

BTC testnet Deposit History

I am using btc testnet.
I am using stable branch.
all deamons are running.
I am connected to the btc testnet chain
I can see the full ammount of btc deposit in my hot wallet
the user can see his address
bitcoind it is running, wallet sync and I can see my hotwallet ballance. and i had included the right btc address.

in currencies.yml, I using this for the testnet,
blockchain: https://testnet.blockchain.info/tx/#{txid}
address_url: https://testnet.blockchain.info/address/#{address}

but I still can't see the deposit history

deposit

deposit2

bundle install without development issue

getting the following error when running:
bundle install --without development test --path vendor/bundle

`Fetching json 1.8.1
Installing json 1.8.1 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory: /home/deploy/peatio/vendor/bundle/ruby/2.3.0/gems/json-1.8.1/ext/json/ext/generator

/home/deploy/.rbenv/versions/2.3.8/bin/ruby -r ./siteconf20190225-20463-gh6sk.rb extconf.rb
creating Makefile

current directory: /home/deploy/peatio/vendor/bundle/ruby/2.3.0/gems/json-1.8.1/ext/json/ext/generator
make "DESTDIR=" clean

current directory: /home/deploy/peatio/vendor/bundle/ruby/2.3.0/gems/json-1.8.1/ext/json/ext/generator
make "DESTDIR="
compiling generator.c
In file included from generator.c:1:0:
../fbuffer/fbuffer.h: In function ‘fbuffer_to_s’:
../fbuffer/fbuffer.h:175:47: error: macro "rb_str_new" requires 2 arguments, but only 1 given
VALUE result = rb_str_new(FBUFFER_PAIR(fb));
^
../fbuffer/fbuffer.h:175:20: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
VALUE result = rb_str_new(FBUFFER_PAIR(fb));
^
Makefile:238: recipe for target 'generator.o' failed
make: *** [generator.o] Error 1

make failed, exit code 2

Gem files will remain installed in /home/deploy/peatio/vendor/bundle/ruby/2.3.0/gems/json-1.8.1 for inspection.
Results logged to /home/deploy/peatio/vendor/bundle/ruby/2.3.0/extensions/x86_64-linux/2.3.0-static/json-1.8.1/gem_make.out

An error occurred while installing json (1.8.1), and Bundler cannot continue.
Make sure that gem install json -v '1.8.1' --source 'https://rubygems.org/' succeeds before bundling.
`

I have to say i used rbenv 2.3.8 because 2.2.2 was incompatible.

Delete members

Does anyone know how to delete members from the database?

Admin login

Still can't login to the admin area of the site. This is my 3rd time installing peatio and I've never been able to get to the admin area. It is unclear in the installation instruction how to properly access the admin site. It would be helpful to have something like the following in the instructions:
#############################################
How to login to admin area: http://yourdomain.com/admin
#############################################
what I'm looking for is the exact url. There has been reference to using port 3000 but yet again it is very vague and unclear

I have the site up and running. I completed the final steps as per the instructions
"bundle exec rake daemons:start"
"bundle exec rails server"
then
Visit http://localhost:3000

user: [email protected]
pass: Pass@word8

I can't understand why I can get to the main home page and sign in page but not the admin area?

After running "bundle exec rails server" I get this:

deploy@TVSERVER:~/peatio$ bundle exec rails server
=> Booting WEBrick
=> Rails 4.0.12 application starting in production on http://0.0.0.0:3000
=> Run rails server -h for more startup options
=> Ctrl-C to shutdown server
[2019-03-03 06:08:22] INFO WEBrick 1.3.1
[2019-03-03 06:08:22] INFO ruby 2.2.2 (2015-04-13) [x86_64-linux]
[2019-03-03 06:08:22] INFO WEBrick::HTTPServer#start: pid=3833 port=3000

my port 3000 is open in the firewall, the site is up and running. What am I doing wrong?
What is the correct url to go to after fully competing the install with a domain name instead of "localhost" or "ipaddress"?
Can https be causing and issue? does the port 3000 need to be in the site conf file in nginx? next to port 80?

Admin - banks deposits ( 500 Internal Server Error after accept it)

Admin banks deposits 500 Internal Server Error after accept it

adm

Request URL: http://192.111.0.111/admin/deposits/banks/1
Request Method: POST
Status Code: 500 Internal Server Error
Remote Address: 192.111.0.111:80
Referrer Policy: no-referrer-when-downgrade
Connection: keep-alive
Content-Length: 643
Content-Type: text/html; charset=utf-8
Date: Tue, 13 Nov 2018 14:50:40 GMT
Server: nginx/1.14.0 + Phusion Passenger 5.3.7
Status: 500 Internal Server Error
X-Powered-By: Phusion Passenger 5.3.7
X-Request-Id: b01fd919-68cf-4399-8e19-9dc6420fc0ae
X-Runtime: 0.044899
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9,pt-BR;q=0.8,pt;q=0.7,es;q=0.6,it;q=0.5,ja;q=0.4
Cache-Control: max-age=0
Connection: keep-alive
Content-Length: 140
Content-Type: application/x-www-form-urlencoded
Cookie: _peatio_session=2c7e900abcdd42a5cb0e3da295b04aaa; XSRF-TOKEN=d2FA5zVQJxVIwN%2Ff3FHkj4Ag%2Bm%2B5cJRf7Npn2RoVILg%3D; market_id=btccny; sound=true; range_switch=60; type_switch=candlestick; main_indicator_switch=MA; indicator_switch=MACD
Host: http://192.111.0.111
Origin: http://192.111.0.111
Referer: http://192.111.0.111/admin/deposits/banks/1
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36
utf8: ✓
_method: patch
authenticity_token: d2FA5zVQJxVIwN/f3FHkj4Ag+m+5cJRf7Npn2RoVILg=
deposits_bank[txid]: 1
commit: Accept

16 decimals not supported

not sure if this is for everyone but i'm getting balances that are "1.1234567891234567" and the wallets won't process past "1.12345678" and this is causing locks in withdraws (ive fixed it here by fixing the balance to 8 decimals) and locks in cancelling bids.

is there somewhere universal i can change this to prevent it?
or suggestions on how to prevent this?

also is there a way to manually cancel these locked coins?

Unable to load "Funds" tab from Admin Dashboard

I have setup the peatio exchange using the guide here - https://github.com/algobasket/PeatioCryptoExchange/blob/rebuild-peatio/doc/setup-local-ubuntu.md
I am facing few issues after installing:

  • When I click on "Funds" tab from the top panel, I am getting the error as "Failed to load template: /templates/funds/accounts.html (HTTP status: 404 Not Found )" Please check the screenshot below.

peatio_console_log

  • Also, when I go to "Trade" page, I am unable to place any buy/sell order. I have provided Bitcoin RPC link in currencies.yaml line. No matter, whatever price I enter, I always get error as "Failed". Any help is really appreciated. Thank you 👍
    screenshot from 2018-10-16 12-31-37

Error generating new address

I am getting the following error when trying to generate a new address:

F, [2019-02-16T11:57:53.326545 #12211] FATAL -- :
ActionView::MissingTemplate (Missing template private/deposits/satoshis/gen_address, private/deposits/base/gen_address, private/base/gen_address, application/gen_address with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :raw, :ruby, :jbuilder, :slim, :coffee]}. Searched in:

  • "/home/root/peatio/app/views"
  • "/home/root/peatio/vendor/bundle/ruby/2.3.0/gems/kaminari-0.15.1/app/views"
  • "/home/root/peatio/vendor/bundle/ruby/2.3.0/gems/datagrid-1.0.5/app/views"
  • "/home/root/peatio/vendor/bundle/ruby/2.3.0/gems/doorkeeper-1.4.1/app/views"
    ):
    lib/middleware/security.rb:11:in `call'

SMTP

Cant send mails with,

SMTP_PORT: 465
SMTP_DOMAIN: gmail.com
SMTP_ADDRESS: smtp.gmail.com
SMTP_USERNAME: [email protected]
SMTP_PASSWORD: ***
SMTP_AUTHENTICATION: plain

Or

SMTP_PORT: 465
SMTP_DOMAIN: mailgun.com
SMTP_ADDRESS: smtp.mailgun.org
SMTP_USERNAME: [email protected]
SMTP_PASSWORD: ***************************************************
SMTP_AUTHENTICATION: plain

Anyone knows how to solve this?

rake db:setup error

Hello, @algobasket! Thanks for the great docs - I am looking forward to getting my V1 up and running. I am having an issue running the simple rake setup command. I am not sure what is going on from the trace - any ideas? I followed your video and the production deploy steps on a vagrant box, but I'm kindof stuck here...

deploy@ubuntu-xenial:~/peatio/current$ bundle exec rake db:setup --trace
/home/deploy/.rvm/gems/ruby-2.2.2/gems/figaro-1.1.1/lib/figaro/application.rb:84:in `non_string_configuration!' : WARNING: Use strings for Figaro configuration. 60 was converted to "60". (StructuredWarnings::StandardWarning)
/home/deploy/.rvm/gems/ruby-2.2.2/gems/figaro-1.1.1/lib/figaro/application.rb:84:in `non_string_configuration!' : WARNING: Use strings for Figaro configuration. 8080 was converted to "8080". (StructuredWarnings::StandardWarning)
/home/deploy/.rvm/gems/ruby-2.2.2/gems/figaro-1.1.1/lib/figaro/application.rb:84:in `non_string_configuration!' : WARNING: Use strings for Figaro configuration. 65910 was converted to "65910". (StructuredWarnings::StandardWarning)
/home/deploy/.rvm/gems/ruby-2.2.2/gems/figaro-1.1.1/lib/figaro/application.rb:84:in `non_string_configuration!' : WARNING: Use strings for Figaro configuration. 80 was converted to "80". (StructuredWarnings::StandardWarning)
/home/deploy/.rvm/gems/ruby-2.2.2/gems/figaro-1.1.1/lib/figaro/application.rb:84:in `non_string_configuration!' : WARNING: Use strings for Figaro configuration. 80 was converted to "80". (StructuredWarnings::StandardWarning)
/home/deploy/.rvm/gems/ruby-2.2.2/gems/figaro-1.1.1/lib/figaro/application.rb:84:in `non_string_configuration!' : WARNING: Use strings for Figaro configuration. 443 was converted to "443". (StructuredWarnings::StandardWarning)
/home/deploy/.rvm/gems/ruby-2.2.2/gems/figaro-1.1.1/lib/figaro/application.rb:84:in `non_string_configuration!' : WARNING: Use strings for Figaro configuration. true was converted to "true". (StructuredWarnings::StandardWarning)
/home/deploy/.rvm/gems/ruby-2.2.2/gems/figaro-1.1.1/lib/figaro/application.rb:84:in `non_string_configuration!' : WARNING: Use strings for Figaro configuration. false was converted to "false". (StructuredWarnings::StandardWarning)
/home/deploy/.rvm/gems/ruby-2.2.2/gems/figaro-1.1.1/lib/figaro/application.rb:84:in `non_string_configuration!' : WARNING: Use strings for Figaro configuration. 3820920586 was converted to "3820920586". (StructuredWarnings::StandardWarning)
** Invoke db:setup (first_time)
** Invoke db:schema:load_if_ruby (first_time)
** Invoke db:create (first_time)
** Invoke db:load_config (first_time)
** Execute db:load_config
** Execute db:create
peatio_production already exists
** Invoke environment (first_time)
** Execute environment
rake aborted!
NameError: uninitialized constant ActiveRecord::Type
/home/deploy/.rvm/gems/ruby-2.2.2/gems/enumerize-2.2.2/lib/enumerize/activerecord.rb:69:in `<module:ActiveRecordSupport>'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/enumerize-2.2.2/lib/enumerize/activerecord.rb:2:in `<module:Enumerize>'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/enumerize-2.2.2/lib/enumerize/activerecord.rb:1:in `<top (required)>'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/enumerize-2.2.2/lib/enumerize.rb:40:in `extended'
/home/deploy/peatio/current/app/models/deposit.rb:4:in `extend'
/home/deploy/peatio/current/app/models/deposit.rb:4:in `<class:Deposit>'
/home/deploy/peatio/current/app/models/deposit.rb:1:in `<top (required)>'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/activesupport-4.0.13/lib/active_support/inflector/methods.rb:226:in `const_get'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/activesupport-4.0.13/lib/active_support/inflector/methods.rb:226:in `block in constantize'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/activesupport-4.0.13/lib/active_support/inflector/methods.rb:224:in `each'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/activesupport-4.0.13/lib/active_support/inflector/methods.rb:224:in `inject'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/activesupport-4.0.13/lib/active_support/inflector/methods.rb:224:in `constantize'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/activesupport-4.0.13/lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/rails-observers-0.1.5/lib/rails/observers/active_model/observing.rb:309:in `block in observe'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/rails-observers-0.1.5/lib/rails/observers/active_model/observing.rb:309:in `collect!'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/rails-observers-0.1.5/lib/rails/observers/active_model/observing.rb:309:in `observe'
/home/deploy/peatio/current/app/observers/transfer_observer.rb:2:in `<class:TransferObserver>'
/home/deploy/peatio/current/app/observers/transfer_observer.rb:1:in `<top (required)>'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/activesupport-4.0.13/lib/active_support/inflector/methods.rb:226:in `const_get'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/activesupport-4.0.13/lib/active_support/inflector/methods.rb:226:in `block in constantize'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/activesupport-4.0.13/lib/active_support/inflector/methods.rb:224:in `each'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/activesupport-4.0.13/lib/active_support/inflector/methods.rb:224:in `inject'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/activesupport-4.0.13/lib/active_support/inflector/methods.rb:224:in `constantize'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/activesupport-4.0.13/lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/rails-observers-0.1.5/lib/rails/observers/active_model/observing.rb:183:in `instantiate_observer'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/rails-observers-0.1.5/lib/rails/observers/active_model/observing.rb:108:in `block in instantiate_observers'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/rails-observers-0.1.5/lib/rails/observers/active_model/observing.rb:108:in `each'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/rails-observers-0.1.5/lib/rails/observers/active_model/observing.rb:108:in `instantiate_observers'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/rails-observers-0.1.5/lib/rails/observers/railtie.rb:42:in `block (2 levels) in <class:Railtie>'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/activesupport-4.0.13/lib/active_support/lazy_load_hooks.rb:38:in `instance_eval'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/activesupport-4.0.13/lib/active_support/lazy_load_hooks.rb:38:in `execute_hook'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/activesupport-4.0.13/lib/active_support/lazy_load_hooks.rb:28:in `block in on_load'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/activesupport-4.0.13/lib/active_support/lazy_load_hooks.rb:27:in `each'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/activesupport-4.0.13/lib/active_support/lazy_load_hooks.rb:27:in `on_load'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/rails-observers-0.1.5/lib/rails/observers/railtie.rb:41:in `block in <class:Railtie>'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/activesupport-4.0.13/lib/active_support/lazy_load_hooks.rb:36:in `call'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/activesupport-4.0.13/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/activesupport-4.0.13/lib/active_support/lazy_load_hooks.rb:45:in `block in run_load_hooks'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/activesupport-4.0.13/lib/active_support/lazy_load_hooks.rb:44:in `each'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/activesupport-4.0.13/lib/active_support/lazy_load_hooks.rb:44:in `run_load_hooks'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/railties-4.0.13/lib/rails/application/finisher.rb:62:in `block in <module:Finisher>'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/railties-4.0.13/lib/rails/initializable.rb:30:in `instance_exec'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/railties-4.0.13/lib/rails/initializable.rb:30:in `run'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/railties-4.0.13/lib/rails/initializable.rb:55:in `block in run_initializers'
/home/deploy/.rbenv/versions/2.2.2/lib/ruby/2.2.0/tsort.rb:226:in `block in tsort_each'
/home/deploy/.rbenv/versions/2.2.2/lib/ruby/2.2.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'
/home/deploy/.rbenv/versions/2.2.2/lib/ruby/2.2.0/tsort.rb:429:in `each_strongly_connected_component_from'
/home/deploy/.rbenv/versions/2.2.2/lib/ruby/2.2.0/tsort.rb:347:in `block in each_strongly_connected_component'
/home/deploy/.rbenv/versions/2.2.2/lib/ruby/2.2.0/tsort.rb:345:in `each'
/home/deploy/.rbenv/versions/2.2.2/lib/ruby/2.2.0/tsort.rb:345:in `call'
/home/deploy/.rbenv/versions/2.2.2/lib/ruby/2.2.0/tsort.rb:345:in `each_strongly_connected_component'
/home/deploy/.rbenv/versions/2.2.2/lib/ruby/2.2.0/tsort.rb:224:in `tsort_each'
/home/deploy/.rbenv/versions/2.2.2/lib/ruby/2.2.0/tsort.rb:203:in `tsort_each'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/railties-4.0.13/lib/rails/initializable.rb:54:in `run_initializers'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/railties-4.0.13/lib/rails/application.rb:215:in `initialize!'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/railties-4.0.13/lib/rails/railtie/configurable.rb:30:in `method_missing'
/home/deploy/peatio/current/config/environment.rb:5:in `<top (required)>'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/railties-4.0.13/lib/rails/application.rb:189:in `require_environment!'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/railties-4.0.13/lib/rails/application.rb:260:in `block in run_tasks_blocks'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/rake-12.3.2/lib/rake/task.rb:273:in `call'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/rake-12.3.2/lib/rake/task.rb:273:in `block in execute'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/rake-12.3.2/lib/rake/task.rb:273:in `each'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/rake-12.3.2/lib/rake/task.rb:273:in `execute'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/rake-12.3.2/lib/rake/task.rb:214:in `block in invoke_with_call_chain'
/home/deploy/.rbenv/versions/2.2.2/lib/ruby/2.2.0/monitor.rb:211:in `mon_synchronize'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/rake-12.3.2/lib/rake/task.rb:194:in `invoke_with_call_chain'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/rake-12.3.2/lib/rake/task.rb:238:in `block in invoke_prerequisites'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/rake-12.3.2/lib/rake/task.rb:236:in `each'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/rake-12.3.2/lib/rake/task.rb:236:in `invoke_prerequisites'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/rake-12.3.2/lib/rake/task.rb:213:in `block in invoke_with_call_chain'
/home/deploy/.rbenv/versions/2.2.2/lib/ruby/2.2.0/monitor.rb:211:in `mon_synchronize'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/rake-12.3.2/lib/rake/task.rb:194:in `invoke_with_call_chain'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/rake-12.3.2/lib/rake/task.rb:238:in `block in invoke_prerequisites'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/rake-12.3.2/lib/rake/task.rb:236:in `each'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/rake-12.3.2/lib/rake/task.rb:236:in `invoke_prerequisites'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/rake-12.3.2/lib/rake/task.rb:213:in `block in invoke_with_call_chain'
/home/deploy/.rbenv/versions/2.2.2/lib/ruby/2.2.0/monitor.rb:211:in `mon_synchronize'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/rake-12.3.2/lib/rake/task.rb:194:in `invoke_with_call_chain'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/rake-12.3.2/lib/rake/task.rb:183:in `invoke'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/rake-12.3.2/lib/rake/application.rb:160:in `invoke_task'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/rake-12.3.2/lib/rake/application.rb:116:in `block (2 levels) in top_level'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/rake-12.3.2/lib/rake/application.rb:116:in `each'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/rake-12.3.2/lib/rake/application.rb:116:in `block in top_level'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/rake-12.3.2/lib/rake/application.rb:125:in `run_with_threads'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/rake-12.3.2/lib/rake/application.rb:110:in `top_level'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/rake-12.3.2/lib/rake/application.rb:83:in `block in run'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/rake-12.3.2/lib/rake/application.rb:186:in `standard_exception_handling'
/home/deploy/.rvm/gems/ruby-2.2.2/gems/rake-12.3.2/lib/rake/application.rb:80:in `run'
/home/deploy/.rbenv/versions/2.2.2/bin/rake:33:in `<main>'
Tasks: TOP => db:setup => db:schema:load_if_ruby => environment
deploy@ubuntu-xenial:~/peatio/current$ 

Admin deposits satoshis getting blank page.

/admin/deposits/satoshis

on admin panel when I go to deposits - bitcoin deposits.

i don't see the last deposits i just get a empty page.

the testnet wallet it is working and I received the testnet coins which went to:

Hot-Wallet Balance |  

0.65615709

did:
tail -f log/production.log

I, [2018-11-13T21:38:12.642238 #20249] INFO -- : Completed 200 OK in 19ms (Views: 9.8ms | ActiveRecord: 0.8ms)

how can I see it the lastest transactions and approve it .

Don'r receive activation email

Hi!
I`ve installed correctly on production mode but don't receive activation email after signup:

log/production.log:

I, [2018-11-11T18:01:21.629469 #7306] INFO -- : Redirected to http://kryptobitmarket.com/settings
I, [2018-11-11T18:01:21.629913 #7306] INFO -- : Completed 302 Found in 115ms (ActiveRecord: 31.7ms)
I, [2018-11-11T18:01:21.631690 #27683] INFO -- : Rendered token_mailer/activation.html.erb within layouts/mailers/application (0.8ms)
I, [2018-11-11T18:01:21.640511 #27683] INFO -- :
Sent mail to [email protected] (6.5ms)
I, [2018-11-11T18:01:21.702549 #7306] INFO -- : Started GET "/settings" for 47.63.217.156 at 2018-11-11 18:01:21 +0100
I, [2018-11-11T18:01:21.704791 #7306] INFO -- : Processing by Private::SettingsController#index as HTML
I, [2018-11-11T18:01:21.748268 #7306] INFO -- : Rendered private/settings/index.html.slim within layouts/application (27.8ms)

BTC Deposit Address is not showing and cannot be created

in: /funds#/deposits/btc , I can't see my btc address and I can't generate a new one.

why the address it is empty? any idea what it is going on?

I started : bitcoind and still downloading the blockchain is there is the reason?

when I click in : generate a new deposit address and confirm I get this message bellow.

it can't generate new address if it hasn't been used.

thank you.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.