haiwen / seafile-docker

A Docker image for Seafile server
Other
544 stars 184 forks source link

Wrong folders used in start.py #168

Closed languitar closed 5 years ago

languitar commented 5 years ago

The current CE image for 7.0.3 doesn't start correctly as it tries to create an admin.txt file in a folder that obviously doesn't exist inside the container:

seafile      | *** Running /etc/my_init.d/01_create_data_links.sh...                                                                  
seafile      | *** Running /etc/my_init.d/10_syslog-ng.init...                                               
seafile      | Jul 28 12:26:19 37a5da4947c5 syslog-ng[24]: syslog-ng starting up; version='3.13.2'                                           
seafile      | *** Booting runit daemon...                                                                                            
seafile      | *** Runit started as PID 30                                                                                                                 
seafile      | *** Running /scripts/start.py...                                                                                       
seafile      | Jul 28 12:26:19 37a5da4947c5 cron[35]: (CRON) INFO (pidfile fd = 3)                                                    
seafile      | Jul 28 12:26:19 37a5da4947c5 cron[35]: (CRON) INFO (Skipping @reboot jobs -- not system startup)                       
seafile      | [2019-07-28 12:26:19] Skip running setup-seafile-mysql.py because there is existing seafile-data folder.               
seafile      | [07/28/2019 12:26:19][upgrade]: The container was recreated, running minor-upgrade.sh to fix the media symlinks              
seafile      | [07/28/2019 12:26:19][upgrade]: Running script /opt/seafile/seafile-server-7.0.3/upgrade/minor-upgrade.sh              
seafile      |                                                                                                                              
seafile      | -------------------------------------------------------------                                                  
seafile      | This script would do the minor upgrade for you.                                                                        
seafile      | Press [ENTER] to contiune                                                                                                    
seafile      | -------------------------------------------------------------                                                  
seafile      |                                                                                                             
seafile      |                                                                                                             
seafile      | ------------------------------                                                                        
seafile      | migrating avatars ...                                                                                        
seafile      |                                                                                                               
seafile      |                                                                                                         
seafile      | DONE                                       
seafile      | ------------------------------                                                                           
seafile      |                                                                                                                        
seafile      |                                                                                                                               
seafile      | updating seafile-server-latest symbolic link to /opt/seafile/seafile-server-7.0.3 ...                                  
seafile      |                                                                                                                        
seafile      | DONE                                                                                                                   
seafile      | ------------------------------                                                                                                                                                                                                                                              
seafile      |                                                                                                                                                                                                                                                                             
seafile      | Traceback (most recent call last):                                                                                                                                                                                                                                          
seafile      |   File "/scripts/start.py", line 86, in <module>                                                                                                                                                                                                                            
seafile      |     main()                                                                                                                                                                                                                                                                  
seafile      |   File "/scripts/start.py", line 66, in main                                                                                 
seafile      |     with open(password_file, 'w') as fp:                                                                                     
seafile      | IOError: [Errno 2] No such file or directory: '/opt/seafile/conf/admin.txt'                                                  
seafile      | *** /scripts/start.py exited with status 1.                                                                                  
seafile      | *** Shutting down runit daemon (PID 30)...                                                                                                                                                                                                                               
seafile      | *** Running /etc/my_init.post_shutdown.d/10_syslog-ng.shutdown...                                                            
seafile      | Jul 28 12:26:19 37a5da4947c5 syslog-ng[24]: syslog-ng shutting down; version='3.13.2'                                                                                                                                                                                    
seafile      | *** Killing all processes...
languitar commented 5 years ago

Why was this closed?

renfeipeng commented 5 years ago

This is not a code related issue, you can go to our forum for more help. https://forum.seafile.com