PlugUI is out for testing!

Arch Linux ARM announcements, news, and other important things are posted here.

Re: PlugUI is out for testing!

Postby ddggdd » Wed Mar 07, 2012 1:09 am

I got this error after install

500 Error: failed to locate view "core.html"

at Function.compile (/usr/lib/node_modules/express/lib/view.js:61:15)
at ServerResponse._render (/usr/lib/node_modules/express/lib/view.js:417:18)
at ServerResponse.render (/usr/lib/node_modules/express/lib/view.js:318:17)
at /opt/PlugUI/server.js:89:6
at callbacks (/usr/lib/node_modules/express/lib/router/index.js:272:11)
at param (/usr/lib/node_modules/express/lib/router/index.js:246:11)
at pass (/usr/lib/node_modules/express/lib/router/index.js:253:5)
at Router._dispatch (/usr/lib/node_modules/express/lib/router/index.js:280:4)
at Object.handle (/usr/lib/node_modules/express/lib/router/index.js:45:10)
at next (/usr/lib/node_modules/express/node_modules/connect/lib/http.js:203:15)
ddggdd
 
Posts: 2
Joined: Sun Mar 04, 2012 8:41 pm

Re: PlugUI is out for testing!

Postby ddggdd » Thu Mar 08, 2012 1:55 am

solved my own problem

