Alpha Video Training
Results 1 to 11 of 11

Thread: Running WAS as a service?

  1. #1
    Member
    Real Name
    Nathan Zeiset
    Join Date
    Jul 2000
    Location
    Ephrata, PA
    Posts
    229

    Default Running WAS as a service?

    Hello all:

    I have our web application running on a VPS at EasyCGI. I want to make sure that the application starts up automatically and immediately after a server reboot. I've read all that I could find on this forum, but so far nothing is working quite right for me.

    1. I tried putting a shortcut to the WAS in the startup folder, but it won't start after a reboot until I connect to the server using Remoted Desktop. As soon as I connect, the WAS starts, but not until then.

    2. I tried running it as a service using AlwaysUp. It would run my application, but as I clicked around in it, I would get errors quite often. If I would refresh the page that initially returned an error, it would usually show up fine. (If I remember correctly, they were connection errors. I already uninstalled it, because the performance was definitely unsatisfactory.)

    3. I tried running it as a service using FireDaemon. It runs my application fine, except for one critical part. The email_send2() function doesn't work. Or maybe it's the MailEnable server software that I'm using. I'm not sure which. If I run WAS directly, the email works fine.

    Are there any other options that someone is using successfully? Or does anyone have any ideas why any of the things I've tried so far don't work properly?

    Thanks!
    Nathan

  2. #2
    Moderator Steve Wood's Avatar
    Real Name
    Steve Wood
    Join Date
    Nov 2003
    Location
    Bay Area, California
    Posts
    8,827

    Default Re: Running WAS as a service?

    I have a VPS account with the same outfit. Your problems are probably not related to AlwaysUp or FD. Your option 1 will always work that way, so abandon it. I've used AlwaysUp and FD without any problem for over a year. You were kinda sketchy about what the problem was on #2.
    Steve Wood
    Join the ALPHA DEVELOPERS NETWORK
    There is no Cloud. It's just someone else's computer.
    Web - Mobile - Hosting - Products - Frameworks - Developer Resources
    AlphaToGo | IADN (100% Alpha Anywhere Websites)

  3. #3
    Member
    Real Name
    Nathan Zeiset
    Join Date
    Jul 2000
    Location
    Ephrata, PA
    Posts
    229

    Default Re: Running WAS as a service?

    Thanks for your response, Steve.

    I reinstalled AlwaysUp, and I could not reproduce the errors I was getting earlier. That's the good news. The bad news is that I have the same issue with AlwaysUp that I had with FireDaemon. The email_send2() function does not work. I've attached a copy of a test page that works fine when running the WAS directly, but fails when running as a service under AlwaysUp or FireDaemon. (If anyone wants to test the code, replace the placeholders with valid email addresses.)

    Can anyone verify that email_send2() does not work when running the WAS as a service? I'm trying to determine if this is a WAS, AlwaysUp, or server problem.

    Thanks!
    Nathan

  4. #4
    Member
    Real Name
    Nathan Zeiset
    Join Date
    Jul 2000
    Location
    Ephrata, PA
    Posts
    229

    Default Re: Running WAS as a service?

    FWIW, I modified the code to use the email_send() function instead, and I get the same results.

    Nathan

  5. #5
    Member
    Real Name
    Nathan Zeiset
    Join Date
    Jul 2000
    Location
    Ephrata, PA
    Posts
    229

    Default Re: Running WAS as a service?

    I guess I posted too quickly. :o The problem was solved by changing the log on settings of the service to those that I use to log on to the server. Now the email_send2() function works fine.

    Nathan

  6. #6
    Moderator
    Real Name
    Alan Buchholz
    Join Date
    Oct 2000
    Location
    Delavan, Wisconsin
    Posts
    9,563

    Default Re: Running WAS as a service?

    Quote Originally Posted by Nathan Zeiset View Post
    I guess I posted too quickly. :o The problem was solved by changing the log on settings of the service to those that I use to log on to the server. Now the email_send2() function works fine.

    Nathan
    I was just about to post a message that the email profiles are stored in the registry under the windows username, so logging in under a different user will give you different profiles.(or none if the profiles haven't been set for that windows user).

    Glad you were able to work through it.
    Al Buchholz
    Bookwood Systems, LTD
    Weekly QReportBuilder Webinars Thursday 1 pm CST

    Occam's Razor - KISS
    Normalize till it hurts - De-normalize till it works.
    Advice offered and questions asked in the spirit of learning how to fish is better than someone giving you a fish.
    When we triage a problem it is much easier to read sample systems than to read a mind.

  7. #7
    Moderator Steve Wood's Avatar
    Real Name
    Steve Wood
    Join Date
    Nov 2003
    Location
    Bay Area, California
    Posts
    8,827

    Default Re: Running WAS as a service?

    Glad you answered that because I was scratching my head - I use email_send() and email_send2() along with AlwaysUp with no issue.
    Steve Wood
    Join the ALPHA DEVELOPERS NETWORK
    There is no Cloud. It's just someone else's computer.
    Web - Mobile - Hosting - Products - Frameworks - Developer Resources
    AlphaToGo | IADN (100% Alpha Anywhere Websites)

  8. #8
    VAR
    Real Name
    Bill Parker
    Join Date
    Apr 2000
    Location
    Dallas, TX
    Posts
    1,699

    Default Re: Running WAS as a service?

    Nathan,

    I could use some help with this. I am having the problem of not being able to send email from the app server, which is run as a service by AlwaysUp.

    I have looked through User Rights Assignment, Desktop Security Settings, the help file, and I can't see where to set the logon for the service to match my logon account.

    Bill.

  9. #9
    VAR
    Real Name
    Bill Parker
    Join Date
    Apr 2000
    Location
    Dallas, TX
    Posts
    1,699

    Default Re: Running WAS as a service?

    OK, I found the settings when I Edit the app server service. Email still not working, but I will poke around and probably figure it out.

    Bill.

  10. #10
    Moderator Steve Wood's Avatar
    Real Name
    Steve Wood
    Join Date
    Nov 2003
    Location
    Bay Area, California
    Posts
    8,827

    Default Re: Running WAS as a service?

    Test it from the server by right-clicking on teh Alpha icon, go to Email and your profile and test send. If that works, your send_email should work. Email configuration must be done on the server, the client computer you published from has NO bearing on the email settings on the server.
    Steve Wood
    Join the ALPHA DEVELOPERS NETWORK
    There is no Cloud. It's just someone else's computer.
    Web - Mobile - Hosting - Products - Frameworks - Developer Resources
    AlphaToGo | IADN (100% Alpha Anywhere Websites)

  11. #11
    VAR
    Real Name
    Bill Parker
    Join Date
    Apr 2000
    Location
    Dallas, TX
    Posts
    1,699

    Default Re: Running WAS as a service?

    Oddly I had never noticed the Test button before. That made testing much easier!

    The smpt server external to the server's network that I had been trying to use still does not want to work from the app server. It does work from a runtime copy on the server - I have triple checked that settings are the same between runtime and app server, but who knows.

    On the app server I finally got an smpt server on their internal network to work, so I am declairing victory!

    Bill.

Similar Threads

  1. Run WAS as service
    By MinamiT in forum Web Application Server v7
    Replies: 51
    Last Post: 01-28-2007, 09:36 AM
  2. WOW thats service
    By Rayr in forum Announcements
    Replies: 2
    Last Post: 10-20-2005, 11:17 PM
  3. running A4v8 while running Windows Apps
    By Carl Bussler in forum Alpha Four Versions 7 and 8
    Replies: 0
    Last Post: 10-28-2003, 03:49 AM
  4. Service Pack
    By Sharon Bracken in forum Alpha Five Version 5
    Replies: 1
    Last Post: 09-13-2002, 09:31 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •