sehrguey
-
Posts
25 -
Joined
-
Last visited
Posts posted by sehrguey
-
-
"The easiest way to deploy a Ruby on Rails application on HelioHost... is creating a new domain with the document root [Home Directory]/app_name/public"
These lines from http://wiki.helionet.org/Deploying_a_Rails_application_on_HelioHost made me try to create an addon-domain with cpanel.
There is a hint on the creation page:
"Hint: This feature must be enabled for your account before you can use it. Addon domains will not function unless the domain name is registered with a valid registrar and configured to point to the correct DNS servers."
The hint flew far above my head and my try at creating an addon domain ended in even less comprehensible (for me) message:
"Using nameservers with the following IPs: 174.137.135.164,77.245.48.84 Sorry, the domain is already pointed to an IP address that does not appear to use DNS servers associated with this server. Please transfer the domain to this servers nameservers or have your administrator add one of its nameservers to /etc/ips.remotedns and make the proper A entries on that remote nameserver."
Help me, please.
yours`
sehrguey
-
Thank you.
yours`
sehrguey
-
It should operate fine in port 80. It doesn't look like /home/sehrguey/public_html/rails_apps/blog was created. Create it manually, then run the script. After all this trouble, it may be easier to use the cron method.
Do you suggest to delete the application folders at maht.heliohost.org/rails_apps/blog
that were produced by cpanel (usual bunch of Rails folders, you know, for me to fill up with my code)
and create everything anew and manually?
I could do that but for fear of breaching the instructions at the cpanel RoR index page.
Do you mean the file_manager_produced folders will be recognized as RoR application even when created in deviation of the eye-candied cpanel RoR index page?
And how will they interact with the underlying framework structures?
amazedly yours`
sehrguey
-
There are 2 news:
the first is new`
Link created successfully!/home/sehrguey/rails_apps/blog/publicthe second is old`
Internal Server ErrorThe server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@maht.heliohost.org and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Could it have anything to do with the port issue?
I am curious where you got the port 12231 from on 64.62.211.131:12231. That port isn't open on our servers, which would be why you got the 502 error.Only this time it is error 500.
yours`
sehrguey
-
Aha! Sorry, I must have misread something. Okay, that makes a lot of sense now.
Try that. Now visiting maht.heliohost.org/blog will respond with the contents of /home/sehrguey/rails_apps/blog/public. I apologize for my misunderstanding.
Never mind, we are human.
The updated script though also failed`
Warning: symlink() [function.symlink]: No such file or directory in /home/sehrguey/public_html/symlink.php on line 4Creating link failed. Check your error_log.
Here is line 4`
$symlink = symlink("/home/" . $username . "/" . $appname . "/public","/home/" . $username . "/public_html/" . $appname);I suppose it failed because of compound $appname and absence of directory rails_apps in "public_html".
I may be wrong and I'm afraid of screwing things up by adding directory there.
shyly yours`
sehrguey
-
I'm sure it does not.Are you sure /home/sehrguey/blog/public exists?So am I!
There's no /home/sehrguey/blog/public, there is /home/sehrguey/rails_apps/blog/public and if it is the reason for the symlink script failure then I followed the instructions`
Be sure to change username and app_name with your information.[/font][/color]What to do now?
yours`
sehrguey
-
The info about port :12231 I gathered from my cpanel ror index page, where it runs as follows`
"Current Rewrites
http://maht.heliohost.org/rails_apps/blog/ http://maht.heliohost.org:12231/ "
What depends on me for the port to be opened on your servers and getting rid of error 502?
Thank you for the improved version of the symlink script, I'll sure give it a try.
Yours`
sehrguey
Thank you for the improved version of the symlink script, I'll sure give it a try.1) the new symlink file:
<?php $username = "sehrguey"; $appname = "blog"; $symlink = symlink("/home/" . $username . "/" . $appname . "/public","/home/" . $username . "/public_html/" . $appname); if (!$symlink) { die("Creating link failed. Check your error_log."); } else { echo "Link created successfully!"; echo readlink("/home/" . $username . "/public_html/" . $appname); } ?>
2) response to using it:
Warning: symlink() [function.symlink]: File exists in /home/sehrguey/public_html/symlink.php on line 4Creating link failed. Check your error_log.
and
3) quotation from my error_log:
[Thu Dec 20 23:10:55 2012] [error] [client 46.19.96.134] client denied by server configuration: /home/sehrguey/public_html/.htaccessI don't seem to figure out the full meaning of all that.
Could you clarify, please?
yours`
sehrguey
-
Congratulations!
In a snap or fifty, here is my site!
maht.heliohost.org/rails_apps/blog a.k.a 64.62.211.131:12231
Alas!
When trying to open the view, I get answer (page 502) from 64.62.211.131:80 which is apache server at heliohost informing of unidentifiable error from the upstream server (which is also within heliohost system?).
That's what I assume browsing my (supposedly) deployed yet not working Rails application - there is some internal server glitch at heliohost.
I might be wrong, please, indicate at what point(s).
I'll eagerly learn about server ports and the like matters.
yours`
sehrguey
-
But if you wanna wait while I handle some real-life issues and set up a Johnny account I should -hopefully- be able to help you and future users set up your rails apps quickly, or I could be just as stumped as you, let's hope not.
Thank you,
as an eternal newbie, I don't see any alternative to patiently waiting for someone offers their help in this wonderland.
gratefully yours`
serguey
-
I know of at least two RoR experts who *used* to lurk around these parts, but they haven't seen your questions, I guess. I would recommend finding a forum specifically for ruby and RoR and see if they can help you. Then you can learn a ton and bring your wealth of knowledge back to Heliohost and when the next person has a question about RoR you will be the expert that can answer it!
Oh, dear
You got at it!
All I want right now is to ask the lurks HOW they managed to make their apps to work.
Is there a way to get their emails for beggardly PM-ing them?
Secondly, I sure researched the main "ruby and RoR forum" and learned two and a half tons yet were it even thirty there is no mentioning of this here hosting.org I liked so dearly and cannot tear it out from my heart.
yours`
sehrguey
-
1) how long does it take a moderator to get directory listing?
2) how long to wait before repeating your question or sending it to another forum without becoming a cross-posting nerd?
yours`
sehrguey
-
I am currently getting a directory listing.
You've presented me with a beam of hope.
anticipatingly yours`
sehrguey
-
Here is the requested info`
- cpanel user name: sehrguey;
- main domain: maht.heliohost.org;
- server: johnny
Thank you for your kind attention.
yours`
sehrguey
- cpanel user name: sehrguey;
-
Present situation is as follows:
1) Rails application is created at cpanel, is running, its URL is rewritten for redirection;
2) Symlink is present ("Link created successfully!");
3) RoR application's public folder contains .htaccess file with RailsBaseURI /blog;
4) RoR application 'blog' that works OK at my home PC is uploded to the folders of blog at cpanel;
5) Browsers open index.html (the rails sticker) in application's public folder;
But
6) Tries to open application views (not the rails sticker) result either in a blank page or (in case of Google Chrome) with dismal "Oops! This link appears to be broken."
Help if you can please.
yours`
sehrguey
-
I tried to login cpanel from heliohost.org/home where johnny had as green tick next to it as all the other servers.
Pinging 64.62.211.131 from terminal was answered immediately.
Another browser responded to next login try with`
Unable to load page
Problem occurred while loading the URL http://johnny.heliohost.org:2082/login/
Cannot resolve hostname
And so for about 2,5 hours.
May I ask what's the matter?
yours`
sehrguey
-
Feel free to delete everything I set up and do it yourself. It won't hurt my feelings. I was just trying to help you out by getting a working example that you could copy from. You were asking questions like "So please inform if there is a working RoR app at heliohost?" so your answer to that is obviously yes.Actually, I'd prefer to find out the way of doing it myself, the whole business of trying to deploy it was started to learn things.A bit of bad news though, when I checked "http://depot.maht.heliohost.org/" the response was`Did you change anything?
I feel obliged and grateful for your time and effort to help me out. Thank you and I really mean it.
My point is I still do not know how to make a rails app (working at home) to work at heliohost.
After getting your message`
I created a fresh RoR setup for you, and started it running. The ruby files are located at /home/sehrguey/rails_apps/depot and you can see the working RoR default stuff at http://depot.maht.heliohost.org/ Your old ruby files are still where you created them at /home/sehrguey/depot and you can transfer them over to the working setup if you wish.I checked the site and got a server error. I informed you about that without changing anything.
Then I tried it with another browser and it worked. OK, fine.
I uploaded the application files to the folders you created for me (thank you again) and then I did deleted welcome_index.html in public folder because (you know it better than me) that file does not belong to a rails app.
From that point in time I started to get red on white messages "we are sorry, something went wrong".
Actually it's me who's sorry for I don't know what to do, I only know that I won't delete your helping folders and I don't want to leave heliohost - I like the feel of it.
Thank you.
yours`
sehrguey
-
I created a fresh RoR setup for you, and started it running. The ruby files are located at /home/sehrguey/rails_apps/depot and you can see the working RoR default stuff at http://depot.maht.heliohost.org/ Your old ruby files are still where you created them at /home/sehrguey/depot and you can transfer them over to the working setup if you wish. Thanks for pointing out how confusing the wiki article is. I didn't write the original one, but I also found the instructions kind of hard to understand. I might have to rewrite it sometime to make it easier to get started with Ruby on Rails on Heliohost.Perhaps you should have read the post I made 12 minutes prior to yours. Since you couldn't figure out RoR on your own I set it up for you, and I agree that the official instructions are a little confusing.
You are right I couldn't figure out the stuff even support admin finds fuzzy.
Thank you for your magnanimousity at setting up RoR default stuff for me.
Actually, I'd prefer to find out the way of doing it myself, the whole business of trying to deploy it was started to learn things.
A bit of bad news though, when I checked "http://depot.maht.heliohost.org/" the response was`
"Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /.
Reason: Error reading from remote server
Additionally, a 502 Bad Gateway error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.23 (Unix) mod_ssl/2.2.23 OpenSSL/0.9.8e-fips-rhel5 mod_mono/2.6.3 mod_jk/1.2.35 FrontPage/5.0.2.2635 mod_bwlimited/1.4 mod_auth_passthrough/2.1 mod_wsgi/3.4 Python/2.4.3 Server at depot.maht.heliohost.org Port 80"
Could you kindly clarify please?
puzzledly yours`
sehrguey
-
After creating a working RoR app on my home computer I followed the official heliohost instructions "http://wiki.helionet.org/Deploying_a_Rails_application_on_HelioHost" for deploying it at my heliohost account.
The resulting "site" was only producing "internal server ERROR 500" and I asked for help at this here forum "http://www.helionet.org/index/topic/14050-problem-at-creating-subdomain/"
The help offered led to opening my app's document-root as "index of ", check here` "http://depot.maht.heliohost.org/".
I could put there a "hello world" page or a copy of "http://rails.area51.heliohost.org/" but it is not at all what ruby on rails applications are about.
So please inform if there is a working RoR app at heliohost.org or should I try my luck at other places?
yours`
sehrguey
-
Try deleting or renaming your .htaccess file for that subdomain to see if that fixes the 500 error.
For my RoR app deployment I followed instructions at "http://wiki.helionet.org/Deploying_a_Rails_application_on_HelioHost".
Here is what I had in .htaccess file "RailsBaseURI /depot".
After I deleted it the browser shows "Index of/" the subdomain folder which is a far cry from what is expected from a working RoR application.
http://depot.maht.heliohost.org/
Any clues?
-
-
dear forumists,
a subdomain created at my site via cpanel throws up
"Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request."
when I try to open it in a browser.
Where to turn and what to do?
yours`
sehrguey
-
dear gracious Support Admins,
three days ago I created an account on johnny and today got suspend page when trying to enter it.
Could you check the logs and tell me - why?
Neither point in the crime list on the suspension page matches my case.
All I know is that yesterday I couldn't login to my account on johnny getting "invalid login" alert all the time.
Three times I tried to reset the password, got confirmation code to my email but it didn't work either.
I guess my account had been already suspended then.
Could you kindly clarify the issue?
yours`
sehrguey
-
dear craigis
I can't reach a stevie's internal page - my account is at johnny (mine is a Rails app).
dear Shinryuu
after registering at this here forum (but not necessarily because of it) I can't login to my account at johnny getting "invalid login" alert all the time. Three times I tried to reset the password, got confirmation code to my email but it didn't work either. And I couldn't find where turn for support in this login issue. Bad stars' influence?
-
dear all,
To deploy depot app at my heliohost domain I:
1) uploaded app files via filemanager,
2) followed steps for creating symlink from /home/depot/public to /home/public_html/depot
by pasting to cronjob commandline "ln -s /home/sehrguey/depot/public /home/sehrguey/public_html/depot >/dev/null 2>&1",
3) created .htaccess file in /home/app/public containing "RailsBaseURI /depot",
then I directed browser to http://depot.maht.heliohost.org/ and got "can't find the server at depot.maht.heliohost.org" error.
Can you help?
[Answered] How Do You Enable Addon-Domain Feature For Your Account
in Questions
Posted
Thank you whole-heartedly!
It's just a bit hard for a newbie to figure out that "a new domain" at the official instruction page really means "a sub-domain".
Regardless.
I'll follow your advice only could you be a little more specific about mapping created by cPanel please?
yours`
sehrguey