Commit Graph

236 Commits

Author SHA1 Message Date
Girish Ramakrishnan da0f1907ca Use BOX_ENV instead of NODE_ENV
Let NODE_ENV be used by node modules and always be set to production

Fixes #453
2015-07-24 01:42:28 -07:00
Girish Ramakrishnan 4da2e3f0fc Fix typo 2015-07-23 14:30:15 -07:00
Girish Ramakrishnan f2f02694f6 Set server_names_hash_bucket_size
e2e tests fail like so when the hostnames are long

Thu, 23 Jul 2015 20:40:23 GMT box:apptask test8629 writing config to /home/yellowtent/data/nginx/applications/a3822f18-2f95-4b73-b8e9-2983dfcaae31.conf
Thu, 23 Jul 2015 20:40:23 GMT box:shell.js reloadNginx execFile: /usr/bin/sudo -S /home/yellowtent/box/src/scripts/reloadnginx.sh
Thu, 23 Jul 2015 20:40:24 GMT box:shell.js reloadNginx (stderr): nginx: [emerg] could not build the server_names_hash, you should increase server_names_hash_bucket_size: 64

Thu, 23 Jul 2015 20:40:24 GMT box:shell.js reloadNginx code: 1, signal: null
Thu, 23 Jul 2015 20:40:24 GMT box:apptask test8629 error installing app: Error: Exited with error 1 signal null
Thu, 23 Jul 2015 20:40:24 GMT box:apptask test8629 installationState: pending_install progress: 15, Configure nginx
^[[1m^[[31mERROR^[[39m^[[22m Exited with error 1 signal null ^[[1m[ /home/yellowtent/box/src/apptask.js:909:32 ]^[[22m
^[[32mstack: ^[[39m
  """
    Error: Exited with error 1 signal null
        at ChildProcess.<anonymous> (/home/yellowtent/box/src/shell.js:38:53)
        at ChildProcess.emit (events.js:110:17)
        at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
  """
^[[32mmessage: ^[[39mExited with error 1 signal null
2015-07-23 13:55:46 -07:00
Johannes Zellner 58d0f6b86e Remove developerMode from update provisioning data
Finally fixes #442
2015-07-23 13:31:39 +02:00
Johannes Zellner 0babd5405f Store graphite data in data/
This means we don't backup graphite data
2015-07-17 18:50:30 +02:00
Johannes Zellner 1e7174a943 Bump INFRA_VERSION to 4 2015-07-17 18:11:32 +02:00
Johannes Zellner 653ce7a3d1 Use new graphite image 2015-07-17 18:10:26 +02:00
Johannes Zellner 191c454e01 Do not use the collectd filecount plugin
This anyways has to be done in conjunction with the localstorage addon
2015-07-17 13:20:22 +02:00
Johannes Zellner 14f1592451 Send 200 instead of 302 to make the browser accept the error page correctly 2015-07-17 11:16:20 +02:00
Girish Ramakrishnan 36496b9a59 Cleanup design document 2015-07-16 20:11:51 -07:00
Johannes Zellner 4230fa8a90 Use normal log file for collectd logs 2015-07-14 14:55:06 +02:00
Johannes Zellner d017c2ec53 Add a prettier naked domain error page
Fixes #418
2015-07-12 19:16:20 +02:00
Johannes Zellner bd01f6f6bc Serve up temporarily the appstatus error page for naked domain
Part of #418
2015-07-12 17:39:34 +02:00
Girish Ramakrishnan 90181b14f9 mailUsername -> adminEmail 2015-07-02 19:22:37 -07:00
Girish Ramakrishnan 7074b39c75 Change image names 2015-06-26 17:08:06 -07:00
Johannes Zellner 91974cc5bd Ensure the backupswap.sh is allowed with sudo 2015-06-17 10:18:45 +02:00
Johannes Zellner 5fb3899581 Add oauth test client credentials
Those can only be used locally as the redirect is to 127.0.0.1

ClientID: cid-test
ClientSecret: cid-secret
Callback: http://127.0.0.1:5000
2015-06-12 11:20:47 +02:00
Johannes Zellner 02fa528e36 model information is a string 2015-06-10 16:49:34 +02:00
Johannes Zellner 39176e6f9e Add optional 'model' property to provisioning 2015-06-10 15:42:30 +02:00
Johannes Zellner 62aaaf9be3 Rename oauthproxy log file to be consistent 2015-06-09 13:17:15 +02:00
Johannes Zellner 9fb81d2d06 Take crashnotifier into use with supervisor 2015-06-08 22:08:18 +02:00
Girish Ramakrishnan 7b7df404b7 Move mongodb to 0.3.0 2015-05-15 14:53:32 +05:30
Girish Ramakrishnan 015d016cb6 Remove dead code to generate naked_domain.conf 2015-05-01 13:16:18 -07:00
Girish Ramakrishnan 4d2f2b9d44 Rework naked domain code
This greatly simplifies naked domain setup. We simply treat
'' location as a special case. If conflicts happen, we should
report it just like any other location.

naked domain is also not part of settings anymore

Fixes #351
2015-05-01 12:53:08 -07:00
Girish Ramakrishnan c0879494c5 Store tz in db instead of settings sytem tz
This makes restore trivial since we handle tz now in the node
framework and libraries instead of relying on system timezone.

Otherwise, start.sh has to now read the db and set the system
timezone which is not nice since it increases db and start.sh
dependancy.

Fixes #359
2015-04-30 13:29:23 -07:00
Girish Ramakrishnan bf280bcd65 Set cloudron timezone based on ip
Part of #355
2015-04-27 22:57:40 -07:00
Girish Ramakrishnan 712bd59146 change ownership of addons since it is used by redis addon 2015-04-24 19:40:23 -07:00
Girish Ramakrishnan 11aecac6fd Fix typo 2015-04-24 16:54:47 -07:00
Girish Ramakrishnan 125e60f125 Do not generate new password for addons on each update
They need to be generated only on infra upgrade. But start.sh was
generating it all the time and hence the existing addon containers
and the root passwords is going out of sync

Fixes #352
2015-04-24 16:14:34 -07:00
Girish Ramakrishnan 7abf941b82 Add retire option 2015-04-24 13:48:35 -07:00
Girish Ramakrishnan 69f9bee677 Bump the infra version because why not 2015-04-24 10:33:52 -07:00
Johannes Zellner 0a6bb9c531 Fix escaping
Fixes #349
2015-04-24 09:54:33 +02:00
Girish Ramakrishnan 7bb9358646 Change ownership carefully
With the previous approach, addon data got their ownership changed
(and the addons are still running!)
2015-04-23 12:04:02 -07:00
Girish Ramakrishnan 26ba9f999b Simply make INFRA_VERSION a sourceable file
This makes it possible to put comments
2015-04-23 12:04:02 -07:00
Girish Ramakrishnan 820f53b9e3 Revert "010254399a2e21e186b234624ac8f9590c8f0d9f"
Need to recreate admin.conf since splash has overwritten it
2015-04-23 02:25:23 -07:00
Girish Ramakrishnan a84253e3e8 Make splash code override nginx configs based on retire and infra change
Fixes #346
2015-04-23 01:53:54 -07:00
Girish Ramakrishnan 010254399a Create nginx config only for restore and new code paths
In the update code path, the configs are already uptodate
2015-04-23 01:03:27 -07:00
Girish Ramakrishnan ec56b785e8 Save INFRA_VERSION in a file
The splash code needs to access this as well
2015-04-22 23:50:04 -07:00
Girish Ramakrishnan a68a146fe9 Specify an enum for ejs template 2015-04-22 22:40:32 -07:00
Girish Ramakrishnan 83a438e004 create var for mysql root password 2015-04-22 18:09:14 -07:00
Girish Ramakrishnan 719c5f5414 mysql needs to be setup for new cloudrons 2015-04-22 18:05:57 -07:00
Girish Ramakrishnan 60eb2d6fbd -p makes the mkdir safe to use if dir exists 2015-04-22 18:01:51 -07:00
Girish Ramakrishnan 371733bd19 mysql does not need to run as yellowtent user 2015-04-22 16:11:14 -07:00
Girish Ramakrishnan 2c6bec2654 Rename variables 2015-04-22 16:11:14 -07:00
Girish Ramakrishnan cc49cf00a0 Restart collectd 2015-04-22 16:11:11 -07:00
Girish Ramakrishnan 70376fa475 remove unused variable 2015-04-22 15:45:55 -07:00
Girish Ramakrishnan 8909ad08ea Ensure addons dir has correct permissions 2015-04-22 15:45:42 -07:00
Girish Ramakrishnan 97f99623cc Get rid of box_src_tmp_dir
This code is based on old installer logic
2015-04-22 15:38:05 -07:00
Girish Ramakrishnan 7c8b4bdea7 No need to change ownership of BOX_SRC_DIR 2015-04-22 15:36:09 -07:00
Girish Ramakrishnan b3f611ade2 Do not restart apps and containers on update
(do not delete data dir)

Fixes #342
2015-04-22 14:56:02 -07:00