tableau / TabPy

Execute Python code on the fly and display results in Tableau visualizations:
https://tableau.github.io/TabPy/
MIT License
1.56k stars 598 forks source link

Tabpy Offline Linux RHEL 8 Installation / Unable to Connect to the Tabpy Server #641

Open Marmedina-dd opened 2 months ago

Marmedina-dd commented 2 months ago

Environment information:

Describe the issue I have offline installed Tableau Server on a RHEL 8 instance of Linux. I have also PIP installed Tabpy 2.9.0 with Python 3.8 and that seems to be working fine. We get the desired output when initializing Tabpy on the our Linux CLI: Web Service Listening on Port 9004. However, when I attempt to use a .py file in Flows I get a: Unable to Connect to the Tableau Python (TabPy) Server X.X.X.X [File Path Hidden] on port 9004. Check your connection details and credentials, then try again.

To Reproduce Not sure how to reproduce this. I have followed all the tsm configs from Tableau... (https://help.tableau.com/current/prep/en-us/prep_scripts_TabPy.htm)

... configs from this repo for both the default.conf and state.ini files. All ports have been verified and seem to working properly. Analytic Extensions have also been enabled and match the configs on the other files.

Expected behavior Expect to be able to run a Flow in Tableau server on some data and a .py Script object in a flow to a desired change output of the original data input.

Screenshots This is what my CLI sort of looks like when I initialize Tabpy on my server, but this is a Windows version and I am using Linux: tabpy_webservice_CLI

This is the error I see when I try to run a .py file in a test flow: tabpy_unable to connect

This is what the error looks like in the flow, mine is a little different. I dont have a 'Server' appearing under 'Connection Type' (Tableau Python or Rserve). 'Server' does not appear at all on mine. flow_error

Thanks!

Marmedina-dd commented 2 months ago

I have been looking at flowprocessor logs and do see ERRORS/WARNINGS for:

  1. Refresh pipeline configuration has failed java.net.UknownHostException: Name or service not known
  2. HttpResponseFutureCallback - emitting events has failed
  3. Found use of deprecated sequence-based id generator
  4. com.tableausoftware.endeavor.client.impl.PipelineStage - failed to initialize pipeline configuration
  5. com.tableau.minerva.lifecycle.MinervaProcess - The port file is empty
  6. com.tableausoftware.features.client.FeatureServiceFactory - We're trying to build a client without launch darkly configured
  7. com.tableau.loom.rest.spring.PropertySourceInitializer - Could not open ServletContext resource [/META-INF/resources/version.properties]
  8. com.tableausoftware.service.LinuxServiceManager - Failed to get active status from systemctl command on flowprocessor_0. Received Exit Code 3.
  9. com.tableausoftware.service.LinuxServiceManager - inactive
  10. com.tableau.loom.floweditor.session.FlowEditSessionService - Insert flow edit session for native session X failed. Removing native session
  11. com.tableau.loom.floweditor.services.drafts.DraftResourceManager - Attempt to get resource location for draft X failed. Retrying.
  12. com.tableau.loom.floweditor.services.drafts.DraftResourceManager - No resource location found for draft X, nothing to clean up.