PureStorage-OpenConnect / FlashStache

One-step configuration for automating array querying, storing the query results, and visualizing them with Grafana
Apache License 2.0
4 stars 0 forks source link

path_to_change is left blank during install #6

Closed bubthegreat closed 7 years ago

bubthegreat commented 7 years ago

https://github.com/PureStorage-OpenConnect/FlashStache/blob/8e412fc9d8849094fd5cd15c5281ae7e2c6e1da0/flash_stache/flash_stache#L6

micheal.taylor@bubdev:~/FlashStache$ sudo -H ./setup.sh 

Installing FlashStache: (This will take several minutes)
- Please don't interrupt -

Please set a password for the Admin role: 
Confirm password: 
Admin Password Set.

Step 1: Installing dependencies.
    - Updating Ubuntu
    - Installing Python, MySQL client, Redis, etc.

Step 2: Installing Python modules.

Step 3: Starting and configuring MySQL Server.
send: spawn id exp4 not open
    while executing
"send "<password>\r""

Step 4: Starting and configuring Grafana Server.
    - Downloading Grafana dpkg.
    - Installing Grafana
(Reading database ... 72356 files and directories currently installed.)
Preparing to unpack ./grafana_4.5.2_amd64.deb ...
Unpacking grafana (4.5.2) over (4.5.2) ...
Setting up grafana (4.5.2) ...
Restarting grafana-server service... OK
Processing triggers for systemd (229-4ubuntu21) ...
Processing triggers for ureadahead (0.100.0-19) ...
    - Configuring Grafana and starting Services

Step 5: Starting and configuring web services.
    - Configuring Web Server and Dependencies
    - Configuring Nginx
    - Starting Nginx
    - Configuring boot time settings
    - Starting services and worker tasks

This sets up to point to a non-existent directory for the nginx server:

micheal.taylor@bubdev:~/FlashStache$ cat /etc/nginx/sites-enabled/flash_stache 
server {
    listen 80;
    server_name 10.204.116.216 ;
    location = /favicon.ico { access_log off; log_not_found off; }
    location /static/ {
        root /flasharray;
    }
    location / {
        include uwsgi_params;
        uwsgi_pass unix:/run/uwsgi/flash_stache.sock;
    }
}
richimus123 commented 7 years ago

Looks like there was references to an invalid variable 'pwd' instead of 'curdir'. Testing and pushing out a fix.

richimus123 commented 7 years ago

Closing as fixed, changes to the sed operations.