title: Error processing Instruction 1 when deploying Solana program?
body: <p>When I deploy a Solana program to devnet it works fine.</p>
  <p>However, when I try to deploy the same program to production I get the following error:</p>
  <pre><code>Error: Deploying program failed: Error processing Instruction 1: custom program error: 0x1
  There was a problem deploying: Output { status: ExitStatus(ExitStatus(256)), stdout: &quot;&quot;, stderr: &quot;&quot; }.
  </code></pre>
  <p>The command I am using is:</p>
  <pre><code>solana -k admin_key.json -u mainnet-beta program deploy target/deploy/pixels.so
  </code></pre>
  <p>This command works fine if I swap <code>mainnet-beta</code> with <code>devnet</code>.</p>
  <p>It's worth noting that I can deploy to production (and I have) using:</p>
  <p><code>solana -k admin_key.json -u mainnet-beta deploy target/deploy/pixels.so</code></p>
  <p>Does anyone understand why the discrepancy between devnet and mainnet here?</p>
  <p>Here's a link to the currently deployed program on main net:
  <a href="https://explorer.solana.com/address/JBAnZXrD67jvzkWGgZPVP3C6XB7Nd7s1Bj7LXvLjrPQA" rel="noreferrer">https://explorer.solana.com/address/JBAnZXrD67jvzkWGgZPVP3C6XB7Nd7s1Bj7LXvLjrPQA</a></p>
  <p>This was deployed using <code>solana [...] deploy</code> (versus the modern way of <code>solana [...] program deploy</code>).</p>
  <p>You can see an example of a program deployed the modern way to dev net here:</p>
  <p><a href="https://explorer.solana.com/address/6uCCuJaQSQYGx4NwpDtZRyxyUvDMUJaVG1L6CmowgSTx?cluster=devnet" rel="noreferrer">https://explorer.solana.com/address/6uCCuJaQSQYGx4NwpDtZRyxyUvDMUJaVG1L6CmowgSTx?cluster=devnet</a></p>