Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

test installation 0.6.0rc1

63 views
Skip to first unread message

Jean Elchinger

unread,
Oct 23, 2012, 10:02:53 AM10/23/12
to new...@googlegroups.com
Hi,

Today I had some time, and decided to install newebe for myself (and later promote it to my friends and family).

I followed the installation steps at http://newebe.org/#install but I got stuck at step 4: Create a newebe user and prepare newebe folders.
I'm using kubuntu 12.04
sudo useradd --password-disabled --shell=/bin/bash newebe

useradd: unrecognised option '--password-disabled'
Usage: useradd [options] LOGIN

I didn't go any further, I would like to know what option I should give to useradd.
Many thanks for your great work.

Jean

Franz

unread,
Oct 23, 2012, 10:29:32 AM10/23/12
to new...@googlegroups.com
Hi Jean,

The right command line is :
sudo adduser --disabled-password --shell=/bin/bash newebe
Thx for that remark, I will modify the website soon.

Frank


2012/10/23 Jean Elchinger <jean.el...@gmail.com>



--
Franz

Beburlesque.com

Responsable Technique




Message has been deleted

Jean Elchinger

unread,
Oct 23, 2012, 4:13:54 PM10/23/12
to new...@googlegroups.com, fr...@beburlesque.com
Ok thanks, I continued with your command

/home% sudo adduser --disabled-password --shell=/bin/bash newebe
Adding user `newebe' ...
Adding new group `newebe' (1001) ...
Adding new user `newebe' (1001) with group `newebe' ...
Creating home directory `/home/newebe' ...
Copying files from `/etc/skel' ...
Changing the user information for newebe
Enter the new value, or press ENTER for the default
        Full Name []:
        Room Number []:
        Work Phone []:
        Home Phone []:
        Other []:
Is the information correct? [Y/n]

/home% su newebe
Password:
su: Authentication failure


What should the default password be as we passed the disabled-password parameter?
Should I continue with sudo instead of su?

Franz

unread,
Oct 23, 2012, 4:38:14 PM10/23/12
to new...@googlegroups.com
You need to use newebe user to do the rest of the install. Could you try:

sudo su newebe

?

2012/10/23 Jean Elchinger <jean.el...@gmail.com>

Jean Elchinger

unread,
Oct 23, 2012, 4:55:07 PM10/23/12
to new...@googlegroups.com, fr...@beburlesque.com
Thanks, sudo su newebe worked, I didn't think to do that.
Ooops another error, did I miss something? I followed step 4 to step 7 with no problem.
At the end of step 8 it says: "Check that everything is fine via your web browser : go to the URL https://ip:port/"
What ip and port is it? Localhost, I guess? I already have an apache webserver running, is it possible to have a conflict?

/home% sudo supervisorctl start newebe      
newebe: ERROR (no such process)

/home% cat /etc/supervisor/conf.d/newebe.conf
[program:newebe]
autorestart=false
command=newebe_server.py --configfile=/home/newebe/newebe/config.yaml
redirect_stderr=true
user=newebe

/home% cat /home/newebe/newebe/config.yaml  
main:
    port: 8000
    debug: False
    timezone: "Europe/Paris"
    path: "/home/newebe/newebe/"
security:
    cookie_key: "inDsA7OrzgFDdVXtcs8W531zYfw1vWEbbA0I_b7yHO2MaUjaXwtr"
    certificate: "/home/newebe/newebe/certs/server.crt"
    private_key: "/home/newebe/newebe/certs/server.key"
db:
    name: "newebe"
    uri: "http://127.0.0.1:5984"


Frank

unread,
Oct 24, 2012, 4:50:22 AM10/24/12
to new...@googlegroups.com
I forgot to mention this line :

sudo supervisorctl update

Frank

unread,
Oct 24, 2012, 5:07:43 AM10/24/12
to new...@googlegroups.com
Port
  • The port is used to identify an application listening to incoming requests on your computer.
  • => Two applications cannot use the same port on the same computer.
  • About Apache, it should not cause any problem, because most of the time it runs on port 80 and your Newebe is configured to run on port 8000.
