Hello SeaTable Team,
When I created an admin user with the command docker exec -it seatable /shared/seatable/scripts/seatable.sh superuser
, the following error occurred:
Traceback (most recent call last):
File "/opt/seatable/seatable-server-latest/seafile/lib/python3/site-packages/pysearpc/named_pipe.py", line 85, in _get_transport
transport = self._pool.get(False)
File "/usr/lib/python3.7/queue.py", line 167, in get
raise Empty
_queue.Empty
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/opt/seatable/seatable-server-latest/dtable-web/thirdpart/django/core/management/__init__.py", line 419, in execute_from_command_line
utility.execute()
File "/opt/seatable/seatable-server-latest/dtable-web/thirdpart/django/core/management/__init__.py", line 413, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/opt/seatable/seatable-server-latest/dtable-web/thirdpart/django/core/management/base.py", line 354, in run_from_argv
self.execute(*args, **cmd_options)
File "/opt/seatable/seatable-server-latest/dtable-web/thirdpart/django/core/management/base.py", line 398, in execute
output = self.handle(*args, **options)
File "/opt/seatable/seatable-server-2.7.9/dtable-web/seahub/base/management/commands/createsuperuser.py", line 88, in handle
User.objects.get(email=default_username)
File "/opt/seatable/seatable-server-2.7.9/dtable-web/seahub/base/accounts.py", line 181, in get
emailuser = ccnet_threaded_rpc.get_emailuser(email)
File "/opt/seatable/seatable-server-latest/seafile/lib/python3/site-packages/pysearpc/client.py", line 125, in newfunc
ret_str = self.call_remote_func_sync(fcall_str)
File "/opt/seatable/seatable-server-latest/seafile/lib/python3/site-packages/pysearpc/named_pipe.py", line 97, in call_remote_func_sync
transport = self._get_transport()
File "/opt/seatable/seatable-server-latest/seafile/lib/python3/site-packages/pysearpc/named_pipe.py", line 87, in _get_transport
transport = self._create_transport()
File "/opt/seatable/seatable-server-latest/seafile/lib/python3/site-packages/pysearpc/named_pipe.py", line 80, in _create_transport
transport.connect()
File "/opt/seatable/seatable-server-latest/seafile/lib/python3/site-packages/pysearpc/named_pipe.py", line 44, in connect
self.pipe.connect(self.socket_path)
FileNotFoundError: [Errno 2] No such file or directory
I also tried to execute the command in the seatable container, I received the same error:
I printed the socket_path
in in file /opt/seatable/seatable-server-latest/seafile/lib/python3/site-packages/pysearpc/named_pipe.py
with the result /opt/seatable/seafile-data/seafile.sock
. But this seafile.sock
does not exist:
My docker-compose file looks like (I have an example external network custom-volume
to connect with seatable python runner and seatable python faas scheduler):
version: "3.8"
services:
db:
image: our-company/seatable-mariadb:release-0.7
container_name: seatable-mysql
command: --max_allowed_packet=256M
environment:
# "PASSWORD" is the password. Requested, set the root's password of MySQL service.
- MYSQL_ROOT_PASSWORD=${PASSWORD}
- MYSQL_LOG_CONSOLE=true
volumes:
# Requested, specifies the path to MySQL data persistent store.
- seatable-db:/var/lib/mysql
networks:
- seatable-net
memcached:
image: memcached:1.5.6
container_name: seatable-memcached
entrypoint: memcached -m 256
networks:
- seatable-net
redis:
image: redis:5.0.7
container_name: seatable-redis
networks:
- seatable-net
seatable:
image: seatable/seatable-enterprise:2.7.9
container_name: seatable
ports:
- "80:80"
- "443:443"
volumes:
# Requested, specifies the path to Seafile data persistent store.
- seatable-shared-data:/shared
environment:
- DB_HOST=db
# Requested, the value shuold be root's password of MySQL service.
- DB_ROOT_PASSWD=${PASSWORD}
# Default is False. Whether to use let's encrypt certificate.
- SEATABLE_SERVER_LETSENCRYPT=False
# Specifies your host name.
- SEATABLE_SERVER_HOSTNAME=${SERVER_HOSTNAME}
# Optional, default is UTC. Should be uncomment and set to your local time zone.
- TIME_ZONE=Etc/UTC
depends_on:
- db
- memcached
- redis
networks:
- seatable-net
- custom-volume
networks:
seatable-net:
custom-volume:
name: custom-volume
external: true
volumes:
seatable-db: {}
seatable-shared-data: {}
According to this post I created an user in the ccnet_db.EmailUser but after login the “Page unavailable” error appeared:
Could anyone tell me why this happens and how can I fix the problem?
Thank you very much in advance.
Best regards,
Tra