Uploaded image for project: 'openATTIC'
  1. openATTIC
  2. OP-2795

`oaconfig install` may not be able to re-create the database

    XMLWordPrintable

    Details

      Description

      `oaconfig install` may not be able to re-create the database, because it may be in use.

      root@pn-seahorse /srv/openattic ±master⚡ # oaconfig install       
      Database openattic exists, owned by  openattic                    
      Reading settings from /etc/sysconfig/openattic                    
      ERROR:  database "openattic" is being accessed by other users     
      DETAIL:  There is 1 other session using the database.             
      ERROR:  database "openattic" already exists                       
      Creating tables ...              
      Installing custom SQL ...        
      Installing indexes ...           
      inserting INSERT INTO auth_user (username, first_name, last_name, is_active, email, is_superuser, is_staff, last_login, password, id, date_joined) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s);
      Reading settings from /etc/sysconfig/openattic                    
      We have an admin already, not creating default user.              
      The authentication token for 'openattic' does already exist.      
      Completed successfully.          
      root@pn-seahorse /srv/openattic ±master⚡ # 
      
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                pnawracay Nawracay, Patrick
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: