prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  Conan Server 1.10 is broken
  #### Description
  Hi!
  
  I'm trying to start conan server but seems like is broken.
  
      $ conan_server
  
  > Traceback (most recent call last):
  >   File "/opt/miniconda3/bin/conan_server", line 7, in <module>
  >     from conans.conan_server import run
  >   File "/opt/miniconda3/lib/python3.6/site-packages/conans/conan_server.py", line 1, in <module>
  >     from conans.server.server_launcher import main
  >   File "/opt/miniconda3/lib/python3.6/site-packages/conans/server/server_launcher.py", line 53, in <module>
  >     launcher = ServerLauncher()
  >   File "/opt/miniconda3/lib/python3.6/site-packages/conans/server/server_launcher.py", line 47, in __init__
      server_capabilities, only_v1=False)
  > TypeError: __init__() got an unexpected keyword argument 'only_v1'
  
  #### Environment
  Conan Versions: 1.10
  Python version: 3.6, 3.7
  OS: Linux Ubuntu 18.04
  
  #### Steps to reproduce
      pip3 install conan==1.10.0
      conan_server
  
  or using Conan Docker Tools:
  
      BUILD_CONAN_SERVER_IMAGE=1 python build.py
      docker run -t -p 9300:9300 --name conan_server conanio/conan_server:latest 
  
  
  - [X] I've read the [CONTRIBUTING guide](https://raw.githubusercontent.com/conan-io/conan/develop/.github/CONTRIBUTING.md).
  - [X] I've specified the Conan version, operating system version and any tool that can be relevant.
  - [X] I've explained the steps to reproduce the error or the motivation/use case of the question/suggestion.
  
  
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `conans/server/server_launcher.py`
  Content:
  ```
  1 #!/usr/bin/python
  2 import os
  3 from conans.server.service.authorize import BasicAuthorizer, BasicAuthenticator
  4 from conans.server.conf import get_server_store
  5 from conans.server.rest.server import ConanServer
  6 from conans.server.crypto.jwt.jwt_credentials_manager import JWTCredentialsManager
  7 from conans.server.crypto.jwt.jwt_updown_manager import JWTUpDownAuthManager
  8 from conans.server.conf import MIN_CLIENT_COMPATIBLE_VERSION
  9 from conans.server.plugin_loader import load_authentication_plugin
  10 from conans.model.version import Version
  11 from conans.server.migrate import migrate_and_get_server_config
  12 from conans import __version__ as SERVER_VERSION, REVISIONS
  13 from conans.paths import conan_expand_user
  14 from conans import SERVER_CAPABILITIES
  15 
  16 
  17 class ServerLauncher(object):
  18     def __init__(self):
  19         user_folder = conan_expand_user("~")
  20         server_folder = os.path.join(user_folder, '.conan_server')
  21 
  22         server_config = migrate_and_get_server_config(user_folder)
  23         custom_auth = server_config.custom_authenticator
  24         if custom_auth:
  25             authenticator = load_authentication_plugin(server_folder, custom_auth)
  26         else:
  27             authenticator = BasicAuthenticator(dict(server_config.users))
  28 
  29         authorizer = BasicAuthorizer(server_config.read_permissions,
  30                                      server_config.write_permissions)
  31         credentials_manager = JWTCredentialsManager(server_config.jwt_secret,
  32                                                     server_config.jwt_expire_time)
  33 
  34         updown_auth_manager = JWTUpDownAuthManager(server_config.updown_secret,
  35                                                    server_config.authorize_timeout)
  36 
  37         server_store = get_server_store(server_config.disk_storage_path,
  38                                         server_config.public_url,
  39                                         updown_auth_manager=updown_auth_manager)
  40 
  41         server_capabilities = SERVER_CAPABILITIES
  42         server_capabilities.append(REVISIONS)
  43 
  44         self.ra = ConanServer(server_config.port, credentials_manager, updown_auth_manager,
  45                               authorizer, authenticator, server_store,
  46                               Version(SERVER_VERSION), Version(MIN_CLIENT_COMPATIBLE_VERSION),
  47                               server_capabilities, only_v1=False)
  48 
  49     def launch(self):
  50         self.ra.run(host="0.0.0.0")
  51 
  52 
  53 launcher = ServerLauncher()
  54 app = launcher.ra.root_app
  55 
  56 
  57 def main(*args):
  58     launcher.launch()
  59 
  60 
  61 if __name__ == "__main__":
  62     main()
  63
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/conans/server/server_launcher.py b/conans/server/server_launcher.py
  --- a/conans/server/server_launcher.py
  +++ b/conans/server/server_launcher.py
  @@ -44,7 +44,7 @@
           self.ra = ConanServer(server_config.port, credentials_manager, updown_auth_manager,
                                 authorizer, authenticator, server_store,
                                 Version(SERVER_VERSION), Version(MIN_CLIENT_COMPATIBLE_VERSION),
  -                              server_capabilities, only_v1=False)
  +                              server_capabilities)
   
       def launch(self):
           self.ra.run(host="0.0.0.0")
  
verification_info: {"golden_diff": "diff --git a/conans/server/server_launcher.py b/conans/server/server_launcher.py\n--- a/conans/server/server_launcher.py\n+++ b/conans/server/server_launcher.py\n@@ -44,7 +44,7 @@\n         self.ra = ConanServer(server_config.port, credentials_manager, updown_auth_manager,\n                               authorizer, authenticator, server_store,\n                               Version(SERVER_VERSION), Version(MIN_CLIENT_COMPATIBLE_VERSION),\n-                              server_capabilities, only_v1=False)\n+                              server_capabilities)\n \n     def launch(self):\n         self.ra.run(host=\"0.0.0.0\")\n", "issue": "Conan Server 1.10 is broken\n#### Description\r\nHi!\r\n\r\nI'm trying to start conan server but seems like is broken.\r\n\r\n    $ conan_server\r\n\r\n> Traceback (most recent call last):\r\n>   File \"/opt/miniconda3/bin/conan_server\", line 7, in <module>\r\n>     from conans.conan_server import run\r\n>   File \"/opt/miniconda3/lib/python3.6/site-packages/conans/conan_server.py\", line 1, in <module>\r\n>     from conans.server.server_launcher import main\r\n>   File \"/opt/miniconda3/lib/python3.6/site-packages/conans/server/server_launcher.py\", line 53, in <module>\r\n>     launcher = ServerLauncher()\r\n>   File \"/opt/miniconda3/lib/python3.6/site-packages/conans/server/server_launcher.py\", line 47, in __init__\r\n    server_capabilities, only_v1=False)\r\n> TypeError: __init__() got an unexpected keyword argument 'only_v1'\r\n\r\n#### Environment\r\nConan Versions: 1.10\r\nPython version: 3.6, 3.7\r\nOS: Linux Ubuntu 18.04\r\n\r\n#### Steps to reproduce\r\n    pip3 install conan==1.10.0\r\n    conan_server\r\n\r\nor using Conan Docker Tools:\r\n\r\n    BUILD_CONAN_SERVER_IMAGE=1 python build.py\r\n    docker run -t -p 9300:9300 --name conan_server conanio/conan_server:latest \r\n\r\n\r\n- [X] I've read the [CONTRIBUTING guide](https://raw.githubusercontent.com/conan-io/conan/develop/.github/CONTRIBUTING.md).\r\n- [X] I've specified the Conan version, operating system version and any tool that can be relevant.\r\n- [X] I've explained the steps to reproduce the error or the motivation/use case of the question/suggestion.\r\n\r\n\n", "before_files": [{"content": "#!/usr/bin/python\nimport os\nfrom conans.server.service.authorize import BasicAuthorizer, BasicAuthenticator\nfrom conans.server.conf import get_server_store\nfrom conans.server.rest.server import ConanServer\nfrom conans.server.crypto.jwt.jwt_credentials_manager import JWTCredentialsManager\nfrom conans.server.crypto.jwt.jwt_updown_manager import JWTUpDownAuthManager\nfrom conans.server.conf import MIN_CLIENT_COMPATIBLE_VERSION\nfrom conans.server.plugin_loader import load_authentication_plugin\nfrom conans.model.version import Version\nfrom conans.server.migrate import migrate_and_get_server_config\nfrom conans import __version__ as SERVER_VERSION, REVISIONS\nfrom conans.paths import conan_expand_user\nfrom conans import SERVER_CAPABILITIES\n\n\nclass ServerLauncher(object):\n    def __init__(self):\n        user_folder = conan_expand_user(\"~\")\n        server_folder = os.path.join(user_folder, '.conan_server')\n\n        server_config = migrate_and_get_server_config(user_folder)\n        custom_auth = server_config.custom_authenticator\n        if custom_auth:\n            authenticator = load_authentication_plugin(server_folder, custom_auth)\n        else:\n            authenticator = BasicAuthenticator(dict(server_config.users))\n\n        authorizer = BasicAuthorizer(server_config.read_permissions,\n                                     server_config.write_permissions)\n        credentials_manager = JWTCredentialsManager(server_config.jwt_secret,\n                                                    server_config.jwt_expire_time)\n\n        updown_auth_manager = JWTUpDownAuthManager(server_config.updown_secret,\n                                                   server_config.authorize_timeout)\n\n        server_store = get_server_store(server_config.disk_storage_path,\n                                        server_config.public_url,\n                                        updown_auth_manager=updown_auth_manager)\n\n        server_capabilities = SERVER_CAPABILITIES\n        server_capabilities.append(REVISIONS)\n\n        self.ra = ConanServer(server_config.port, credentials_manager, updown_auth_manager,\n                              authorizer, authenticator, server_store,\n                              Version(SERVER_VERSION), Version(MIN_CLIENT_COMPATIBLE_VERSION),\n                              server_capabilities, only_v1=False)\n\n    def launch(self):\n        self.ra.run(host=\"0.0.0.0\")\n\n\nlauncher = ServerLauncher()\napp = launcher.ra.root_app\n\n\ndef main(*args):\n    launcher.launch()\n\n\nif __name__ == \"__main__\":\n    main()\n", "path": "conans/server/server_launcher.py"}], "after_files": [{"content": "#!/usr/bin/python\nimport os\nfrom conans.server.service.authorize import BasicAuthorizer, BasicAuthenticator\nfrom conans.server.conf import get_server_store\nfrom conans.server.rest.server import ConanServer\nfrom conans.server.crypto.jwt.jwt_credentials_manager import JWTCredentialsManager\nfrom conans.server.crypto.jwt.jwt_updown_manager import JWTUpDownAuthManager\nfrom conans.server.conf import MIN_CLIENT_COMPATIBLE_VERSION\nfrom conans.server.plugin_loader import load_authentication_plugin\nfrom conans.model.version import Version\nfrom conans.server.migrate import migrate_and_get_server_config\nfrom conans import __version__ as SERVER_VERSION, REVISIONS\nfrom conans.paths import conan_expand_user\nfrom conans import SERVER_CAPABILITIES\n\n\nclass ServerLauncher(object):\n    def __init__(self):\n        user_folder = conan_expand_user(\"~\")\n        server_folder = os.path.join(user_folder, '.conan_server')\n\n        server_config = migrate_and_get_server_config(user_folder)\n        custom_auth = server_config.custom_authenticator\n        if custom_auth:\n            authenticator = load_authentication_plugin(server_folder, custom_auth)\n        else:\n            authenticator = BasicAuthenticator(dict(server_config.users))\n\n        authorizer = BasicAuthorizer(server_config.read_permissions,\n                                     server_config.write_permissions)\n        credentials_manager = JWTCredentialsManager(server_config.jwt_secret,\n                                                    server_config.jwt_expire_time)\n\n        updown_auth_manager = JWTUpDownAuthManager(server_config.updown_secret,\n                                                   server_config.authorize_timeout)\n\n        server_store = get_server_store(server_config.disk_storage_path,\n                                        server_config.public_url,\n                                        updown_auth_manager=updown_auth_manager)\n\n        server_capabilities = SERVER_CAPABILITIES\n        server_capabilities.append(REVISIONS)\n\n        self.ra = ConanServer(server_config.port, credentials_manager, updown_auth_manager,\n                              authorizer, authenticator, server_store,\n                              Version(SERVER_VERSION), Version(MIN_CLIENT_COMPATIBLE_VERSION),\n                              server_capabilities)\n\n    def launch(self):\n        self.ra.run(host=\"0.0.0.0\")\n\n\nlauncher = ServerLauncher()\napp = launcher.ra.root_app\n\n\ndef main(*args):\n    launcher.launch()\n\n\nif __name__ == \"__main__\":\n    main()\n", "path": "conans/server/server_launcher.py"}]}