in server.js line 67, after the app.set("view options"... line
add one line of code
$this->bbcode_second_pass_code('', 'app.set("views", __dirname + '/views');')
ddggdd
 
Posts: 2
Joined: Sun Mar 04, 2012 8:41 pm

Re: PlugUI is out for testing!

Postby hpglow » Thu Mar 08, 2012 4:47 am

I get a 403 error when trying to log in. I'm not sure if this is just my stupidity or if I should post it to gethub.

It says CSRF varifacation failed. Reason given: No CSRF or session cookie.

Here is a copy and paste of the error i get in the browser window:
$this->bbcode_second_pass_code('', 'Help

Reason given for failure:
No CSRF or session cookie.

In general, this can occur when there is a genuine Cross Site Request Forgery, or when Django's CSRF mechanism has not been used correctly. For POST forms, you need to ensure:
•The view function uses RequestContext for the template, instead of Context.
•In the template, there is a {% csrf_token %} template tag inside each POST form that targets an internal URL.
•If you are not using CsrfViewMiddleware, then you must use csrf_protect on any views that use the csrf_token template tag, as well as those that accept the POST data.

You're seeing the help section of this page because you have DEBUG = True in your Django settings file. Change that to False, and only the initial error message will be displayed.

You can customize this page using the CSRF_FAILURE_VIEW setting.
')

I am not very good with web servers, and services and what not. So if someone could tell me what I am missing, or what needs installing I would appreceate it.
hpglow
 
Posts: 25
Joined: Sun Mar 04, 2012 6:46 pm

Re: PlugUI is out for testing!

Postby WarheadsSE » Thu Mar 08, 2012 1:26 pm

I think this is going to become a moot point soon enough, as it is being migrated to node.js
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: PlugUI is out for testing!

Postby hpglow » Thu Mar 08, 2012 7:09 pm

$this->bbcode_second_pass_quote('WarheadsSE', 'I') think this is going to become a moot point soon enough, as it is being migrated to node.js


Gotcha, I guess I will uninstall it and wait for the next version and try again. I thought this would be easier than doing it all from the CLI but I was wrong. I spent way more time trying to get plugui working than I did just installing samba and minidlna manually. I'm actually just trying to figure out a way to make a nice easy NAS setup with Arch for people afraid of the command line.
hpglow
 
Posts: 25
Joined: Sun Mar 04, 2012 6:46 pm

Re: PlugUI is out for testing!

Postby WarheadsSE » Thu Mar 08, 2012 8:20 pm

That's the goal of plugUI :)
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: PlugUI is out for testing!

Postby matjaz » Tue Apr 03, 2012 6:40 pm

I'm trying to get the PlugUI working, but this thing is bugging me. I don't know anything about node, so I have no idea what to do.

When I try to launch the server, I get this:

$this->bbcode_second_pass_code('', '[root@Magneto PlugUI]# node server.js

node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Cannot find module 'connect-form'
at Function._resolveFilename (module.js:332:11)
at Function._load (module.js:279:25)
at Module.require (module.js:354:17)
at require (module.js:370:17)
at Object.<anonymous> (/opt/PlugUI/server.js:12:12)
at Module._compile (module.js:441:26)
at Object..js (module.js:459:10)
at Module.load (module.js:348:31)
at Function._load (module.js:308:12)
at Array.0 (module.js:479:10)')

When I try to install connect-form with npm, I get this:
$this->bbcode_second_pass_code('', '[root@Magneto PlugUI]# npm install connect-form
npm http GET https://registry.npmjs.org/connect-form
npm http 304 https://registry.npmjs.org/connect-form
npm http GET https://registry.npmjs.org/formidable
npm http 304 https://registry.npmjs.org/formidable
connect-form@0.2.1 ./node_modules/connect-form
âââ formidable@1.0.9')

But when I try to start the server again, the same error as before is shown. I have no idea. :)

PS: I tried starting the server with rc.d, but it did not start, that's why I tried with node and got those errors.
matjaz
 
Posts: 37
Joined: Thu Jan 05, 2012 11:00 pm

Re: PlugUI is out for testing!

Postby WarheadsSE » Tue Apr 03, 2012 7:15 pm

cd into the PlugUI

npm install

This will pull down the packages it needs.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: PlugUI is out for testing!

Postby matjaz » Tue Apr 03, 2012 9:17 pm

Did what was recommended, connect-form is still missing.
matjaz
 
Posts: 37
Joined: Thu Jan 05, 2012 11:00 pm

Re: PlugUI is out for testing!

Postby geoffsmcdonald » Sun Apr 29, 2012 9:33 pm

Sorry to post her. Couldn't find the issues page since the link was broken

Installed Plugui and tried to login for the first time, but got an error:

$this->bbcode_second_pass_code('', '
ImproperlyConfigured at /users/createdefaultuser
Module "django.core.context_processors" does not define a "auth" callable request processor

Python Path:

['/opt/PlugUI',
'/usr/lib/python27.zip',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-linux2',
'/usr/lib/python2.7/lib-tk',
'/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload',
'/usr/lib/python2.7/site-packages',
'/opt']

Environment:


Request Method: GET
Request URL: http://192.168.1.170/users/createdefaultuser

Django Version: 1.4
Python Version: 2.7.3
Installed Applications:
('django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'users',
'privateapi',
'system',
'files',
'apps',
'home')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware')


Traceback:
File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
111. response = callback(request, *callback_args, **callback_kwargs)
File "/opt/PlugUI/users/views.py" in createdefaultuser
73. return render_to_response('users/createdefaultuser.html', { 'form': form, }, context_instance=RequestContext(request))
File "/usr/lib/python2.7/site-packages/django/template/context.py" in __init__
175. for processor in get_standard_processors() + processors:
File "/usr/lib/python2.7/site-packages/django/template/context.py" in get_standard_processors
155. raise ImproperlyConfigured('Module "%s" does not define a "%s" callable request processor' % (module, attr))

Exception Type: ImproperlyConfigured at /users/createdefaultuser
Exception Value: Module "django.core.context_processors" does not define a "auth" callable request processor
')

Found this error message on a stackoverflow related to the Django version on the host vs. client, but I don't know if that's the reason.

http://stackoverflow.com/questions/7470 ... ble-reques

Any ideas?
geoffsmcdonald
 
Posts: 7
Joined: Sat Mar 24, 2012 4:58 pm

PreviousNext

Return to Announcements

Who is online

Users browsing this forum: No registered users and 6 guests