ddar0ch commented on issue #51235:
URL: https://github.com/apache/airflow/issues/51235#issuecomment-3193891815

   Hey, I'm commenting here in case anyone has the same problems that I had.
   I did an upgrade from 2.10 to 3.0.4. Redid the Python Virtual Environment, 
but just migrated my Postgres DB. I also redid the configuration file starting 
from the new default. I keep most of the configuration default.
   But, if you set a custom `port` in [api] section, then it's important to set 
up also `base_url` specifying the new port.
   For example:
   ```
   # The port on which to run the api server
   #
   # Variable: AIRFLOW__API__PORT
   #
   # port = 8080
   port = 8081
   ```
   Then you must set up:
   ```
   # The base url of the API server. Airflow cannot guess what domain or CNAME 
you are using.
   # If the Airflow console (the front-end) and the API server are on a 
different domain, this config
   # should contain the API server endpoint.
   #
   # Example: base_url = https://my-airflow.company.com
   #
   # Variable: AIRFLOW__API__BASE_URL
   #
   base_url = http://localhost:8081/
   ```
   And leave `execution_api_server_url` default.
   
   
   When I set up `execution_api_server_url = http://localhost:8081/execution` 
or `execution_api_server_url = http://localhost:8081/airflow/execution`, 
without setting up `base_url`, I got the 
`airflow.sdk.api.client.ServerResponseError: Method Not Allowed` for every 
task, which failed immediately with no logs shown.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to