Tuesday, January 1, 2008

ANNOUNCEMENT FOR TRAINING SERVAGE HOSTING STAFF IN RUBY ON RAILS

Jan 01 - 15:58 GMT
Customer

Hi Servage Support. As your support wasn't able to name me at least one ruby on rails website on their server which is running I created one myself. So now you get one ;-). It is a very simple one - only a small library program called biblio.

You can link to the article about it and how to get it running on Servage Hosting as it is pretty difficult as Servage won't provide SSH, which means you will need to build actually a local system and transfering it then to SERVAGE HOSTING step by step. I wrote the article like you HAVE ssh on Servage and only made a remark that there isn't ssh and you need to use another computer for this ssh part.

If you have any suggestions how this "ssh" Part could be created on Servage Hosting I really would appreciate it.

It became now very clear that the main problem creating Applications on Servage Hosting seems to be the routing and the population of the database via ruby.

Try to build "biblio" by yourselv on a SERVAGE ACCOUNT without ssh and you will see that it is IMPOSSIBLE without ssh. You should really reconsider making ssh available yes or no. :-) as it would improve Servage a Lot.

Jan 01 - 16:01 GMT
Customer

Oh sorry hit the wrong buttom - here is the link:
http://apapococ.blogspot.com/2008/01/biblio-another-ruby-on-rails-example.html

Jan 02 - 02:51 GMT
Servage - Sam

Hello Andreas,

Thanks for your link.

We do not allow Telnet/SSH access to our systems for security reasons. However our techs will be more than happy execute commands for you on request.

Have a nice day and Happy New Year!



Kind regards,
Sam, Support Team
Servage Hosting

Jan 02 - 04:01 GMT
Customer

Hi SAM

Unfortunately your Techs have written in the last 2 weeks just the opposite as you can read in our blog. Would they have executed the commands like I wrote them in my firstpost over 2 weeks ago we would never had lost so much time and even the blog you can read now about Servage Hosting Support would never been existing I guess. Please scroll down all posts in the blog about Servage Hostin and Ruby on Rails and how often I asked your techs to execute the mising commands as I could not do it lacking ssh access. And they even wrote the ADMIN will do it and get back to me, but even he did never get back to here and the commands have until now never been executed. It is IMPOSSIBLE torun RoR Application with this support you are giving on Servage Hosting. You really need to have a SECOND Installation at another hoster to build up your applicatation and test everything out and the you can transfer everything to SERVAGE - A real STUPID process or???

It would be much more help to have ssh access, and SECURITY reasons are the WRONG argument by the way as a GOOD HOSTER who thinks about quality provides ssh in a secured surrounding! ;-)

However our techs will be more than happy execute commands for you on request.

Why do you think ssh access would cause security problems for SERVAGE HOSTING why? Name me and we will see how you can secure each single argument ;-) quite easily.

Subdomain AGAIN not found on SERVAGE HOSTING

Jan 01 - 08:32 GMT
Customer

It is now the 6th time we are getting to you with exactly the same error. Everytime we create a Subdomain (in future this will happen about 10 times a day as we are testing lots of stuff) the subdomain won't get called and instead the MAIN DOMAIN Page shows up!!!

PLEASE SOLVE THIS NOW AND FOREVER - IT IS TOTALLY FRUSTRATING ALWAYS TO GET BACK TO YOU WITH EXACTLY THE SAME ERRORS - DON'T YOU HAVE QUALIFIED STAFF???

http://bibliothek.t3pack.info but http://www.t3pack.info shows up

Jan 01 - 09:37 GMT
Servage - Nick

Hello Andreas,

After adding the sub-domain into your control panel it will take few hours to update the dns,
Thank you.


Kind regards,
Nick, Support
Servage Hosting

Jan 01 - 10:00 GMT
Customer

HOW LONG HOE MANY HOURS AS THIS IS REALLY BLOCKING PRODUCTION!!!

Which means SERVAGE HOSTING would not be a good site for a development or a production setup! Really Bad!

On other hosters this works within seconds, why not at SERVAGE HOSTING? Is there any other chance (workaround) you can suggest?

One workaround could be to create by default hundreds or even thousands of subdomains for your accounts and existing domains at one time and then lateron choose from them. Would this be possible and will the subdomains connect then immediately to the right folder if you change them in

CONTROL PANEL,
WEB SERVER,
LIST VIRTUAL HOSTS,
GO TO THE DOMAINS via VIEW ZONES,
CHANGE SETTINGS
Enter a new LINK TO PATH: /....

will this path the connect immediately or do we need another day to get this working?

Jan 01 - 10:07 GMT
Customer

We are trying to find the error with your gigantic RUBY ON RAILS Problems on YOUR SERVAGE SERVERS and therfore we need to run several test applications to compare settings.

