title: Can't deploy smart contract on Rinkeby or Ropsten via Truffle
body: <p>I've been trying to set up demo ethereum based ICO fallowing <a href="https://blog.zeppelin.solutions/how-to-create-token-and-initial-coin-offering-contracts-using-truffle-openzeppelin-1b7a5dae99b6" rel="nofollow noreferrer">this tutorial</a>, but each time i try to deploy contract to Ropsten or Rinkeby ir fails with this error:</p>
  
  <pre><code>Running migration: 2_deploy_contracts.js
    Deploying SuperHeroTokenThreeCrowdsale...
    ... 0x9d0da17f00192993720639abceecc2b33c5fbb9a29dd43fa6e1abd0ce6aecc5d
  Error encountered, bailing. Network state unknown. Review successful transactions manually.
  Error: The contract code couldn't be stored, please check your gas amount.
      at Object.callback (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:314870:46)
      at /usr/local/lib/node_modules/truffle/build/cli.bundled.js:35060:25
      at /usr/local/lib/node_modules/truffle/build/cli.bundled.js:316808:9
      at /usr/local/lib/node_modules/truffle/build/cli.bundled.js:164746:11
      at /usr/local/lib/node_modules/truffle/build/cli.bundled.js:294942:9
      at XMLHttpRequest.request.onreadystatechange (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:296367:13)
      at XMLHttpRequestEventTarget.dispatchEvent (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:164934:18)
      at XMLHttpRequest._setReadyState (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:165224:12)
      at XMLHttpRequest._onHttpResponseEnd (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:165379:12)
      at IncomingMessage.&lt;anonymous&gt; (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:165339:24)
  </code></pre>
  
  <ul>
  <li>System: Ubuntu 16.04 </li>
  <li>Truffle: v4.0.0-beta.2 </li>
  <li>Geth: 1.7.2-stable</li>
  <li>OpenZeppelyn Solidity 1.3.0</li>
  </ul>
  
  <p>truffle.js:</p>
  
  <pre><code>module.exports = {
    networks: {
      development: {
        host: "localhost",
        port: 8545,
        gas: 4700000, 
        from: '0x24182550B8630629501AC11f5568dbb7EE18dBd2',
        network_id: "*" // Match any network id
      },
    }
  };
  </code></pre>
  
  <p>Also I have to say that i have ether's on my Rinkeby account. 
  Another note - if i deploy to TestRpc it works just fine, i can buy my custom tokens and it all works just fine. I've tried to tweak gas amount but nothing changes.</p>
  
  <p>Any ideas where could be the problem?</p>