Ip

Your local IP is "localhost" or 127.0.0.1.

Check Newebe

To check if your newebe runs well, you must go to this URL through your browser :
https://localhost:8000/

How Newebes communicates

Newebes use this couple (ip + port) to communicate with each other. Just like you connect to your newebe by sending HTTP requests to a newebe through your browser, the newebes sends to each other HTTP requests with data.
So if you want to use Newebe with others, it requires that it is accessible from outside, from internet. For a better usage your Newebe should be run on a private server with a static IP.

Frank


Le 23/10/2012 22:55, Jean Elchinger a écrit :

Jean Elchinger

unread,
Oct 24, 2012, 8:05:49 AM10/24/12
to new...@googlegroups.com
Hi,

I successfully installed newebe on my laptop with your help. I saw that you updated the installation page, there is just the line with the useradd that needs to be changed.

Now, I tried to install it on my vKS at OVH on debian 6. So I followed all the steps with your notes.
Couchdb is running smoothly, the installation worked well until the end. Just when I start newebe, it got stuck.

~% sudo supervisorctl update
~% sudo supervisorctl start newebe
newebe: ERROR (no such file)
~% sudo supervisorctl stop newebe
newebe: ERROR (not running)
~% sudo supervisorctl restart newebe
newebe: ERROR (not running)
newebe: ERROR (no such file)

When I acces my server at https://37.59.125.160:8000/ there is the error message:
Connection closed by remote server
Check that the address is spelled correctly, or try searching for the site.

What can I do to know where the problem comes from?

I hope that helps to get a better installation process for other...

Frank

unread,
Oct 24, 2012, 8:49:29 AM10/24/12
to new...@googlegroups.com
For sure your mails help a lot. I changed the installation process for
the 0.6.0 release, that's not a surprise that mistakes appeared.

About your problem it requires an in-depth inspection, I have to run all
the install in a fresh virtual machine. So I won't be able to do that
until tonight. I will answer you at this time.

About remote installation, using the fabfile is better :


apt-get install python python-setuptools python-pip
pip install fabric fabtools
wget https://raw.github.com/gelnior/newebe/master/deploy/fabfile.py --no-check-certificate
fab setup -H myrootuser@myhosturlorip

In your case try to replace last line by :

fabset_supervisord_config -H myrootuser@myhosturlorip

Frank

unread,
Oct 24, 2012, 8:53:03 AM10/24/12
to new...@googlegroups.com
I mean :

fab set_supervisord_config -H myrootuser@myhosturlorip

Jean Elchinger

unread,
Oct 24, 2012, 9:11:46 AM10/24/12
to new...@googlegroups.com
I did the remote install:

~% fab set_supervisord_config  -H root...@89.93.xx.xx
[root...@89.93.xx.xx] Executing task 'set_supervisord_config'
[root...@89.93.xx.xx] Login password for 'myrootuser':
[root...@89.93.xx.xx] out: sudo password:
[root...@89.93.xx.xx] sudo: supervisorctl update
[root...@89.93.xx.xx] out: sudo password:
[root...@89.93.xx.xx] out: newebe: stopped
[root...@89.93.xx.xx] out: newebe: updated process group

[root...@89.93.xx.xx] sudo: supervisorctl start newebe
[root...@89.93.xx.xx] out: sudo password:
[root...@89.93.xx.xx] out: newebe: ERROR (already started)


Done.
Disconnecting from 89.93.xx.xx... done.

But the message is the same at https://37.59.125.160:8000/

Connection closed by remote server
Check that the address is spelled correctly, or try searching for the site.


I am happy to help. It is not urgent.
Just for my knowledge, when using fabfile, is it mandatory to have newebe installed first on my laptop (for example) in order to be able to install it on remote?
And once installed on remote, can I deleted it from my laptop or is it still in use?

Frank

unread,
Oct 25, 2012, 6:31:27 AM10/25/12
to new...@googlegroups.com
Ok, try this :

sudo pip install importlib
sudo supervisorctl start newebe

Be sure that the IP on which you connect is the same as the IP of your
server.

Frank

