Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to run Companion/Uppyserver question #1234

Closed
NithinYM opened this issue Jan 8, 2019 · 14 comments
Closed

How to run Companion/Uppyserver question #1234

NithinYM opened this issue Jan 8, 2019 · 14 comments
Assignees
Labels
Angular Companion The auth server (for Instagram, GDrive, etc) and upload proxy (for S3)

Comments

@NithinYM
Copy link

NithinYM commented Jan 8, 2019

No description provided.

@kvz
Copy link
Member

kvz commented Jan 11, 2019

Closed by accident or on purpose?

@NithinYM
Copy link
Author

Integrated Uppy in Angularjs, But not able to run companion server.
Could You please give a proper way to run Companion server to authorize google drive and dropbox.

@NithinYM NithinYM reopened this Jan 21, 2019
@lonormaly
Copy link

+1

@arturi
Copy link
Contributor

arturi commented Jan 22, 2019

Regarding Companion, did you follow the instructions at https://uppy.io/docs/companion/? What specific problems are you facing?

@arturi arturi changed the title How to include uppy file uploader in AngularJS 1.5.x version How to include uppy file uploader in AngularJS 1.5.x version / Companion question Jan 22, 2019
@arturi arturi added Companion The auth server (for Instagram, GDrive, etc) and upload proxy (for S3) Angular labels Jan 22, 2019
@NithinYM
Copy link
Author

I'm Gettting an Error Like this while running the server
uppy: 2019-01-28T10:32:58.284Z [warn] startup.secret auto-generating server secret because none was specified
Please specify the following options to run companion as Standalone:
"filePath",
"server.host"

@NithinYM
Copy link
Author

After creating start.cmd file and running that file getting error
F:\uppy\packages@uppy\companion\src\standalone>node ./start.cmd
F:\uppy\packages@uppy\companion\src\standalone\start.cmd:1
(function (exports, require, module, __filename, __dirname) { set UPPYSERVER_SECRET = “THisisSSs!Secret”
^^^^^^^^^^^^^^^^^

SyntaxError: Unexpected identifier
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:616:28)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:191:16)
at bootstrap_node.js:612:3

@NithinYM
Copy link
Author

NithinYM commented Jan 28, 2019

Could You please eloborate how to run companion server, with proper example.

@arturi
Copy link
Contributor

arturi commented Jan 28, 2019

@ifedapoolarewaju could you please take a look?

@goto-bus-stop
Copy link
Contributor

start.cmd is not a JavaScript file, so you can't run it with node. Run it without anything:

.\start.cmd

@NithinYM
Copy link
Author

Getting an Error Like This

F:\uppy\packages@uppy\companion\src\standalone>.\start.cmd

F:\uppy\packages@uppy\companion\src\standalone>SET UPPYSERVER_SECRET = ΓÇ£SecretΓÇ¥

F:\uppy\packages@uppy\companion\src\standalone>SET UPPYSERVER_DOMAIN= ΓÇ£localhost:3020ΓÇ¥

F:\uppy\packages@uppy\companion\src\standalone>SET UPPYSERVER_DATADIR = "F:\uppy\Uploaded files"

F:\uppy\packages@uppy\companion\src\standalone>SET filePath = F:\uppy\Uploaded files

F:\uppy\packages@uppy\companion\src\standalone>node F:\uppy\packages@uppy\companion\standalone\start-server.js
module.js:549
throw err;
^

Error: Cannot find module 'F:\uppy\packages@uppy\companion\standalone\start-server.js'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:191:16)
at bootstrap_node.js:612:3

@goto-bus-stop
Copy link
Contributor

I would not recommend cloning the repository to get Companion. Instead, use npm in a directory for your project (not in the cloned repository).

cd my-project-directory
npm install @uppy/companion

Put start.cmd in the same directory.

Then in your start.cmd, instead of doing something like node .\standalone\start-server.js, do node .\node_modules\.bin\companion.

@NithinYM
Copy link
Author

Again This Error

F:\Repository>start.cmd
F:\Repository>SET UPPYSERVER_SECRET = ΓÇ£SecretΓÇ¥
F:\Repository>SET UPPYSERVER_DOMAIN= ΓÇ£localhost:3020ΓÇ¥
F:\Repository>SET UPPYSERVER_DATADIR = "F:\uppy\Uploaded files"
F:\Repository>SET filePath = "F:\uppy\Uploaded files"
F:\Repository>node .\node_modules.bin\companion
F:\Repository\node_modules.bin\companion:2
basedir=$(dirname "$(echo "$0" | sed -e 's,\,/,g')")
^^^^^^^
SyntaxError: missing ) after argument list
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:616:28)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:191:16)
at bootstrap_node.js:612:3

@NithinYM NithinYM changed the title How to include uppy file uploader in AngularJS 1.5.x version / Companion question How to run Companion/Uppyserver question Jan 30, 2019
@NithinYM
Copy link
Author

NithinYM commented Jan 30, 2019

  1. start.cmd - contains
SET UPPYSERVER_SECRET = "Secret"
SET UPPYSERVER_DOMAIN= "http://localhost:3020"
SET UPPYSERVER_DATADIR = "F:\Repository\UppyFiles"
SET filePath = "F:\Repository\UppyFiles"
node .\node_modules\.bin\companion
  1. Do i need to add any other variables. when i run start.cmd i'm getting the above error.
    Does anyone know why i'm getting the above error???
    if possible please explain me how to run companion server...?

@kvz
Copy link
Member

kvz commented May 22, 2019

Hi there, sorry for the long wait. Since you've asked your question we've had to make a few changes to how we operate support, as our small team was spending a lot of time on integration help, directly cutting into Uppy development time. Among the changes that we made:

  • Windows is not officially a supported platform to run Companion
  • We don't provide support to help people run our server software on their own infra (free of charge, that is. more info on https://uppy.io/support/)

As you see that also means we can't be more helpful in this thread. I am very sorry about that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Angular Companion The auth server (for Instagram, GDrive, etc) and upload proxy (for S3)
Projects
None yet
Development

No branches or pull requests

6 participants