Trouble importing data into self-hosted Docker running on Ubuntu

Please fill in the questionnaire below.

Technical Help Questionnaire

Have you read and followed the instructions at: *READ ME FIRST* Technical Help FAQs - #2 by nigel ?

Answer: yes

Self-Hosted Installation and Setup Questions

Delete this section if you are using Baserow.io.

How have you self-hosted Baserow.

Using the Install with Docker // Baserow on Ubuntu

What are the specs of the service or server you are using to host Baserow.

I"m not sure, it’s a server running Ubuntu which I’m logging into remotely (I’m not the admin). I think it has more than 2GB or RAM.

Which version of Baserow are you using.

1.21.1

How have you configured your self-hosted installation?

No configuration other than the commands listed on that baserow page

What commands if any did you use to start your Baserow server?

Unknown. the problem isn’t with the server

Describe the problem

Describe, step by step, how to reproduce the error or problem you are encountering.

I followed instructions to import data from baserow.io to self-hosted. I had done this on my own machine without incident and then I tried it on a server (to which I have ssh access) connected with my workspace. I was able to copy the files to the server and then into the /baserow/backend folder in the container without trouble. But then I ran the command to import into the workspace: docker exec baserow ./baserow.sh backend-cmd manage import_workspace_applications [workspace_id] [workspace_file]. When I ran this command, I get the error: TypeError: LongTextField() got an unexpected keyword argument ‘long_text_enable_rich_text’. Details are down below

Provide screenshots or include share links showing:

Running the command shows the following error

 [STARTUP][2024-07-24 19:22:15] No DATABASE_HOST or DATABASE_URL provided, using embedded postgres.
 [STARTUP][2024-07-24 19:22:15] Using embedded baserow redis as no REDIS_HOST or REDIS_URL provided.
 [STARTUP][2024-07-24 19:22:15] Importing REDIS_PASSWORD secret from /baserow/data/.redispass
 [STARTUP][2024-07-24 19:22:15] Importing SECRET_KEY secret from /baserow/data/.secret
 [STARTUP][2024-07-24 19:22:15] Importing BASEROW_JWT_SIGNING_KEY secret from /baserow/data/.jwt_signing_key
 [STARTUP][2024-07-24 19:22:15] Importing DATABASE_PASSWORD secret from /baserow/data/.pgpass
OTEL_RESOURCE_ATTRIBUTES=service.namespace=Baserow,service.version=1.21.2,deployment.environment=unknown
Traceback (most recent call last):
  File "/baserow/backend/src/baserow/manage.py", line 41, in <module>
    main()
  File "/baserow/backend/src/baserow/manage.py", line 37, in main
    execute_from_command_line(sys.argv)
  File "/baserow/venv/lib/python3.9/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
    utility.execute()
  File "/baserow/venv/lib/python3.9/site-packages/django/core/management/__init__.py", line 413, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/baserow/venv/lib/python3.9/site-packages/django/core/management/base.py", line 354, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/baserow/venv/lib/python3.9/site-packages/django/core/management/base.py", line 398, in execute
    output = self.handle(*args, **options)
  File "/usr/lib/python3.9/contextlib.py", line 79, in inner
    return func(*args, **kwds)
  File "/baserow/backend/src/baserow/core/management/commands/import_workspace_applications.py", line 71, in handle
    applications, _ = handler.import_applications_to_workspace(
  File "/baserow/backend/src/baserow/core/telemetry/utils.py", line 72, in _wrapper
    raise ex
  File "/baserow/backend/src/baserow/core/telemetry/utils.py", line 68, in _wrapper
    result = wrapped_func(*args, **kwargs)
  File "/baserow/backend/src/baserow/core/handler.py", line 1592, in import_applications_to_workspace
    imported_application = application_type.import_serialized(
  File "/baserow/backend/src/baserow/contrib/database/application_types.py", line 537, in import_serialized
    self.import_tables_serialized(
  File "/baserow/backend/src/baserow/contrib/database/application_types.py", line 295, in import_tables_serialized
    field_instance = field_type.import_serialized(
  File "/baserow/backend/src/baserow/contrib/database/fields/registries.py", line 877, in import_serialized
    field = self.model_class(
  File "/baserow/backend/src/baserow/core/mixins.py", line 196, in __init__
    super().__init__(*args, **kwargs)
  File "/baserow/venv/lib/python3.9/site-packages/django/db/models/base.py", line 503, in __init__
    raise TypeError("%s() got an unexpected keyword argument '%s'" % (cls.__name__, kwarg))
TypeError: LongTextField() got an unexpected keyword argument 'long_text_enable_rich_text'

How many rows in total do you have in your Baserow tables?

Around 300, I think

Please attach full logs from all of Baserow’s services

I don’t know where to find the logs, but I will attach them if you think this is necessary. Seems to be an error in the script rather than the Baserow application

Hi @wkdewey, could it be that you’ve exported data from an instance with a newer version of Baserow into one with an older version? You can import from a lower to a newer version, but not the other way around. The error is related to the rich text field, and that didn’t exist in version 1.21.1 yet.