Shiny Server doesnt deploy app - shiny

We have installed Shiny Server and RStudio Server on a CentOs 7. We can see the sample-apps that come pre-loaded into it (sample-apps/hello/), which run absolutely fine.
However, when we copy+paste these same server.R and ui.R files into a new folder (sample-apps/new_hello) and try to run this new version, we get the following error:
ERROR: An error has occurred. Check your logs or contact the app author for clarification.
We are also unable to run our own shiny apps which are already working on our own laptops. So it is not R-code related.
Are we missing a step here?

OK, here is my solution:
You should install all the R's libraries in the following folder:
"/usr/local/lib/R/site-library"
and then make sure that the user shiny has the permission to access it.
I hope it can help other users that still looking for a solution.

Related

Downloading and finally executing Flask to make it work or connecting to the web

It appears that the program is already installed in Pycharm. I even created a blog about how to do it with pictures.
Nonetheless, it has been a nightmare getting to execute and finally connect on the web.
What code am I missing, I did it all thru Pycharm.
Yes, in order to Install Flask to do web apps. You must pay Pycharm Pro. This is true if you have a windows laptop or desktop. I am not certain about other programs where you can do Python web apps for free. But I will research that.

bitnami redmine problem running post-install step

I’m trying to install Bitnami Redmine on my computer but the following worning appears:
Problem running post-install step. installationmay not comrrectly
Error running c:\ noysarah/apps/redmine\scripts\redmineini.bet : rake aborted!
HOME environment variable (or HOMEDRIVE and HOMEPATH) must be set and point a directory
If I’m pressing the ‘X’ button the downloads continues. But then when the browser open I’m getting the following message:
“The requested URL was not found on this server”
If someone can help it will be amazing. Thank you.
Bitnami developer here,
Could you please run the following command in a prompt?
set HOME
If you don't have set HOMEDRIVE or HOMEPATH, you have to set them before running the installer. For example, you could set them like this (if your user is Administrator):
HOMEDRIVE=C:
HOMEPATH=\Users\Administrator
I hope it helps.

Running rails server within file does not show changes. Perhaps git related

I'm having a hard time articulating my problem: when running the rails server within a file, the changes I made earlier today are not appearing on my local host. Yet, when I open the file in Sublime it shows that all of my code is there. It was working earlier today. I know it is not a rake database issue as the most recent changes I made to the model are showing up on the local host.
Link to github: https://github.com/BrianLobdell/depot
Please help!
-Brian
All I needed to do was run $ rake db:seed. still have no idea why I needed to run it again.

How to make update in Django webservice made in python on windows

I have installed Python 27 successfully.
And with respect to project requirement i have also installed following packages.
Django==1.4.3
MySQL-python==1.2.4
PIL==1.1.7
South==0.7.6
argparse==1.2.1
distribute==0.6.28
django-appconf==0.6
django-imagekit==2.0.2
pytz==2012j
six==1.2.0
wsgiref==0.1.2
Now the problem is, i dont know how to make this run, or visible in python.
Can anybody please help me, to get out from this.
I have to change few webservices and also want to add some functionality.
This webservices are attached with wordpress website.
So, please help me to configure whole this project on local (Windows PC).
Thanks in advance
Go for the Touch Command of Django for this issue,
I think it will make helpful to you.
Thanks!
i have solve this, find below instruction for users who have same queries:
Restarting the Spawned Server
If you change any Python code on your site, you’ll need to tell FastCGI the code has changed. But there’s no need to restart Apache in this case. Rather, just reupload mysite.fcgi – or edit the file – so that the timestamp on the file changes. When Apache sees the file has been updated, it will restart your Django application for you.
If you have access to a command shell on a Unix system, you can accomplish this easily by using the touch command:
touch mysite.fcgi
For more information:
http://www.djangobook.com/en/2.0/chapter12.html
Thanks

Deploying django project on AWS elastic beanstalk

I am following the tutorial for deploying a django project on AWS elastic beanstalk here:
http://docs.amazonwebservices.com/elasticbeanstalk/latest/dg/create_deploy_Python_django.html
My app works when I test locally but when I deploy, I'm getting a 404 error. Looking at the event logs, I see this message:
Error running user's commands : An error occurred running '. /opt/python/ondeck/env && PYTHONPATH=/opt/python/ondeck/app: django-admin.py syncdb --noinput' (rc: 127) /bin/sh: django-admin.py: command not found
That leads me to believe that the tutorial is missing a part about installing django files on the server or at least configuring my project to recognize django-admin.py. I have django installed on my local machine so it works there.
I know python support is brand new for elastic beanstalk but has anyone deployed django to it?
I believe you don't need to put container_commands in .config because there is no database or table at this moment.
Did you made the step?: Freeze the requirements.txt file.
(djangodev)# pip freeze > requirements.txt
Note
Make sure your requirements.txt file contains the following:
Django==1.4.1
MySQL-python==1.2.3
I had the same problem because I skipped it. Once I did it, add, commit and push. It works!
I followed the same tutorial recently and had a similar result.
At step 6, upon seeing the default django 'congrats' page render locally, I deployed to EB as instructed and got a 404 instead of the default 'congrats' page.
I decided to use the code up to that point as a foundation for following the 'getting started with django tutorial' which led me to a successful rendering of a 'home' view. This is a much more useful place to be anyway. I do agree that there is something wrong with the AWS tutorial and posted to the AWS forums here.
If you can, you should try to access the log file; it might give you a better idea of what's going on. Here's a link that might help:
http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.loggingS3.title.html