i.e. we started with
Hostname: bibliothek.t3pack.info
Document Root: /www/bibliothek

and need now as the above showed errors. to confirm them we wanna run another test here

Hostname: biblio.t3pack.info
Document Root: /www/biblio
> shows www.t3pack.info instead

We also just tried to set another document root but it shows only errors:
Hostname: bibliothek.t3pack.info
Document Root: /www/biblio
>shows Page not found Error 404

Jan 01 - 10:09 GMT
Servage - Nick

Hello Andreas,

Due to our clustered architecture your website/domain/subdomains are served by many servers and for dns update through all the servers it needs the time mentioned earlier, there is no other way around in our system to make it fast.
Thanks for your understanding.


Kind regards,
Nick, Support
Servage Hosting

Jan 01 - 10:38 GMT
Customer

I need to know HOW LONG I HAVE TO WAIT at MINIMUM and how long at MAXIMUM - we are running a business and not a round coffeetable ;-)

Jan 01 - 10:40 GMT
Customer

FEW HOURS SAYS NOTHING - This could even mean
"AT SERVAGE HOSTING CUSTOMERS NEED TO WAIT ABOUT ON MONTH TO GET THEIR SUBDOMAIN AVAILABLE"
So please answer in a concrete TIME/HOURS/DAYS/MONTHS value.

Jan 01 - 10:48 GMT
Customer

What is up now

http://bibliothek.t3pack.info/
I just was able to see the site and about seconds later (meanwhile again since minutes, I only see 404 Error Messages

Jan 01 - 11:12 GMT
Servage - Nick

Hello Andreas,

It may take upto 24 hours to update our dns.
Thank you.


Kind regards,
Nick, Support
Servage Hosting

Biblio Another Ruby on Rails Example for SERVAGE HOSTING Testing

First of all we will need databases:
We will use "development" and "test" in our example here
In your SERVAGE CONTROL PANEL go to MySQL Databases
  1. Create new Database
  2. Name one Database biblioTest and another one biblioDev
  3. don't forget to type in a password
  4. Note all Database Connection Informations as we will need them later
In CONTROL PANEL open up Online - Filemanager
...
now go to www
(as Servage does not offer ssh you need to do the following steps externally and copy the result "biblio"-folder to the www folder and the databases contents to the databases via import-sql)

TYPE
>rails biblio
this command will create a folder named "biblio" and inside of it the following:
create
create app/controllers
create app/helpers
create app/models
create app/views/layouts
create config/environments
create components
create db
create doc
create lib
create lib/tasks
create log
create public/images
create public/javascripts
create public/stylesheets
create script/performance
create script/process
GO TO
$ cd biblio
TYPE
>./script/generate scaffold_resource Book title:string isbn:string created_at:datetime updated_at:datetime
This will create the following:
exists app/models/
exists app/controllers/
exists app/helpers/
create app/views/books
exists app/views/layouts/
exists test/functional/
exists test/unit/
create app/views/books/index.rhtml
create app/views/books/show.rhtml
create app/views/books/new.rhtml
create app/views/books/edit.rhtml
create app/views/layouts/books.rhtml
create public/stylesheets/scaffold.css
create app/models/book.rb
create app/controllers/books_controller.rb
create test/functional/books_controller_test.rb
create app/helpers/books_helper.rb
create test/unit/book_test.rb
create test/fixtures/books.yml
create db/migrate create db/migrate/001_create_books.rb
route map.resources :books
TYPE
$ rake db:migrate
If you type it here then you will receive the following error:
rake aborted!
No such file or directory - /tmp/mysql.sock
A well known error caused as until now your "biblio" don't know where to find the right database. Therefore we need to enter some database information.

GO TO
Control Panel
Online File Manager
/www/biblio/config
EDIT
database.yml
Into this YAML(TM) Template you enter all database Values so that it looks like this:

# MySQL (default setup). Versions 4.1 and 5.0 are recommended.
#
# Install the MySQL driver:
# gem install mysql
# On MacOS X:
# gem install mysql -- --include=/usr/local/lib
# On Windows:
# gem install mysql
# Choose the win32 build.
# Install MySQL and put its /bin directory on your path.
#
# And be sure to use new-style password hashing:
# http://dev.mysql.com/doc/refman/5.0/en/old-client.html
development:
adapter: mysql
database: rorbiblioDBdev
username: rorbiblioUSdev
password: DBpassword
host: mysqlxxx.servage.net

# Warning: The database defined as 'test' will be erased and
# re-generated from your development database when you run 'rake'.
# Do not set this db to the same as development or production.
test:
adapter: mysql
database: rorbiblioDBtest
username: rorbiblioUStst
password: DBpassword
host: mysqlxxx.servage.net

production:
adapter: mysql
database: bibliothek_production
username: root
password:
host: localhost
Save and Close and try again:

TYPE
$ rake db:migrate
Now the tables will get created as you can see in the output:

(in /mounted-storage/homeservage/subservage/scservage-id/www/biblio)
== CreateBooks: migrating=====================
-- create_table(:books)
-> 0.1884s
== CreateBooks: migrated (0.1885s) ==============
GO TO
Control Panel
Online Filemanager
/www/biblio/app/views/books/new.rhtml
EDIT

New book



<%= error_messages_for :book %>

<% form_for(:book, :url => books_path) do |f| %>


Title

<%= f.text_field :title %>




Isbn

<%= f.text_field :isbn %>




Created at

<%= f.datetime_select :created_at %>




Updated at

<%= f.datetime_select :updated_at %>




<%= submit_tag "Create" %>


<% end %>

<%= link_to 'Back', books_path %>
DELETE the bold Part
CHANGE "
Isbn" to "ISBN" as it will look much nicer :-)
GO TO
www/biblio/app/models/book.rb
EDIT so that it looks like this:
class Book < ActiveRecord::Base
validates_presence_of:title,:isbn
end
GO TO
www/biblio/app/controlers/book_controller.rb
EDIT and CHANGE line 5 to:
@books = Book.find(:all,:order=>'created_at DESC')
Now our book entries will get sorted. Before saving check that there is only ONE Bracket at the End of this line ;-)