Le 24/10/2012 15:11, Jean Elchinger a �crit :

Frank

unread,
Oct 30, 2012, 3:32:04 PM10/30/12
to new...@googlegroups.com
Hi Jean,

Do these commands work for you ?

Frank

Le 25/10/2012 12:31, Frank a �crit :

Jean Elchinger

unread,
Oct 31, 2012, 7:43:16 AM10/31/12
to new...@googlegroups.com
Nop. I connected via ssh on my vKS server.

~% sudo pip install importlib
Downloading/unpacking importlib
  Downloading importlib-1.0.2.tar.bz2
  Running setup.py egg_info for package importlib
Installing collected packages: importlib
  Running setup.py install for importlib
Successfully installed importlib
Cleaning up...

Frank

unread,
Nov 1, 2012, 2:05:33 PM11/1/12
to new...@googlegroups.com
Could you connect on your box through ssh and type following lines ?

sudo su newebe
newebe_server.py --configfile=/home/newebe/newebe/config.yaml

This should lead you to an error message. Could you copy/paste it on
this list ?

Jean Elchinger

unread,
Nov 15, 2012, 10:06:44 AM11/15/12
to new...@googlegroups.com
Here is the error message

$ sudo su newebe
$ newebe_server.py --configfile=/home/newebe/newebe/config.yaml
bash: newebe_server.py: command not found

Frank

unread,
Nov 15, 2012, 6:27:41 PM11/15/12
to new...@googlegroups.com
Newebe does not look installed. What do you see when you type :

sudo pip install git+git://github.com/gelnior/newebe.git

?

Jean Elchinger

unread,
Nov 19, 2012, 7:04:15 AM11/19/12
to new...@googlegroups.com
I got some warnings, I hope it's not to important. But at the end, it finally works! Let me know when there is a new release, I would be happy to help to install it as a end user.

% sudo pip install git+git://github.com/gelnior/newebe.git
[sudo] password for jean:
Downloading/unpacking git+git://github.com/gelnior/newebe.git
  Cloning Git repository git://github.com/gelnior/newebe.git to /tmp/pip-CWlQ2E-build
  Running setup.py egg_info for package from git+git://github.com/gelnior/newebe.git
    install_dir .
   
    Installed /tmp/pip-CWlQ2E-build/d2to1-0.2.7-py2.6.egg
    package init file 'newebe/static/__init__.py' not found (or not a regular file)
Requirement already satisfied (use --upgrade to upgrade): distribute in /usr/lib/python2.6/dist-packages (from newebe)
Requirement already satisfied (use --upgrade to upgrade): Couchdbkit==0.5.6 in /usr/local/lib/python2.6/dist-packages (from newebe)
Downloading/unpacking Tornado==2.4 (from newebe)
  Downloading tornado-2.4.tar.gz (347Kb): 347Kb downloaded
  Running setup.py egg_info for package Tornado
    warning: no previously-included files matching '_auto2to3*' found anywhere in distribution
Downloading/unpacking pytz (from newebe)
  Downloading pytz-2012h.tar.gz (255Kb): 255Kb downloaded
  Running setup.py egg_info for package pytz
    warning: no files found matching '*.pot' under directory 'pytz'
    warning: no previously-included files found matching 'test_zdump.py'
Downloading/unpacking whoosh (from newebe)
  Downloading Whoosh-2.4.1.tar.gz (938Kb): 938Kb downloaded
  Running setup.py egg_info for package whoosh
    warning: no files found matching '*.txt' under directory 'tests'
    warning: no files found matching '*.txt' under directory 'benchmark'
    warning: no files found matching '*.txt' under directory 'files'
    warning: no files found matching '*.py' under directory 'files'
    warning: no files found matching '*.jpg' under directory 'files'
Downloading/unpacking lxml (from newebe)
  Downloading lxml-3.0.1.tar.gz (3.2Mb): 3.2Mb downloaded
  Running setup.py egg_info for package lxml
    Building lxml version 3.0.1.
    Building without Cython.
    Using build configuration of libxslt 1.1.26
    Building against libxml2/libxslt in the following directory: /usr/lib
    warning: no previously-included files found matching '*.py'
    warning: no files found matching '*.txt' under directory 'src/lxml/tests'
