quadratic-funding / mpc-phase2-suite

The MPC suite of tools for conducting zkSNARK Phase 2 Trusted Setup ceremonies
MIT License
16 stars 6 forks source link

Couldn't perform `phase2cli auth` on remote machine #314

Open baumstern opened 1 year ago

baumstern commented 1 year ago
   ___ _                      ____         _ _ 
  / _ \ |__   __ _ ___  ___  |___ \    ___| (_)
 / /_)/ '_ \ / _` / __|/ _ \   __) |  / __| | |
/ ___/| | | | (_| \__ \  __/  / __/  | (__| | |
\/    |_| |_|\__,_|___/\___| |_____|  \___|_|_|

file:///home/ubuntu/temp/mpc-phase2-suite/node_modules/clipboardy/lib/linux.js:18
                error = new Error('Both xsel and fallback failed');
                        ^

Error: Both xsel and fallback failed
    at makeError (file:///home/ubuntu/temp/mpc-phase2-suite/node_modules/clipboardy/lib/linux.js:18:11)
    at xselWithFallbackSync (file:///home/ubuntu/temp/mpc-phase2-suite/node_modules/clipboardy/lib/linux.js:47:10)
    at Object.copySync (file:///home/ubuntu/temp/mpc-phase2-suite/node_modules/clipboardy/lib/linux.js:57:3)
    at Object.clipboard.writeSync (file:///home/ubuntu/temp/mpc-phase2-suite/node_modules/clipboardy/index.js:47:14)
    at Object.onVerification (file:///home/ubuntu/temp/mpc-phase2-suite/packages/phase2cli/dist/src/index.node.mjs:2976:15)
    at async getOAuthAccessToken (/home/ubuntu/temp/mpc-phase2-suite/node_modules/@octokit/auth-oauth-device/dist-node/index.js:25:3)
    at async executeGithubDeviceFlow (file:///home/ubuntu/temp/mpc-phase2-suite/packages/phase2cli/dist/src/index.node.mjs:3006:23)
    at async Command.auth (file:///home/ubuntu/temp/mpc-phase2-suite/packages/phase2cli/dist/src/index.node.mjs:3022:26)
    at async Command.parseAsync (/home/ubuntu/temp/mpc-phase2-suite/node_modules/commander/lib/command.js:916:5) {
  xselError: Error: Command failed with exit code 1: xsel --clipboard --input
  xsel: Can't open display: (null)
  : Inappropriate ioctl for device
      at makeError (/home/ubuntu/temp/mpc-phase2-suite/node_modules/execa/lib/error.js:60:11)
      at Function.module.exports.sync (/home/ubuntu/temp/mpc-phase2-suite/node_modules/execa/index.js:194:17)
      at xselWithFallbackSync (file:///home/ubuntu/temp/mpc-phase2-suite/node_modules/clipboardy/lib/linux.js:42:16)
      at Object.copySync (file:///home/ubuntu/temp/mpc-phase2-suite/node_modules/clipboardy/lib/linux.js:57:3)
      at Object.clipboard.writeSync (file:///home/ubuntu/temp/mpc-phase2-suite/node_modules/clipboardy/index.js:47:14)
      at Object.onVerification (file:///home/ubuntu/temp/mpc-phase2-suite/packages/phase2cli/dist/src/index.node.mjs:2976:15)
      at async getOAuthAccessToken (/home/ubuntu/temp/mpc-phase2-suite/node_modules/@octokit/auth-oauth-device/dist-node/index.js:25:3)
      at async executeGithubDeviceFlow (file:///home/ubuntu/temp/mpc-phase2-suite/packages/phase2cli/dist/src/index.node.mjs:3006:23)
      at async Command.auth (file:///home/ubuntu/temp/mpc-phase2-suite/packages/phase2cli/dist/src/index.node.mjs:3022:26)
      at async Command.parseAsync (/home/ubuntu/temp/mpc-phase2-suite/node_modules/commander/lib/command.js:916:5) {
    shortMessage: 'Command failed with exit code 1: xsel --clipboard --input',
    command: 'xsel --clipboard --input',
    escapedCommand: 'xsel --clipboard --input',
    exitCode: 1,
    signal: undefined,
    signalDescription: undefined,
    stdout: '',
    stderr: "xsel: Can't open display: (null)\n: Inappropriate ioctl for device",
    failed: true,
    timedOut: false,
    isCanceled: false,
    killed: false
  },
  fallbackError: Error: Command failed with exit code 1: /home/ubuntu/temp/mpc-phase2-suite/node_modules/clipboardy/fallbacks/linux/xsel --clipboard --input
  /home/ubuntu/temp/mpc-phase2-suite/node_modules/clipboardy/fallbacks/linux/xsel: Can't open display: (null)
  : Inappropriate ioctl for device
      at makeError (/home/ubuntu/temp/mpc-phase2-suite/node_modules/execa/lib/error.js:60:11)
      at Function.module.exports.sync (/home/ubuntu/temp/mpc-phase2-suite/node_modules/execa/index.js:194:17)
      at xselWithFallbackSync (file:///home/ubuntu/temp/mpc-phase2-suite/node_modules/clipboardy/lib/linux.js:45:17)
      at Object.copySync (file:///home/ubuntu/temp/mpc-phase2-suite/node_modules/clipboardy/lib/linux.js:57:3)
      at Object.clipboard.writeSync (file:///home/ubuntu/temp/mpc-phase2-suite/node_modules/clipboardy/index.js:47:14)
      at Object.onVerification (file:///home/ubuntu/temp/mpc-phase2-suite/packages/phase2cli/dist/src/index.node.mjs:2976:15)
      at async getOAuthAccessToken (/home/ubuntu/temp/mpc-phase2-suite/node_modules/@octokit/auth-oauth-device/dist-node/index.js:25:3)
      at async executeGithubDeviceFlow (file:///home/ubuntu/temp/mpc-phase2-suite/packages/phase2cli/dist/src/index.node.mjs:3006:23)
      at async Command.auth (file:///home/ubuntu/temp/mpc-phase2-suite/packages/phase2cli/dist/src/index.node.mjs:3022:26)
      at async Command.parseAsync (/home/ubuntu/temp/mpc-phase2-suite/node_modules/commander/lib/command.js:916:5) {
    shortMessage: 'Command failed with exit code 1: /home/ubuntu/temp/mpc-phase2-suite/node_modules/clipboardy/fallbacks/linux/xsel --clipboard --input',
    command: '/home/ubuntu/temp/mpc-phase2-suite/node_modules/clipboardy/fallbacks/linux/xsel --clipboard --input',
    escapedCommand: '"/home/ubuntu/temp/mpc-phase2-suite/node_modules/clipboardy/fallbacks/linux/xsel" --clipboard --input',
    exitCode: 1,
    signal: undefined,
    signalDescription: undefined,
    stdout: '',
    stderr: "/home/ubuntu/temp/mpc-phase2-suite/node_modules/clipboardy/fallbacks/linux/xsel: Can't open display: (null)\n" +
      ': Inappropriate ioctl for device',
    failed: true,
    timedOut: false,
    isCanceled: false,
    killed: false
  }
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.