Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • stork stork
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 277
    • Issues 277
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 25
    • Merge requests 25
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • ISC Open Source ProjectsISC Open Source Projects
  • storkstork
  • Issues
  • #557
Closed
Open
Issue created Jun 06, 2021 by Tooz@Tooz

Error when registering stork agent via script downloaded from stork server when it's under nginx proxy

Stork Server is installed on remote server and is under nginx proxy. Nginx configuration is the same as you provide in your example. Everything works except registering stork agent via script downloaded from the server (services -> machines -> how to install agent on new machine).

You get an example like:

wget http://example.com/stork-install-agent.sh
chmod a+x stork-install-agent.sh
sudo ./stork-install-agent.sh

When executing these commands on machine that should run stork agent you get the following error:

./stork-install-agent.sh: line 1: syntax error near unexpected token `newline'
./stork-install-agent.sh: line 1: `<!DOCTYPE html>'

Is this some sort of a misconfiguration from my side or it's a bug?

NOTE: when trying directly via IP address instead of domain it works as it should.

Content of stork-install-agent.sh:

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8" />
        <title>Stork</title>
        <base href="/" />
        <meta name="viewport" content="width=device-width, initial-scale=1" />
        <link rel="icon" type="image/x-icon" href="favicon.ico" />

        <link href="https://fonts.googleapis.com/css?family=Mansalva&display=swap" rel="stylesheet" />
    <link rel="stylesheet" href="styles.59fb5e3c22a146135eaa.css"></head>
    <body style="font-family: 'Open Sans', 'Helvetica Neue', sans-serif">
        <app-root></app-root>
    <script src="runtime-es2015.0dae8cbc97194c7caed4.js" type="module"></script><script src="runtime-es5.0dae8cbc97194c7caed4.js" nomodule defer></script><script src="polyfills-es5.12b5c32d1603e35dd556.js" nomodule defer></script><script src="polyfills-es2015.09ee2f719bd21ab5c7b1.js" type="module"></script><script src="scripts.fb336acc5f50a08fd950.js" defer></script><script src="main-es2015.f4e4057b7b085515a0f4.js" type="module"></script><script src="main-es5.f4e4057b7b085515a0f4.js" nomodule defer></script></body>
</html>
Edited Jun 08, 2021 by Tooz
Assignee
Assign to
Time tracking