Requirement already satisfied (use --upgrade to upgrade): cssselect in /usr/local/lib/python2.6/dist-packages (from newebe)
Downloading/unpacking pyyaml (from newebe)
  Downloading PyYAML-3.10.zip (364Kb): 364Kb downloaded
  Running setup.py egg_info for package pyyaml
Downloading/unpacking markdown (from newebe)
  Downloading Markdown-2.2.1.tar.gz (260Kb): 260Kb downloaded
  Running setup.py egg_info for package markdown
Downloading/unpacking restkit>=3.3 (from Couchdbkit==0.5.6->newebe)
  Downloading restkit-4.2.0.tar.gz (1.3Mb): 1.3Mb downloaded
  Running setup.py egg_info for package restkit
Requirement already satisfied (use --upgrade to upgrade): http-parser>=0.7.7 in /usr/local/lib/python2.6/dist-packages (from restkit>=3.3->Couchdbkit==0.5.6->newebe)
Downloading/unpacking socketpool>=0.5.0 (from restkit>=3.3->Couchdbkit==0.5.6->newebe)
  Downloading socketpool-0.5.2.tar.gz
  Running setup.py egg_info for package socketpool
Downloading/unpacking nose (from restkit>=3.3->Couchdbkit==0.5.6->newebe)
  Downloading nose-1.2.1.tar.gz (400Kb): 400Kb downloaded
  Running setup.py egg_info for package nose
    no previously-included directories found matching 'doc/.build'
Downloading/unpacking webob (from restkit>=3.3->Couchdbkit==0.5.6->newebe)
  Downloading WebOb-1.2.3.tar.gz (191Kb): 191Kb downloaded
  Running setup.py egg_info for package webob
    no previously-included directories found matching '*.pyc'
    no previously-included directories found matching '*.pyo'
