php: 5.3.5
mysql: 5.1.51
apache: 2.2.17
latest versions of weave as of tonight
gentoo
Folks,
I'm very confused. I *mostly* know what i'm doing but i can't seem to
get weave working
If i run the tests in the sync server i get:
Please enter a username: bearcat
Please enter a password: test
Get collection timestamps...NOT OK
got: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /1.0/bearcat/info/collections
on this server.</p>
<hr>
<address>Apache Server at localhost Port 80</address>
</body></html>
Put an item...NOT OK
got: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /1.0/bearcat/storage/history
on this server.</p>
<hr>
<address>Apache Server at localhost Port 80</address>
</body></html>
Put an item...NOT OK
got: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /1.0/bearcat/storage/foo
on this server.</p>
<hr>
<address>Apache Server at localhost Port 80</address>
</body></html>
Put an item...NOT OK
got: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /1.0/bearcat/storage/tabs
on this server.</p>
<hr>
<address>Apache Server at localhost Port 80</address>
</body></html>
Get collection counts...NOT OK
got: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to
access /1.0/bearcat/info/collection_counts
on this server.</p>
<hr>
<address>Apache Server at localhost Port 80</address>
</body></html>
Get collection timestamps...NOT OK
got: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /1.0/bearcat/info/collections
on this server.</p>
<hr>
<address>Apache Server at localhost Port 80</address>
</body></html>
Get item...NOT OK
got: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /1.0/bearcat/storage/foo/2
on this server.</p>
<hr>
<address>Apache Server at localhost Port 80</address>
</body></html>
Get item...NOT OK
got: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /1.0/bearcat/storage/tabs/1
on this server.</p>
<hr>
<address>Apache Server at localhost Port 80</address>
</body></html>
Get collection ids...NOT OK
got: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /1.0/bearcat/storage/foo
on this server.</p>
<hr>
<address>Apache Server at localhost Port 80</address>
</body></html>
Get collection ids...NOT OK
got: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /1.0/bearcat/storage/tabs
on this server.</p>
<hr>
<address>Apache Server at localhost Port 80</address>
</body></html>
Bad put (timestamp too old)...NOT OK
got: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /1.0/bearcat/storage/foo
on this server.</p>
<hr>
<address>Apache Server at localhost Port 80</address>
</body></html>
Post...NOT OK
got: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /1.0/bearcat/storage/foo
on this server.</p>
<hr>
<address>Apache Server at localhost Port 80</address>
</body></html>
Post...NOT OK
got: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /1.0/bearcat/storage/tabs
on this server.</p>
<hr>
<address>Apache Server at localhost Port 80</address>
</body></html>
PHP Fatal error: Call to undefined function
delete_items_by_collection()
in /var/www/weave.feline-soul.net/weaveserver-sync/tests/test_1.0.php on
line 127
Running the test in the registration server i get:
Creating user: UOI161TR4EF71
Check for username (shouldn't exist)...OK
Create user (fail, bad password)...NOT OK
Create user (fail, bad username)...NOT OK
Create user...NOT OK
Check for username (should exist)...NOT OK
Create user again (should fail)...NOT OK
Change user password (fail, bad password)...NOT OK
Change user password (fail, wrong old password)...NOT OK
Change user password...NOT OK
Change user email (fail, wrong password)...NOT OK
Change user email...NOT OK
Get user node...NOT OK
Delete user...NOT OK
My apache virtual hosting looks like this:
<VirtualHost weave.feline-soul.net:443>
ServerName weave.feline-soul.net
ServerAlias weave
#WSGIProcessGroup sync
#WSGIDaemonProcess sync user=sync group=sync processes=2 threads=25
#WSGIPassAuthorization On
#WSGIScriptAlias / /var/www/weave/sync.wsgi
CustomLog /var/log/apache2/weave.feline-soul.net-access.log combined
ErrorLog /var/log/apache2/weave.feline-soul.net-error.log
Include /etc/apache2/vhosts.d/weave.feline-soul.net_vhost_include
Alias /user/1.1 /var/www/weave.feline-soul.net/weaveserver-registration/1.0/index.php
Alias /user/1.0 /var/www/weave.feline-soul.net/weaveserver-registration/1.0/index.php
Alias /user/1 /var/www/weave.feline-soul.net/weaveserver-registration/1.0/index.php
Alias /1.1 /var/www/weave.feline-soul.net/weaveserver-sync/1.1/index.php
Alias /1.0 /var/www/weave.feline-soul.net/weaveserver-sync/1.1/index.php
</VirtualHost>
weave.feline-soul.net_vhost_include:
ServerAdmin ad...@feline-soul.net
ErrorDocument 404 /404.html
DocumentRoot /var/www/weave.feline-soul.net/
SSLEngine on
SSLCertificateKeyFile /etc/ssl/private/feline-soul_privatekey.pem
SSLCertificateFile /etc/ssl/certs/feline-soul_server.pem
<Directory /var/www/weave.feline-soul.net/>
Options Indexes FollowSymLinks
AllowOverride none
# Controls who can get stuff from this server.
Order allow,deny
Allow from all
</Directory>
One thing i'm not sure of is the password field in the registration and
sync servers. If my db user password were 'weave' would i enter 'weave'
for the password or is it looking for the hash that mysql uses in the
user table?
Thanks. Any help is appreciated.