core icon indicating copy to clipboard operation
core copied to clipboard

Empty "apps" after ugrading from 7.0.4 to 8.0.0

Open andre-dierker opened this issue 11 years ago • 31 comments

Hello

after upgrading owncloud to 8.0 I'm not able to activate any apps it's just a nice white screen. selection_014

when accessing "apps" page owncloud is throwing this error in logs

{"reqId":"eb6b4bf15bf89d986f3f36a45ba0846b","remoteAddr":"178.12.227.XXX","app":"PHP","message":"Undefined variable: app at \/var\/www\/oc\/settings\/controller\/appsettingscontroller.php#175","level":3,"time":"2015-02-13T07:38:02+00:00"}

I think while upgrade process all 3rd party apps were disabled

OS: debian wheezy Webserver: nginx version: nginx/1.7.9 php: PHP 5.5.21-1~dotdeb.1 (cli) (built: Feb 1 2015 19:51:51)

regards Andre

$ $ php occ app:list
Enabled:
 - activity
 - files
 - files_encryption
 - files_external
 - files_pdfviewer
 - files_sharing
 - files_texteditor
 - files_trashbin
 - files_versions
 - files_videoviewer
 - firstrunwizard
 - templateeditor
 - updater
Disabled:
 - calendar
 - contacts
 - external
 - files_locking
 - gallery
 - provisioning_api
 - tasks
 - user_external
 - user_ldap
 - user_webdavauth

andre-dierker avatar Feb 13 '15 07:02 andre-dierker

Can you try again please? We had a problem with ssl certs on the website.

karlitschek avatar Feb 15 '15 19:02 karlitschek

Still the same. Now some not core apps are enabled.

andre-dierker avatar Feb 16 '15 08:02 andre-dierker

Same problem here. I find out, that the cache seems to be corrupted. In the log file the following error occurs:

array_map(): Argument #2 should be an array at /var/www/owncloud/web/settings/controller/appsettingscontroller.php#175

When I false the cache check at the beginning of the function, I got the app list. But after re-enable the cache, the list is empty again...

tristanlins avatar Feb 17 '15 07:02 tristanlins

same issue for me, did you find any way to install apps ?

fheslouin avatar Mar 10 '15 22:03 fheslouin

No, seems we have to wait for 8.1.

andre-dierker avatar Mar 11 '15 10:03 andre-dierker

do you test again with 8.0.2 and if not post the error message in the logfile? thanks

karlitschek avatar Mar 15 '15 21:03 karlitschek

I tested again with 8.0.2 after internal update. same issue

{"reqId":"f12ca4733652e585afbefb3be89ca5d9","remoteAddr":"","app":"PHP","message":"array_map(): Argument #2 should be an array at /var/www/oc/settings/controller/appsettingscontroller.php#175","level":3,"time":"2015-03-16T06:44:59+00:00"}

{"reqId":"1257e2a784920af0b1627f86298efef4","remoteAddr":"","app":"PHP","message":"Only variables should be passed by reference at /var/www/oc/lib/private/cache/fileglobalgc.php#50","level":3,"time":"2015-03-16T06:45:01+00:00"}

nothing else in the logfiles

andre-dierker avatar Mar 16 '15 06:03 andre-dierker

For me the 8.0.2 fixed the problem :-)

tristanlins avatar Mar 16 '15 18:03 tristanlins

Same bug. Clean install. Php 5.6. https connection, but fails with http also. array_map(): Argument #2 should be an array at /home/apagada/public_html/owncloud/settings/controller/appsettingscontroller.php#175

The line 175 is the last line of this array_map definition. [code]

$apps = array_map(function($app) use ($dependencyAnalyzer) {

      // fix groups
      $groups = array();
      if (is_string($app['groups'])) {
          $groups = json_decode($app['groups']);
      }
      $app['groups'] = $groups;
      $app['canUnInstall'] = !$app['active'] && $app['removable'];

      // fix licence vs license
      if (isset($app['license']) && !isset($app['licence'])) {
          $app['licence'] = $app['license'];
      }

      // analyse dependencies
      $missing = $dependencyAnalyzer->analyze($app);
      $app['canInstall'] = empty($missing);
      $app['missingDependencies'] = $missing;

      return $app;
  }, $apps);

If i insert a trigger_error("\$apps value: ".var_export($apps,true)); in line 155, I obtain:

Error PHP $apps value: false at /home/apagada/public_html/owncloud/settings/controller/appsettingscontroller.php#155

So it seems $apps is never created as an array. As first definition of $apps depends on "cache", i will investigate the cache object.

jgmy avatar Mar 16 '15 21:03 jgmy

Does anyone fix this problem ?

nedimhx avatar Apr 24 '15 21:04 nedimhx

Can´t reproduce. Can you test with a clean new 8.0.3 install?

karlitschek avatar May 04 '15 18:05 karlitschek

A clean install with 8.0.3 did not help. After changing the hardware with completely the same data (configs, userdata, webserver binaries, caches, ..) it works.

andre-dierker avatar May 04 '15 19:05 andre-dierker

Oh, sorry I overlook the version. I can't do a clean install with 8.0.3 because I have changed the hardware.

andre-dierker avatar May 04 '15 19:05 andre-dierker

and back after internal update from 8.0.2 to 8.0.3

andre-dierker avatar May 04 '15 19:05 andre-dierker

I tested with a new installation of OC 8.0, 8.1, 8.2 and 8.3 but I always make the same mistake, but version 7 works perfectly. I don't use SSL and i have this error php : array_map(): Argument #2 should be an array at _HIDE_/htdocs/settings/controller/appsettingscontroller.php#175

I do not know my Apache but I use PHP 5.5 i post into information for apache and php.... It's realy strange

========== APACHE ========= <VirtualHost *:80> ServerAdmin postmaster@owncloud._HIDE.fr SuexecUserGroup _HIDE _HIDE_ DocumentRoot /datas/vol1/_HIDE/var/www/owncloud._HIDE.fr/htdocs ServerName owncloud._HIDE.fr ServerAlias ftp.owncloud._HIDE.fr www.owncloud.HIDE.fr LogLevel error ErrorLog /datas/log/apache2-vhosts/owncloud._HIDE.fr-error.log CustomLog /datas/log/apache2-vhosts/owncloud._HIDE.fr-combined.log combined Redirect /stats http://owncloud.HIDE.fr/awstats/awstats.pl # NO FW Alias /errors /datas/vol1/_HIDE/var/www/owncloud._HIDE.fr/errors ErrorDocument 401 /errors/401.php ErrorDocument 403 /errors/403.php ErrorDocument 404 /errors/404.php ErrorDocument 500 /errors/500.php ScriptAlias /awstats /opt/wrapper/awstats/ ScriptAlias /cgi-bin /datas/vol1/_HIDE/var/www/owncloud._HIDE.fr/cgi-bin <Directory /opt/wrapper/awstats/> Options ExecCGI AddHandler cgi-script .pl AllowOverride AuthConfig Order allow,deny Allow from all AuthType Basic AuthName Statistiques AuthUserFile /datas/vol1/_HIDE/var/awstats/owncloud._HIDE.fr/owncloud._HIDE.fr.pwd Require valid-user <Directory /datas/vol1/HIDE/var/www/owncloud.HIDE.fr/cgi-bin> Options ExecCGI AddHandler cgi-script .pl .fcgi .cgi AllowOverride AuthConfig Order allow,deny Allow from all <Directory /datas/vol1/HIDE/var/www/owncloud.HIDE.fr/htdocs> AddHandler fcgid-script .php FCGIWrapper "/opt/wrapper/php _HIDE php55 owncloud._HIDE.fr" .php Options ExecCGI -Indexes Includes FollowSymLinks MultiViews AllowOverride All Order allow,deny Allow from all <Directory /datas/vol1/HIDE/var/www/owncloud.HIDE.fr/errors> AddHandler fcgid-script .php FCGIWrapper "/opt/wrapper/php _HIDE php55 owncloud._HIDE_.fr" .php Options ExecCGI -Indexes Includes FollowSymLinks MultiViews AllowOverride All Order allow,deny Allow from all

<VirtualHost *:443> ServerAdmin postmaster@owncloud._HIDE.fr SuexecUserGroup _HIDE _HIDE_ DocumentRoot /datas/vol1/_HIDE/var/www/owncloud._HIDE.fr/htdocs ServerName owncloud._HIDE.fr ServerAlias ftp.owncloud._HIDE.fr www.owncloud.HIDE.fr LogLevel error ErrorLog /datas/log/apache2-vhosts/owncloud._HIDE.fr-error.log CustomLog /datas/log/apache2-vhosts/owncloud._HIDE.fr-combined.log combined Redirect /stats https://owncloud.HIDE.fr/awstats/awstats.pl SetEnv HTTPS on Alias /errors /datas/vol1/_HIDE/var/www/owncloud._HIDE.fr/errors ErrorDocument 401 /errors/401.php ErrorDocument 403 /errors/403.php ErrorDocument 404 /errors/404.php ErrorDocument 500 /errors/500.php ScriptAlias /awstats /opt/wrapper/awstats/ ScriptAlias /cgi-bin /datas/vol1/_HIDE/var/www/owncloud._HIDE.fr/cgi-bin <Directory /opt/wrapper/awstats/> Options ExecCGI AddHandler cgi-script .pl AllowOverride AuthConfig Order allow,deny Allow from all AuthType Basic AuthName Statistiques AuthUserFile /datas/vol1/_HIDE/var/awstats/owncloud._HIDE.fr/owncloud._HIDE.fr.pwd Require valid-user <Directory /datas/vol1/HIDE/var/www/owncloud.HIDE.fr/cgi-bin> Options ExecCGI AddHandler cgi-script .pl .fcgi .cgi AllowOverride AuthConfig Order allow,deny Allow from all <Directory /datas/vol1/HIDE/var/www/owncloud.HIDE.fr/htdocs> AddHandler fcgid-script .php FCGIWrapper "/opt/wrapper/php _HIDE php55 owncloud._HIDE.fr" .php Options ExecCGI -Indexes Includes FollowSymLinks MultiViews AllowOverride All Order allow,deny Allow from all <Directory /datas/vol1/HIDE/var/www/owncloud.HIDE.fr/errors> AddHandler fcgid-script .php FCGIWrapper "/opt/wrapper/php _HIDE php55 owncloud._HIDE_.fr" .php Options ExecCGI -Indexes Includes FollowSymLinks MultiViews AllowOverride All Order allow,deny Allow from all

