I’ve started with building new SeaTable environment including separate SeaTable server and Python Pipeline. I followed instructions for both of those precisely but when attempting to execute script from SeaTable it does not work showing: error: Error: Internal Server Error.
Could you please point me to correct direction at least to get some logs ?
For Python Pipeline I adjusted .env to COMPOSE_FILE=‘caddy.yml,python-pipeline.yml’
I did have to adjust python-pipeline.yml file in order for it to start working.
I adjusted (removed this part): networks: - backend-seatable-net
Does SeaTable and Python-Pipeline have separate but public available domains?
I assume that the problem is, that python-scheduler does not find the database for initialization.
Did you define DB_HOST in the .env? Is the MariaDB reachable over the network?
They both have same domain but different DNS, example: seatable.company.com and python.company.com. DNS is resolvable between them and they can communicate without any restrictions.
As I looked at the logs I would say that is correct, it is showing issues with DB. I did not place DB_HOST in the .env as I did not see it in documentation anywhere. I presume that this has to be setup on Python Pipeline to point to SeaTable server were DB is ?
Tested from Python Pipeline server and through telnet its reachable on port 3306.
How do I configure now Python Pipeline to connect to it? Should I place DNS of my SeaTable server in DB_HOST that I place in .env file or ? How does this work ?
On my SeaTable server I adjust .env with following, placed for scheduler URL on http as per seatable-server.yml file that is in example. AUTH is generated and placed on both servers same in .env.
I am sorry, it seems that my description how to deploy python pipeline on a separate server is not covering all necessary requirements. Unfortunately, I don’t have time today to have a look at this.
Give me some time and I will have a look.
Probably this description of the python pipeline workflow helps you to check the different components part of python pipeline:
I did everything from scratch with new files pulled from repository, adjusted them properly. And everything is indeed healthy under docker, no issues when looking docker logs for each container, but still it does not work.
Whenever I try Python script from SeaTable it shows error: Error: Internal Server Error.
If I do inspect on the page to see errors it shows following: (I hidden start of URL).
Failed to load resource: the server responded with a status of 500 ()
https://MY_SEA_TABLE_URL/api/v2.1/dtable/dd0c1599-34b5-44f8-8d89-2b33ef169e3f/run-script/TiGw.py/
Could you please let me know where I can find the log of what happens when I execute Python script from SeaTable, where I can see that it actually tries or connect to Python Pipeline?
I’m using simple script:
print(“Hello World”)
PS: Servers are reachable between, I did curl to confirm. When I do a curl toward Python Pipeline URL or open that URL in browser of my jump server I see following, not sure if I should see anything different.
404 Not Found
Not Found
The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.