Weird error in ownCloud

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

Weird error in ownCloud

Postby gschoppe » Tue Mar 12, 2013 5:51 pm

I installed owncloud 4.5.7 on my PogoPlug E02, running nginx, PHP-FPM, and mySQL. After enabling a few extensions in php.ini, the install didn't complain, and allowed me to set up my admin user. However, when I log in, the dashboard is utterly unusable. I have attached a screenshot to show the issue:

Image

Does anyone know what could be causing this?

It seems to be failing to load resources from "remote.php/core.css" and "remote.php/core.js"
gschoppe
 
Posts: 28
Joined: Thu Feb 21, 2013 11:58 pm

Re: Weird error in ownCloud

Postby gschoppe » Tue Mar 12, 2013 6:26 pm

on the advice of some forums, I attempted to modify my nginx.conf file to accept path parameters for php files... it did not help, but here is my current nginx.conf

$this->bbcode_second_pass_code('', '
#user http;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;

events {
worker_connections 1024;
}

http {
include mime.types;
default_type application/octet-stream;
#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';
#access_log logs/access.log main;
sendfile on;
keepalive_timeout 15;
gzip on;
gzip_comp_level 1;
server {
listen 80;
server_name localhost; location ~ \.php$ {
root /srv/http;
fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/fastcgi_params;

}

location /phpmyadmin {
rewrite ^/* /phpMyAdmin last;
}

location /owncloud/data {
deny all;
return 404;
}

# handle URLs like: "/path/to/myscript.php"
location ~ ^(?<script_name>.+\.php)$ {
try_files $script_name =404;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$script_name;
fastcgi_pass unix:/tmp/php5-fpm-hom.sock;
}

# handle URLs like: "/path/to/myscript.php/with/path/info"
location ~ ^(?<script_name>.+\.php)(?<path_info>/.+)$ {
try_files $script_name =404;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$script_name;
fastcgi_param PATH_INFO $path_info;
fastcgi_param PATH_TRANSLATED $document_root$path_info;
fastcgi_pass unix:/tmp/php5-fpm-hom.sock;
}

location / {
root /srv/http;
index index.php;
}
}
}
')
gschoppe
 
Posts: 28
Joined: Thu Feb 21, 2013 11:58 pm

Re: Weird error in ownCloud

Postby grayman4hire » Wed Mar 13, 2013 6:53 pm

I actually installed owncloud last night on my CentOS server (with apache) and have the same issue, but only via https. The regular site works fine. Didn't have a chance to troubleshoot it yet. Please keep us updated.

[Edit] - actually I'm having the exact same issue on the http site now too.
[Edit2] - adding "DEFINE("DEBUG", true);" line to the config.php helped, but not totally resolved.

Also, can you share your steps you followed to get owncloud running on ALARM? I attempted to do the same, but didn't make much progress. Would love to reproduce your issue :)
grayman4hire
 
Posts: 350
Joined: Sat Sep 29, 2012 12:03 am
Location: SF, CA

Re: Weird error in ownCloud

Postby grayman4hire » Thu Mar 14, 2013 7:55 pm

Alright, I was able to reproduce your issue running owncloud on the PogoPlug with nginx, php-fpm and sqlite (using your nginx config file, thanks!).

I added the "DEFINE("DEBUG", true); line to the config.php file and it resolved the display issue (all of it, unlike on my CentOS system). However, I believe this is only a workaround and impacts functionality (WEBDAV, I believe).

$this->bbcode_second_pass_quote('', '
')?php
DEFINE("DEBUG", true);
$CONFIG = array (
'instanceid' => '514161ab872dd',
'passwordsalt' => '0g3po0hmncevss7pyisflx5gawcojk',
'datadirectory' => '/srv/http/owncloud/data',
'dbtype' => 'sqlite3',
'version' => '4.90.8',
'installed' => true,
);


I had some issues creating/moving the data folder, so for now its under the owncloud folder. At this point I'm happy owncloud is loading.

Things to do:
1) figure out correct solution for display issue [ Edit - no need for DEBUG line anymore, a good nginx config resolved it]
2) move data folder to more appropriate location
3) enable ssl [Edit - enabled and working using new ngnix configuration]
4) document the process
grayman4hire
 
Posts: 350
Joined: Sat Sep 29, 2012 12:03 am
Location: SF, CA


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 15 guests