Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Socket Permission Denied Error in seafile container #5

Open
justdoit4me opened this issue Jan 18, 2020 · 0 comments
Open

Socket Permission Denied Error in seafile container #5

justdoit4me opened this issue Jan 18, 2020 · 0 comments

Comments

@justdoit4me
Copy link

Hello,
on running the docker the first time I get the
socket.error: [Errno 13] Permission denied
(see also below).
I am able to log in the container as root and can easily reproduce the problem there using the simple python code
import socket
s = socket.socket(socket.AF_UNIX)
So it looks like it is a prblem with the container setup.

I am using the Raspian Buster image...
Any idea how to help me? I run out of ideas...

Many thanks,
Carsten from Germany

No previous version on Seafile configurations found, starting seafile configuration...
Enter the name of the server (3 - 15 letters or digits)
[server name ]: mycloud
Enter the domain OR ip of the server? (For example: www.mycompany.com, 192.168.1.101)
[ip or domain ]: 192.168.28.53
done
Successly create configuration dir /home/seafile/ccnet.

  • ccnet configured successfully
    Done.

  • seafile configured successfully

  • seahub configured successfully
    Operations to perform:
    Synchronize unmigrated apps: wiki, profile, group, help, api2, contacts, staticfiles, share, messages, thumbnail, options, statici18n, compressor, password_session, base, avatar, registration, message, constance, notifications, gunicorn
    Apply all migrations: termsandconditions, database, sessions, invitations, captcha, contenttypes, post_office, institutions
    Synchronizing apps without migrations:
    Creating tables...
    Creating table registration_registrationprofile
    Creating table api2_token
    Creating table api2_tokenv2
    Creating table avatar_avatar
    Creating table avatar_groupavatar
    Creating table base_filediscuss
    Creating table base_filecomment
    Creating table base_userstarredfiles
    Creating table base_userenabledmodule
    Creating table base_groupenabledmodule
    Creating table base_userlastlogin
    Creating table base_commandslastcheck
    Creating table base_innerpubmsg
    Creating table base_innerpubmsgreply
    Creating table base_devicetoken
    Creating table base_clientlogintoken
    Creating table contacts_contact
    Creating table wiki_personalwiki
    Creating table wiki_groupwiki
    Creating table group_groupmessage
    Creating table group_messagereply
    Creating table group_messageattachment
    Creating table group_publicgroup
    Creating table message_usermessage
    Creating table message_usermsglastcheck
    Creating table message_usermsgattachment
    Creating table notifications_notification
    Creating table notifications_usernotification
    Creating table options_useroptions
    Creating table profile_profile
    Creating table profile_detailedprofile
    Creating table share_anonymousshare
    Creating table share_fileshare
    Creating table share_orgfileshare
    Creating table share_uploadlinkshare
    Creating table share_privatefiledirshare
    Running deferred SQL...
    Installing custom SQL...
    Running migrations:
    Rendering model states... DONE
    Applying captcha.0001_initial... OK
    Applying contenttypes.0001_initial... OK
    Applying contenttypes.0002_remove_content_type_name... OK
    Applying database.0001_initial... OK
    Applying institutions.0001_initial... OK
    Applying invitations.0001_initial... OK
    Applying invitations.0002_invitation_invite_type... OK
    Applying invitations.0003_auto_20160510_1703... OK
    Applying invitations.0004_auto_20160629_1610... OK
    Applying invitations.0005_auto_20160629_1614... OK
    Applying post_office.0001_initial... OK
    Applying post_office.0002_add_i18n_and_backend_alias... OK
    Applying post_office.0003_longer_subject... OK
    Applying post_office.0004_auto_20160607_0901... OK
    Applying sessions.0001_initial... OK
    Applying termsandconditions.0001_initial... OK

  • seahub database synchronized successfully

  • gunicorn configured successfully
    Configuration compleated!
    Starting seafile server...

Starting seafile-server...
Starting seahub...
Seahub running on port 8000
Done
Creating administrator user:
Traceback (most recent call last):
File "seafile-server/seahub/manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/usr/lib/python2.7/site-packages/django/core/management/init.py", line 338, in execute_from_command_line
utility.execute()
File "/usr/lib/python2.7/site-packages/django/core/management/init.py", line 330, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/lib/python2.7/site-packages/django/core/management/base.py", line 390, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/lib/python2.7/site-packages/django/core/management/base.py", line 441, in execute
output = self.handle(*args, **options)
File "/home/seafile/seafile-server/seahub/seahub/base/management/commands/createsuperuser.py", line 74, in handle
User.objects.get(email=default_username)
File "/home/seafile/seafile-server/seahub/seahub/base/accounts.py", line 86, in get
emailuser = ccnet_threaded_rpc.get_emailuser(email)
File "/usr/local/lib/python2.7/site-packages/pysearpc/client.py", line 110, in newfunc
ret_str = self.call_remote_func_sync(fcall_str)
File "/usr/local/lib/python2.7/site-packages/ccnet/rpc.py", line 71, in call_remote_func_sync
client = self.pool.get_client()
File "/usr/local/lib/python2.7/site-packages/ccnet/pool.py", line 29, in get_client
client = self._create_client()
File "/usr/local/lib/python2.7/site-packages/ccnet/pool.py", line 21, in _create_client
client.connect_daemon()
File "/usr/local/lib/python2.7/site-packages/ccnet/client.py", line 131, in connect_daemon
return self.connect_daemon_with_pipe()
File "/usr/local/lib/python2.7/site-packages/ccnet/client.py", line 105, in connect_daemon_with_pipe
self._connfd = socket.socket(socket.AF_UNIX)
File "/usr/lib/python2.7/socket.py", line 191, in init
_sock = _realsocket(family, type, proto)
socket.error: [Errno 13] Permission denied

==> logs/ccnet.log <==

==> logs/controller.log <==
[01/17/20 06:37:59] seafile-controller.c(154): starting ccnet-server ...
[01/17/20 06:37:59] seafile-controller.c(73): spawn_process: ccnet-server -F /home/seafile/conf -c /home/seafile/ccnet -f /home/seafile/logs/ccnet.log -d -P /home/seafile/pids/ccnet.pid
[01/17/20 06:37:59] seafile-controller.c(88): spawned ccnet-server, pid 27
Version file found in container, checking it
Version is the same, no upgrade needed
Starting seafile server...

Starting seafile-server...
Starting seahub...
Seahub running on port 8000
Done
==> logs/ccnet.log <==

==> logs/controller.log <==
[01/17/20 06:37:59] seafile-controller.c(154): starting ccnet-server ...
[01/17/20 06:37:59] seafile-controller.c(73): spawn_process: ccnet-server -F /home/seafile/conf -c /home/seafile/ccnet -f /home/seafile/logs/ccnet.log -d -P /home/seafile/pids/ccnet.pid
[01/17/20 06:37:59] seafile-controller.c(88): spawned ccnet-server, pid 27
[01/18/20 09:57:22] seafile-controller.c(154): starting ccnet-server ...
[01/18/20 09:57:22] seafile-controller.c(73): spawn_process: ccnet-server -F /home/seafile/conf -c /home/seafile/ccnet -f /home/seafile/logs/ccnet.log -d -P /home/seafile/pids/ccnet.pid
[01/18/20 09:57:22] seafile-controller.c(88): spawned ccnet-server, pid 15

@justdoit4me justdoit4me changed the title Socket Permission Deined Error in seafile container Socket Permission Denied Error in seafile container Jan 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant