Code Monkey home page Code Monkey logo

Comments (24)

BBeran avatar BBeran commented on May 25, 2024

Did you try the following for the setup on Tableau server?

tabadmin stop
tabadmin set vizqlserver.extsvc.host
tabadmin set vizqlserver.extsvc.port
tabadmin configure
tabadmin start

from tabpy.

venkataanumula avatar venkataanumula commented on May 25, 2024

Yes, I tried that again but still the same error
image

from tabpy.

BBeran avatar BBeran commented on May 25, 2024

It might be having problem resolving the name localhost.

Have you tried http://localhost OR 127.0.0.1 when configuring on the server and see if it solves the problem?

from tabpy.

venkataanumula avatar venkataanumula commented on May 25, 2024

I tired both http://localhost and 127.0.0.1 . It did not work . But, it works when i configure with the ip address of the box where the tableau server is installed.

from tabpy.

BBeran avatar BBeran commented on May 25, 2024

If those names aren't resolving but IP address of the server is working, it is likely an issue in the hosts file
https://en.wikipedia.org/wiki/Hosts_(file)

where mapping from localhost and 127.0.0.1 need to be defined.

But it seems like you found a solution by using the full hostname for the server TabPy is on.

from tabpy.

andylam1989 avatar andylam1989 commented on May 25, 2024

I have tried with the localhost (127.0.0.1) of coz it works well but I tried to config in Tableau server, it's not work. My flow is configured in server
tabadmin stop
tabadmin set vizqlserver.allow_insecure_scripts true
tabadmin set vizqlserver.extsvc.host
tabadmin set vizqlserver.extsvc.port
tabadmin config
tabadmin start

Any idea for this problem. Thanks ;)

from tabpy.

venkataanumula avatar venkataanumula commented on May 25, 2024

@andylam1989 it would be helpful if you could mention the error you are getting.

from tabpy.

BBeran avatar BBeran commented on May 25, 2024

I have a server running without any issues with the following config

vizqlserver.extsvc.host http://127.0.0.1
vizqlserver.extsvc.port 9004
vizqlserver.script.disabled true

Last setting is backwards. It has to be set to true to enable scripts while the name implies otherwise.
allow_insecure_scripts controls whether Tableau Server should accept string parameters which is a safety measure against injection attacks.

from tabpy.

andylam1989 avatar andylam1989 commented on May 25, 2024

Thank you venkataanumula and BBeran. Of coz when I set 127.0.0.1, it means the IP of localhost and it works very well. Now I want to use another computer with IP to run Pytab and in Tableau, I set the IP of this computer? Is it possible? I saw some blog for Rserve and I have tried this way. Thanks again!

from tabpy.

s13varun avatar s13varun commented on May 25, 2024

I am trying to connect R and tableau server. In my case R and tableau desktop are on one machine and tableau server on another machine. I could publish workbook, but it returns error when opening workbook.
I had executed the following
C:\Program Files\Tableau\Tableau Server\10.4\bin>tabadmin stop
C:\Program Files\Tableau\Tableau Server\10.4\bin>tabadmin set vizqlserver.extsvc.host
ip address of the machine hosting Rserve
C:\Program Files\Tableau\Tableau Server\10.4\bin>tabadmin set vizqlserver.extsvc.port 6311
C:\Program Files\Tableau\Tableau Server\10.4\bin>tabadmin set vizqlserver.script.disabled true
C:\Program Files\Tableau\Tableau Server\10.4\bin>tabadmin configure
C:\Program Files\Tableau\Tableau Server\10.4\bin>tabadmin start
r
tab
tabserverror

Any idea to solve this ?
Thanks

from tabpy.

0golovatyi avatar 0golovatyi commented on May 25, 2024

Try to start Rserve with Rserve(debug=TRUE) to confirm it can locate and load config file and parameters there are what you expect them to be.

from tabpy.

s13varun avatar s13varun commented on May 25, 2024

I have made the following changes. I could publish workbook, when I try to open dashboard it takes more than 30 minutes and returns error.
r
tab
cmd
tabserverror

from tabpy.

nmannheimer avatar nmannheimer commented on May 25, 2024

In your cmd line printouts it looks like you're setting the extsvc.host to localhost, but earlier you mentioned you are running RServe on a different machine.

Are you setting the extsvc.host to the ip address of the machine where Rserve is running? Additionally can you confirm that you can ping the machine where RServe is running from the box where Tableau Server is running?

from tabpy.

nmannheimer avatar nmannheimer commented on May 25, 2024

Also, @s13varun this github page is primarily for supporting TabPy Python integration. If the issue persists, please consider posting on Tableau's forums, so you can get input from community members who may have more experience with RServe as well as the Tableau team:

https://community.tableau.com/community/forums/externalservices

from tabpy.

s13varun avatar s13varun commented on May 25, 2024

Sorry for not updating that. Both are running on same machine now.
I didn't understand " Can you confirm that you can ping the machine where RServe is running from the box where Tableau Server is running? "

from tabpy.

nmannheimer avatar nmannheimer commented on May 25, 2024

So if I understand correctly, you are running RServe on the same machine as your Tableau Server? Are you also running an RServe instance on the same machine as your Tableau Desktop instance, or are all three on the same machine?

If you were running RServe on a different machine than your Tableau Server, pinging the computer that was running RServe from the computer running Tableau Server would confirm that you can send network traffic between the two.
http://www.steves-internet-guide.com/ping-command/

from tabpy.

s13varun avatar s13varun commented on May 25, 2024

All three are running on the same machine

from tabpy.

nmannheimer avatar nmannheimer commented on May 25, 2024

And to confirm, you are able to render the visualization you are trying to make with R code in Desktop, but not in Server even when all three are on the same machine?

from tabpy.

s13varun avatar s13varun commented on May 25, 2024

Yes. It works on desktop but not in server

from tabpy.

0golovatyi avatar 0golovatyi commented on May 25, 2024

@s13varun,

With debug=TRUE on the screenshot, you provided it is unfortunately still not clear what config file and parameters running Rserve is using. Could you try Rserve(debug=TRUE, args="--RS-conf C:\path\to\conf\file")? I am not sure it works for Windows Rserve in the same way - on Linux\Mac debug output shows if config file was found and what parameters are used (host, port, etc.)

from tabpy.

s13varun avatar s13varun commented on May 25, 2024

Correct me if I am wrong. I had found many tutorial regarding config file of Rserve. I have not found any config file under Rserve yet. Is config file comes with Rserve installation or should we create one ?

from tabpy.

nmannheimer avatar nmannheimer commented on May 25, 2024

Hello @s13varun,

Since this issue is ongoing, I'm going to ask that you submit an issue on the Tableau forums in the external services section:
https://community.tableau.com/community/forums/externalservices
or file a ticket with Tableau technical support:
https://www.tableau.com/support

This github page is for Tableau's Python integration server TabPy.

from tabpy.

s13varun avatar s13varun commented on May 25, 2024

I want to integrate R and tableau server to make use of a function in R package. It is not working even on tableau desktop.
To integrate python with tableau, I already had anaconda installed on my machine. When I ran startup.bat window closes immediately. How to solve this ?

startup.bat file location C:\Users\user4\AppData\Local\conda\conda\pkgs\tabpy-server-0.2-py36_0\Lib\site-packages\tabpy_server

ap

from tabpy.

 avatar commented on May 25, 2024

from tabpy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.