Installing collected packages: lxml, markdown, newebe, nose, pytz, pyyaml, restkit, socketpool, Tornado, webob, whoosh
  Running setup.py install for lxml
    Building lxml version 3.0.1.
    Building without Cython.
    Using build configuration of libxslt 1.1.26
    Building against libxml2/libxslt in the following directory: /usr/lib
    building 'lxml.etree' extension
    gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/libxml2 -I/home/jean/build/lxml/src/lxml/includes -I/usr/include/python2.6 -c src/lxml/lxml.etree.c -o build/temp.linux-x86_64-2.6/src/lxml/lxml.etree.o
    src/lxml/lxml.etree.c: In function ‘__pyx_pf_4lxml_5etree_4XSLT_18__call__’:
    src/lxml/lxml.etree.c:132608: warning: passing argument 1 of ‘__pyx_f_4lxml_5etree_12_XSLTContext__copy’ from incompatible pointer type
    src/lxml/lxml.etree.c:130569: note: expected ‘struct __pyx_obj_4lxml_5etree__XSLTContext *’ but argument is of type ‘struct __pyx_obj_4lxml_5etree__BaseContext *’
    src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree__copyXSLT’:
    src/lxml/lxml.etree.c:133997: warning: passing argument 1 of ‘__pyx_f_4lxml_5etree_12_XSLTContext__copy’ from incompatible pointer type
    src/lxml/lxml.etree.c:130569: note: expected ‘struct __pyx_obj_4lxml_5etree__XSLTContext *’ but argument is of type ‘struct __pyx_obj_4lxml_5etree__BaseContext *’
    src/lxml/lxml.etree.c: At top level:
    src/lxml/lxml.etree.c:12128: warning: ‘__pyx_f_4lxml_5etree_displayNode’ defined but not used
    src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree_11_BaseParser__parseDocFromFilelike’:
    src/lxml/lxml.etree.c:86731: warning: ‘__pyx_r’ may be used uninitialized in this function
    src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree_11_BaseParser__parseDocFromFile’:
    src/lxml/lxml.etree.c:86420: warning: ‘__pyx_r’ may be used uninitialized in this function
    src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree_11_BaseParser__parseDoc’:
    src/lxml/lxml.etree.c:86109: warning: ‘__pyx_r’ may be used uninitialized in this function
    src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree_11_BaseParser__parseUnicodeDoc’:
    src/lxml/lxml.etree.c:85780: warning: ‘__pyx_r’ may be used uninitialized in this function
    gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions build/temp.linux-x86_64-2.6/src/lxml/lxml.etree.o -lxslt -lexslt -lxml2 -lz -lm -o build/lib.linux-x86_64-2.6/lxml/etree.so
    building 'lxml.objectify' extension
    gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/libxml2 -I/home/jean/build/lxml/src/lxml/includes -I/usr/include/python2.6 -c src/lxml/lxml.objectify.c -o build/temp.linux-x86_64-2.6/src/lxml/lxml.objectify.o
    gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions build/temp.linux-x86_64-2.6/src/lxml/lxml.objectify.o -lxslt -lexslt -lxml2 -lz -lm -o build/lib.linux-x86_64-2.6/lxml/objectify.so
    warning: no files found matching '*.txt' under directory 'src/lxml/tests'
  Running setup.py install for markdown
    changing mode of build/scripts-2.6/markdown_py from 644 to 755
    Converting docs/release-2.0.1.txt -> build/docs/release-2.0.1.html
    Converting docs/cli.txt -> build/docs/cli.html
    Converting docs/release-2.0.2.txt -> build/docs/release-2.0.2.html
    Converting docs/release-2.0.txt -> build/docs/release-2.0.html
    Converting docs/release-2.1.1.txt -> build/docs/release-2.1.1.html
    Converting docs/authors.txt -> build/docs/authors.html
    Converting docs/release-2.2.1.txt -> build/docs/release-2.2.1.html
    Converting docs/release-2.2.0.txt -> build/docs/release-2.2.0.html
    Converting docs/reference.txt -> build/docs/reference.html
    Converting docs/index.txt -> build/docs/index.html
    Converting docs/test_suite.txt -> build/docs/test_suite.html
    Converting docs/siteindex.txt -> build/docs/siteindex.html
    Converting docs/release-2.1.0.txt -> build/docs/release-2.1.0.html
    Converting docs/install.txt -> build/docs/install.html
    Converting docs/change_log.txt -> build/docs/change_log.html
    Converting docs/extensions/rss.txt -> build/docs/extensions/rss.html
    Converting docs/extensions/footnotes.txt -> build/docs/extensions/footnotes.html
    Converting docs/extensions/tables.txt -> build/docs/extensions/tables.html
    Converting docs/extensions/meta_data.txt -> build/docs/extensions/meta_data.html
    Converting docs/extensions/nl2br.txt -> build/docs/extensions/nl2br.html
    Converting docs/extensions/wikilinks.txt -> build/docs/extensions/wikilinks.html
    Converting docs/extensions/sane_lists.txt -> build/docs/extensions/sane_lists.html
    Converting docs/extensions/fenced_code_blocks.txt -> build/docs/extensions/fenced_code_blocks.html
    Converting docs/extensions/smart_strong.txt -> build/docs/extensions/smart_strong.html
    Converting docs/extensions/attr_list.txt -> build/docs/extensions/attr_list.html
    Converting docs/extensions/abbreviations.txt -> build/docs/extensions/abbreviations.html
    Converting docs/extensions/extra.txt -> build/docs/extensions/extra.html
    Converting docs/extensions/code_hilite.txt -> build/docs/extensions/code_hilite.html
    Converting docs/extensions/index.txt -> build/docs/extensions/index.html
    Converting docs/extensions/html_tidy.txt -> build/docs/extensions/html_tidy.html
    Converting docs/extensions/toc.txt -> build/docs/extensions/toc.html
    Converting docs/extensions/header_id.txt -> build/docs/extensions/header_id.html
    Converting docs/extensions/api.txt -> build/docs/extensions/api.html
    Converting docs/extensions/definition_lists.txt -> build/docs/extensions/definition_lists.html
    changing mode of /usr/local/bin/markdown_py to 755
  Running setup.py install for newebe
    package init file 'newebe/static/__init__.py' not found (or not a regular file)
    changing mode of build/scripts-2.6/newebe_server.py from 644 to 755
    changing mode of /usr/local/bin/newebe_server.py to 755
  Running setup.py install for nose
    no previously-included directories found matching 'doc/.build'
    Installing nosetests-2.6 script to /usr/local/bin
    Installing nosetests script to /usr/local/bin
  Running setup.py install for pytz
    warning: no files found matching '*.pot' under directory 'pytz'
    warning: no previously-included files found matching 'test_zdump.py'
  Running setup.py install for pyyaml
    checking if libyaml is compilable
    gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.6 -c build/temp.linux-x86_64-2.6/check_libyaml.c -o build/temp.linux-x86_64-2.6/check_libyaml.o
    build/temp.linux-x86_64-2.6/check_libyaml.c:2:18: error: yaml.h: No such file or directory
    build/temp.linux-x86_64-2.6/check_libyaml.c: In function ‘main’:
    build/temp.linux-x86_64-2.6/check_libyaml.c:5: error: ‘yaml_parser_t’ undeclared (first use in this function)
    build/temp.linux-x86_64-2.6/check_libyaml.c:5: error: (Each undeclared identifier is reported only once
    build/temp.linux-x86_64-2.6/check_libyaml.c:5: error: for each function it appears in.)
    build/temp.linux-x86_64-2.6/check_libyaml.c:5: error: expected ‘;’ before ‘parser’
    build/temp.linux-x86_64-2.6/check_libyaml.c:6: error: ‘yaml_emitter_t’ undeclared (first use in this function)
    build/temp.linux-x86_64-2.6/check_libyaml.c:6: error: expected ‘;’ before ‘emitter’
    build/temp.linux-x86_64-2.6/check_libyaml.c:8: warning: implicit declaration of function ‘yaml_parser_initialize’
    build/temp.linux-x86_64-2.6/check_libyaml.c:8: error: ‘parser’ undeclared (first use in this function)
    build/temp.linux-x86_64-2.6/check_libyaml.c:9: warning: implicit declaration of function ‘yaml_parser_delete’
    build/temp.linux-x86_64-2.6/check_libyaml.c:11: warning: implicit declaration of function ‘yaml_emitter_initialize’
    build/temp.linux-x86_64-2.6/check_libyaml.c:11: error: ‘emitter’ undeclared (first use in this function)
    build/temp.linux-x86_64-2.6/check_libyaml.c:12: warning: implicit declaration of function ‘yaml_emitter_delete’
   
    libyaml is not found or a compiler error: forcing --without-libyaml
    (if libyaml is installed correctly, you may need to
     specify the option --include-dirs or uncomment and
     modify the parameter include_dirs in setup.cfg)
  Running setup.py install for restkit
    changing mode of build/scripts-2.6/restcli from 644 to 755
    changing mode of /usr/local/bin/restcli to 755
  Running setup.py install for socketpool
  Running setup.py install for Tornado
    warning: no previously-included files matching '_auto2to3*' found anywhere in distribution
  Running setup.py install for webob
    no previously-included directories found matching '*.pyc'
    no previously-included directories found matching '*.pyo'
  Running setup.py install for whoosh
    warning: no files found matching '*.txt' under directory 'tests'
    warning: no files found matching '*.txt' under directory 'benchmark'
    warning: no files found matching '*.txt' under directory 'files'
    warning: no files found matching '*.py' under directory 'files'
    warning: no files found matching '*.jpg' under directory 'files'
Successfully installed lxml markdown newebe nose pytz pyyaml restkit socketpool Tornado webob whoosh
Cleaning up...

% sudo supervisorctl restart newebe
newebe: ERROR (not running)
newebe: started

Frank

unread,
Nov 19, 2012, 9:42:37 AM11/19/12
to new...@googlegroups.com
Great news! About the new release, I will send to this mailing list an announcement about it when it will be out.

Frank


Reply all
Reply to author
Forward
0 new messages