GO TO
www/biblio/config/routes.rb
CHANGE line 16 to
14 # You can have the root of your site routed by hooking up ''
15 # -- just remember to delete public/index.html.
16 map.connect '', :controller => "books"
Don't forget to remove the # at line 16!!! to enable this line

GO TO
www/biblio/public/index.html
RENAME or DELETE it

GO TO
Control Panel
Web Server
View (your Host where you want to add the subdomain "biblio")
Let's fill some data in:
$ruby script/console
Now we are in the Surrounding to insert Ruby and Rails Code
>book=Book.new(:title=>'Ruby and Rails at Servage Hosting',:isbn=>'12345678')
This creates a new book
>book.save
Saves
the Entry

Go to your site and ENJOY.

This post will be continued with some more testing later - happy new year

Routing Errors on SERVAGE HOSTING

Dec 31 - 11:03 GMT
Customer

Routing Error

no route found to match "/" with {:method=>:get}

on http://helloworld.t3pack.info
------------
http://helloworld.t3pack.info/hello_world/view
results in another error have a look yourself.

It seems that some ruby components cant be found

Dec 31 - 11:14 GMT
Customer

Also our other RUBY on Rails Application Redmine is gone
http://t3log.info/

Dec 31 - 11:17 GMT
Customer

public/dispatch.fcgi:14: uninitialized constant RailsFCGIHandler (NameError) on t3log.info

Dec 31 - 14:03 GMT
Servage - Bob

Hello Andreas,

Sorry for the problem you have to faced, but please go through the following URL: http://www.ruby-forum.com/topic/134167

I hope this should helps you!

Update us if you have any further questions!

Thank you!


Kind regards,
Bob, Support
Servage Hosting

Dec 31 - 18:58 GMT
Customer

Actually I read this post before and it is still not working
ERROR:-------------------------------------------
LoadError in Hello worldController#view

Expected /mounted-storage/home81c/sub004/sc44977-AQJR/www/HELLO_WORLD/app/controllers/hello_world_controller.rb to define HelloWorldController

RAILS_ROOT: /home81c/sub004/sc44977-AQJR/www/HELLO_WORLD/public/../config/..
Application Trace | Framework Trace | Full Trace

/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:249:in `load_missing_constant'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:452:in `const_missing'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:464:in `const_missing'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/inflector.rb:250:in `constantize'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/core_ext/string/inflections.rb:148:in `constantize'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/action_controller/routing.rb:1317:in `recognize'
/usr/lib/ruby/gems/1.8/gems/rails-1.2.5/lib/dispatcher.rb:40:in `dispatch'
/home81c/sub004/sc44977-AQJR/www/HELLO_WORLD/public/dispatch.cgi:10

/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:249:in `load_missing_constant'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:452:in `const_missing'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:464:in `const_missing'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/inflector.rb:250:in `constantize'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/core_ext/string/inflections.rb:148:in `constantize'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/action_controller/routing.rb:1317:in `recognize'
/usr/lib/ruby/gems/1.8/gems/rails-1.2.5/lib/dispatcher.rb:40:in `dispatch'
/home81c/sub004/sc44977-AQJR/www/HELLO_WORLD/public/dispatch.cgi:10

Request

Parameters: None

Show session dump

---
flash: !map:ActionController::Flash::FlashHash {}


Response

Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"}

Jan 01 - 15:37 GMT
Customer

No solutions for this errors since over one day so we close this Thread.