========= PHP.INI =========== [PHP] engine = On zend.ze1_compatibility_mode = Off short_open_tag = On asp_tags = Off precision = 12 y2k_compliance = On output_buffering = Off zlib.output_compression = Off implicit_flush = Off unserialize_callback_func= serialize_precision = 100 disable_functions = disable_classes = expose_php = On max_execution_time = 60 ; Maximum execution time of each script, in seconds max_input_time = 1000 ; Maximum amount of time each script may spend parsing request data max_input_vars = 10000 memory_limit = 128M ; Maximum amount of memory a script may consume (128MB) error_reporting = E_ALL & ~E_NOTICE display_errors = On display_startup_errors = Off log_errors = Off log_errors_max_len = 1024 ignore_repeated_errors = Off ignore_repeated_source = Off report_memleaks = On track_errors = Off variables_order = "EGPCS" register_globals = Off register_argc_argv = On auto_globals_jit = On post_max_size = 64M auto_prepend_file = auto_append_file = default_mimetype = "text/html" doc_root = user_dir = cgi.fix_pathinfo = 1 extension_dir = "/opt/alt/php55/usr/lib64/php/modules" include_path=".:/opt/alt/php55/usr/share/pear" extension=memcache.so extension=memcached.so extension=ssh2.so extension=fileinfo.so extension=mysqli.so extension=mysql.so extension=bcmath.so extension=dba.so extension=dom.so extension=gd.so extension=imagick.so extension=imap.so extension=json.so extension=ldap.so extension=mbstring.so extension=mcrypt.so
extension=pdo.so extension=pdo_mysql.so extension=pdo_odbc.so extension=pdo_pgsql.so extension=pdo_sqlite.so extension=posix.so extension=soap.so extension=wddx.so extension=xmlreader.so extension=xmlrpc.so extension=xmlwriter.so extension=zip.so extension=sysvmsg.so extension=sysvsem.so
extension=sysvshm.so extension=uploadprogress.so extension=phar.so extension=xsl.so extension=timezonedb.so ;zend_extension="/opt/alt/php55/usr/lib64/php/ioncube/ioncube_loader_lin_5.4.so" enable_dl = Off file_uploads = On upload_tmp_dir =/tmp upload_max_filesize = 64M max_file_uploads = 20 allow_url_fopen = On allow_url_include = Off default_socket_timeout = 60 mail.force_extra_parameters = -fowncloud._HIDE_.fr [Date] date.timezone = "Europe/Paris" [filter] [iconv] [sqlite] [xmlrpc] [Pcre] [Syslog] define_syslog_variables = Off [mail function] SMTP = localhost smtp_port = 25 sendmail_path = /usr/sbin/sendmail -t -i [SQL] sql.safe_mode = Off [ODBC] odbc.allow_persistent = On odbc.check_persistent = On odbc.max_persistent = -1 odbc.max_links = -1 odbc.defaultlrl = 4096 odbc.defaultbinmode = 1 [MySQL] mysql.allow_persistent = On mysql.max_persistent = -1 mysql.max_links = -1 mysql.default_port = mysql.default_socket = mysql.default_host = mysql.default_user = mysql.default_password = mysql.connect_timeout = 60 mysql.trace_mode = Off [MySQLi] mysqli.max_links = -1 mysqli.default_port = 3306 mysqli.default_socket = mysqli.default_host = mysqli.default_user = mysqli.default_pw = mysqli.reconnect = Off [mSQL] msql.allow_persistent = On msql.max_persistent = -1 msql.max_links = -1 [OCI8] [PostgresSQL] pgsql.allow_persistent = On pgsql.auto_reset_persistent = Off pgsql.max_persistent = -1 pgsql.max_links = -1 pgsql.ignore_notice = 0 pgsql.log_notice = 0 [Sybase] sybase.allow_persistent = On sybase.max_persistent = -1 sybase.max_links = -1 sybase.min_error_severity = 10 sybase.min_message_severity = 10 sybase.compatability_mode = Off [Sybase-CT] sybct.allow_persistent = On sybct.max_persistent = -1 sybct.max_links = -1 sybct.min_server_severity = 10 sybct.min_client_severity = 10 [bcmath] bcmath.scale = 0 [browscap] [Informix] ifx.default_host = ifx.default_user = ifx.default_password = ifx.allow_persistent = On ifx.max_persistent = -1 ifx.max_links = -1 ifx.textasvarchar = 0 ifx.byteasvarchar = 0 ifx.charasvarchar = 0 ifx.blobinfile = 0 ifx.nullformat = 0 [Session] session.save_handler = files session.save_path = /var/lib/php5/ session.use_cookies = 1 session.name = PHPSESSID session.auto_start = 0 session.cookie_lifetime = 0 session.cookie_path = / session.cookie_domain = session.cookie_httponly = session.serialize_handler = php session.gc_divisor = 100 session.gc_maxlifetime = 1440 session.bug_compat_42 = 1 session.bug_compat_warn = 1 session.referer_check = session.entropy_length = 0 session.entropy_file = session.cache_limiter = nocache session.cache_expire = 180 session.use_trans_sid = 0 session.hash_function = 0 session.hash_bits_per_character = 4 url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset=" [MSSQL] mssql.allow_persistent = On mssql.max_persistent = -1 mssql.max_links = -1 mssql.min_error_severity = 10 mssql.min_message_severity = 10 mssql.compatability_mode = Off mssql.secure_connection = Off [Assertion] [COM] [mbstring] [FrontBase] [gd] [exif] [Tidy] tidy.clean_output = Off [soap] soap.wsdl_cache_enabled=1 soap.wsdl_cache_dir="/tmp" soap.wsdl_cache_ttl=86400 realpath_cache_size=1024k realpath_cache_ttl=7200

Percherie avatar May 09 '15 10:05 Percherie

Clean 8.0.3 install. The error persists. PHP 5.6.8

PHP Version 5.6.8 EDIT: The error disappears when I disable "memcached" php module. I NEED this module for another script running in the same virtual server. "Memcache" and "opcache" work fine.

jgmy avatar May 10 '15 12:05 jgmy

Had another user at the forums which is confirming that disabling "memcached" fixes this:

https://forum.owncloud.org/viewtopic.php?f=31&t=26364&start=20#p87105

@karlitschek @DeepDiver1975 Maybe re-open this?

ghost avatar May 13 '15 07:05 ghost

Here, disabling memcached fixes it too. Memcache and OPcache are working fine.

andre-dierker avatar May 13 '15 08:05 andre-dierker

So you folks are all using memcached? – Again a call for https://github.com/owncloud/core/issues/14950#issue-62364131 as we are apparently supporting stuff that nobody tests :see_no_evil:

LukasReschke avatar May 13 '15 08:05 LukasReschke

Is it possible to disable memcache in owncloud options? I am on a shared host and I do not know how to disable it

Percherie avatar May 14 '15 08:05 Percherie