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

oC installtion failure both from command line and UI with activity app #28405

Closed
sharidas opened this issue Jul 17, 2017 · 5 comments
Closed

Comments

@sharidas
Copy link
Contributor

sharidas commented Jul 17, 2017

Steps to reproduce

  1. Below are the apps installed in my local machine:
.
├── activity
├── calendar
├── comments
├── configreport
├── contacts
├── customgroups
├── dav
├── encryption
├── external
├── federatedfilesharing
├── federation
├── files
├── files_antivirus
├── files_external
├── files_pdfviewer
├── files_sharing
├── files_texteditor
├── files_trashbin
├── files_versions
├── files_videoplayer
├── firstrunwizard
├── gallery
├── guests
├── impersonate
├── market
├── notifications
├── provisioning_api
├── systemtags
├── templateeditor
├── testing
├── theme-example
├── updatenotification
└── user_external

33 directories, 0 files
sujith@sujith-Inspiron-5567 ~/test/owncloud/apps $ ```
    The commit message : ```send 403 code when printing error page after ForbiddenException (#28378)```
3. When I try to execute maintainance install command:

sujith@sujith-Inspiron-5567 ~/test/owncloud $ rm -fr data config/config.php; ./occ maintenance:install --admin-user "admin" --admin-pass "admin";
Cannot load Xdebug - it was already loaded
ownCloud is not installed - only a limited number of commands are available
creating sqlite db

[Symfony\Component\Debug\Exception\FatalThrowableError]
Type error: Argument 2 passed to OC\Activity\Manager::__construct() must be an instance of OCP\IUserSession, null given, called in /home/sujith/test/owncloud/lib/private/Server.php on
line 406

maintenance:install [--database DATABASE] [--database-name DATABASE-NAME] [--database-host DATABASE-HOST] [--database-user DATABASE-USER] [--database-pass [DATABASE-PASS]] [--database-table-prefix [DATABASE-TABLE-PREFIX]] [--admin-user ADMIN-USER] [--admin-pass ADMIN-PASS] [--data-dir DATA-DIR]

sujith@sujith-Inspiron-5567 ~/test/owncloud $```
4. When tried to create admin user from the UI, it results in internal server error. The log file contains:
log.txt

Expected behaviour

The admin user should be created and user should be able to login.

Actual behaviour

It results in failure both from the command line as well as from the UI.

Server configuration

Operating system:

sujith@sujith-Inspiron-5567 ~/test/owncloud $ lsb_release  -a
No LSB modules are available.
Distributor ID: LinuxMint
Description:    Linux Mint 18.1 Serena
Release:        18.1
Codename:       serena
sujith@sujith-Inspiron-5567 ~/test/owncloud $

Web server:

sujith@sujith-Inspiron-5567 ~/test/owncloud $ apache2 -v
Server version: Apache/2.4.18 (Ubuntu)
Server built:   2017-06-26T11:58:04
sujith@sujith-Inspiron-5567 ~/test/owncloud $

Database:

sujith@sujith-Inspiron-5567 ~/test/owncloud $ sqlite3 --version
3.11.0 2016-02-15 17:29:24 3d862f207e3adc00f78066799ac5a8c282430a5f
sujith@sujith-Inspiron-5567 ~/test/owncloud $

PHP version:

sujith@sujith-Inspiron-5567 ~/test/owncloud $ php -v
Cannot load Xdebug - it was already loaded
PHP 7.0.18-0ubuntu0.16.04.1 (cli) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
    with Xdebug v2.4.0, Copyright (c) 2002-2016, by Derick Rethans
    with Zend OPcache v7.0.18-0ubuntu0.16.04.1, Copyright (c) 1999-2017, by Zend Technologies
sujith@sujith-Inspiron-5567 ~/test/owncloud $```

**ownCloud version:** (see ownCloud admin page)
core: master branch , commit id: 234a6315ad802d8665bcd410d850623af9929da8 , activity app : master branch: commit id => ad4761fd80951fb083022a852587c8294f44a61c
**Updated from an older ownCloud or fresh install:**
No
**Where did you install ownCloud from:**
git
**Signing status (ownCloud 9.0 and above):**

Login as admin user into your ownCloud and access
http://example.com/index.php/settings/integrity/failed
paste the results into https://gist.github.com/ and puth the link here.



**The content of config/config.php:**

Log in to the web-UI with an administrator account and click on
'admin' -> 'Generate Config Report' -> 'Download ownCloud config report'
This report includes the config.php settings, the list of activated apps
and other details in a well sanitized form.

or

If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your ownCloud installation folder

ATTENTION: Do not post your config.php file in public as is. Please use one of the above
methods whenever possible. Both, the generated reports from the web-ui and from occ config:list
consistently remove sensitive data. You still may want to review the report before sending.
If done manually then it is critical for your own privacy to dilligently
remove all host names, passwords, usernames, salts and other credentials before posting.
You should assume that attackers find such information and will use them against your systems.


**List of activated apps:**

If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your ownCloud installation folder.


**Are you using external storage, if yes which one:** local/smb/sftp/...

**Are you using encryption:** yes/no

**Are you using an external user-backend, if yes which one:** LDAP/ActiveDirectory/Webdav/...

#### LDAP configuration (delete this part if not used)

With access to your command line run e.g.:
sudo -u www-data php occ ldap:show-config
from within your ownCloud installation folder

Without access to your command line download the data/owncloud.db to your local
computer or access your SQL server remotely and run the select query:
SELECT * FROM oc_appconfig WHERE appid = 'user_ldap';

Eventually replace sensitive data as the name/IP-address of your LDAP server or groups.


### Client configuration
**Browser:**

**Operating system:**

### Logs
#### Web server error log

Insert your webserver log here


#### ownCloud log (data/owncloud.log)

Insert your ownCloud log here


#### Browser log

Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log
c) ...

@PVince81
Copy link
Contributor

where is your activity app installed if it's not in the main folder list ?

@sharidas
Copy link
Contributor Author

Updated the log. The activity app is there.

@PVince81
Copy link
Contributor

@sharidas is this still happening ?

@sharidas
Copy link
Contributor Author

No this is not happening. IIRC 6c61d4f solved the issue. Since it is not an issue anymore I am closing this issue.

@lock
Copy link

lock bot commented Aug 1, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants