[fossil-users] Unable to push on remote repository.

2012-08-26 Thread Gautier DI FOLCO
Hi all,

I'm new to fossil and I have followed this post (
http://blog.appamatto.com/2011/11/13/multiple-fossil-repositories-setup.html)
to setup a fossil on my home server (an OpenBSD 5.1 i386).
I have the following nginx.conf :
user _nginx;
worker_processes  1;
events {
worker_connections  1024;
}
http {
include   mime.types;
default_type  application/octet-stream;
sendfileon;
keepalive_timeout  65;
server {
listen   80;
server_name  localhost;
location / {
proxy_pass http://127.0.0.1:8080/;
proxy_redirect off;
proxy_set_header   Host $host;
proxy_set_header   X-Real-IP$remote_addr;
proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
}
}
}

I launch fossil with this command line : fossil serve
/home/fossil/repositories.
Then I tried the following command :
*~ $ fossil clone http://192.168.0.42/cours-3iftest.fossil
*
Bytes  Cards  Artifacts Deltas
Sent:  53  1  0  0
Received: 6601193245121  0
Sent:  70  2  0  0
Received: 5596705251123  0
Sent:  55  4  0  0
Received: 6868686 19  8  0
Sent:  55  1  0  0
Received: 8166176  5  1  0
Sent:  55  1  0  0
Received:15695969179 88  0
Sent:  55  1  0  0
Received: 5093090 97 47  0
Sent:  55  1  0  0
Received: 5011321117 57  0
Sent:  55  1  0  0
Received: 5002566283140  0
Sent:  55  1  0  0
Received: 5022130   1826913  0
Sent:  56  1  0  0
Received: 5017688641320  0
Sent:  56  1  0  0
Received: 3972895   1137568  0
Total network traffic: 2664 bytes sent, 72051060 bytes received
Rebuilding repository meta-data...
  100.0% complete...
project-id: cee0eea7fb387d0bb2c07430f999aafc56fc9c9a
server-id:  5abbb01562d3b7d9861433e1cbe3739217c17ac5
admin-user: black (password is 872461)
* ~ $ mkdir
test

 ~ $ cd
test

 test $
ls

 test $ fossil open ../test.fossil*
. a very long list*
 test $ mv _real.sh real.sh
 test $ fossil mv _real.sh real.sh*
RENAME _real.sh real.sh
* test $ fossil commit -m Test push*

Autosync:  http://192.168.0.42/cours-3if
Bytes  Cards  Artifacts Deltas
Sent: 130  1  0  0
Received:  78  2  0  0
Total network traffic: 290 bytes sent, 307 bytes received
New_Version: d58c3a5521a658a8a393a466d779d3d4adab1d50
Autosync:  http://192.168.0.42/cours-3if
Bytes  Cards  Artifacts Deltas
Sent: 603  4  0  1
Error: not authorized to write
Received: 111  1  0  0
Total network traffic: 525 bytes sent, 335 bytes received
fossil: Autosync failed
* test $ fossil push http://black:pwd@192.168.0.42/cours-3if*
Bytes  Cards  Artifacts Deltas
Sent: 222  3  0  0
Received:   23532501  0  0
Total network traffic: 400 bytes sent, 12763 bytes received

The strangest thing is that I can see my commit on my local repository but
not on my remote repository while it makes me no error and I have the grade
'Setup' (s) on the remote repository.
I'm new, so I may have missed something, but what?

For your help,
In advance,
Thanks.

PS : I have compiled the d7736649cd check-in on both sides.
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Unable to push on remote repository.

2012-08-26 Thread Rene

On 2012-08-26 18:32, Gautier DI FOLCO wrote:

Hi all,

I'm new to fossil and I have followed this post

(http://blog.appamatto.com/2011/11/13/multiple-fossil-repositories-setup.html
[1]) to setup a fossil on my home server (an OpenBSD 5.1 i386).
 I have the following nginx.conf :

user _nginx;
worker_processes  1;
events {
    worker_connections  1024;
}
http {
    include   mime.types;
    default_type  application/octet-stream;
     sendfile    on;
    keepalive_timeout  65;
     server {
    listen   80;
    server_name  localhost;
    location / {
    proxy_pass http://127.0.0.1:8080/ [2];
    proxy_redirect off;
     proxy_set_header  
Host $host;
    proxy_set_header   X-Real-IP   
$remote_addr;
    proxy_set_header   X-Forwarded-For 
$proxy_add_x_forwarded_for;
    }
    }
 }

I launch fossil with this command line : fossil serve
/home/fossil/repositories.
Then I tried the following command :

~ $ FOSSIL CLONE

TEST.FOSSIL

     Bytes  Cards 
Artifacts Deltas
Sent:  53 
1  0  0
Received: 6601193    245   
121  0
Sent:  70 
2  0  0
 Received: 5596705    251   
123  0
Sent:  55 
4  0  0
Received: 6868686 19 
8  0
Sent:  55 
1  0  0
 Received: 8166176  5 
1  0
Sent:  55 
1  0  0
Received:    15695969    179
88  0
Sent:  55 
1  0  0
 Received: 5093090 97
47  0
Sent:  55 
1  0  0
Received: 5011321    117
57  0
Sent:  55 
1  0  0
 Received: 5002566    283   
140  0
Sent:  55 
1  0  0
Received: 5022130   1826   
913  0
Sent:  56 
1  0  0
 Received: 5017688    641   
320  0
Sent:  56 
1  0  0
Received: 3972895   1137   
568  0
Total network traffic: 2664 bytes sent, 72051060 bytes received
 Rebuilding repository meta-data...
  100.0% complete...
project-id: cee0eea7fb387d0bb2c07430f999aafc56fc9c9a
server-id:  5abbb01562d3b7d9861433e1cbe3739217c17ac5
admin-user: black (password is 872461)
  ~ $ mkdir

test

 ~ $ cd

test   

  test $

ls

 test $ fossil open ../test.fossil
. a very long list
  test $ mv _real.sh real.sh
 test $ fossil mv _real.sh real.sh
RENAME _real.sh real.sh
 TEST $ FOSSIL COMMIT -M TEST

PUSH 

Autosync:  http://192.168.0.42/cours-3if [3]
     Bytes  Cards 
Artifacts Deltas
Sent: 130 
1  0  0
Received:  78  2 
0  0
Total network traffic: 290 bytes sent, 307 bytes received
 New_Version: d58c3a5521a658a8a393a466d779d3d4adab1d50
Autosync:  http://192.168.0.42/cours-3if [4]
    Bytes  Cards 
Artifacts Deltas
Sent: 603 
4  0  1
 Error: not authorized to write
Received: 111  1 
0  0
Total network traffic: 525 bytes sent, 335 bytes received
fossil: Autosync failed
 TEST $ FOSSIL PUSH
     Bytes  Cards 
Artifacts Deltas
Sent: 222 
3  0  0
Received:   23532    501 
0  0
Total network traffic: 400 bytes sent, 12763 bytes received

The strangest thing is that I can see my commit on my local 
repository

but not on my remote repository while it makes me no error and I have
the grade 'Setup' (s) on the remote repository.
 I'm new, so I may have missed something, but what?

For your help,
In advance,
Thanks.

PS : I have compiled the d7736649cd check-in on both sides.


Links:
--
[1]

http://blog.appamatto.com/2011/11/13/multiple-fossil-repositories-setup.html
[2] http://127.0.0.1:8080/
[3] http://192.168.0.42/cours-3if
[4] http://192.168.0.42/cours-3if

Has the user _nginx  on the server write permissions to the repo?
--
Rene
___
fossil-users mailing 

Re: [fossil-users] Unable to push on remote repository.

2012-08-26 Thread Gautier DI FOLCO
Hi,
Thanks for your answer.

2012/8/26 Rene renew...@xs4all.nl

 Has the user _nginx  on the server write permissions to the repo?

No, I think it don't need it, because nginx is just a proxy, I run the
'fossil serve' command as fossil user, so it has the rights to write, and
it works because I can add or edit users.

Am I wrong?
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Unable to push on remote repository.

2012-08-26 Thread John Found
You have to set your user name and password.
Use: fossil remote-url http://user:password@192.168.0.42/cours-3if
The user have to be registered on the remote repository with proper rights.

On Sun, 26 Aug 2012 18:32:22 +0200
Gautier DI FOLCO gautier.difo...@gmail.com wrote:

 Hi all,
 
 I'm new to fossil and I have followed this post (
 http://blog.appamatto.com/2011/11/13/multiple-fossil-repositories-setup.html)
 to setup a fossil on my home server (an OpenBSD 5.1 i386).
 I have the following nginx.conf :
 user _nginx;
 worker_processes  1;
 events {
 worker_connections  1024;
 }
 http {
 include   mime.types;
 default_type  application/octet-stream;
 sendfileon;
 keepalive_timeout  65;
 server {
 listen   80;
 server_name  localhost;
 location / {
 proxy_pass http://127.0.0.1:8080/;
 proxy_redirect off;
 proxy_set_header   Host $host;
 proxy_set_header   X-Real-IP$remote_addr;
 proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
 }
 }
 }
 
 I launch fossil with this command line : fossil serve
 /home/fossil/repositories.
 Then I tried the following command :
 *~ $ fossil clone http://192.168.0.42/cours-3iftest.fossil
 *
 Bytes  Cards  Artifacts Deltas
 Sent:  53  1  0  0
 Received: 6601193245121  0
 Sent:  70  2  0  0
 Received: 5596705251123  0
 Sent:  55  4  0  0
 Received: 6868686 19  8  0
 Sent:  55  1  0  0
 Received: 8166176  5  1  0
 Sent:  55  1  0  0
 Received:15695969179 88  0
 Sent:  55  1  0  0
 Received: 5093090 97 47  0
 Sent:  55  1  0  0
 Received: 5011321117 57  0
 Sent:  55  1  0  0
 Received: 5002566283140  0
 Sent:  55  1  0  0
 Received: 5022130   1826913  0
 Sent:  56  1  0  0
 Received: 5017688641320  0
 Sent:  56  1  0  0
 Received: 3972895   1137568  0
 Total network traffic: 2664 bytes sent, 72051060 bytes received
 Rebuilding repository meta-data...
   100.0% complete...
 project-id: cee0eea7fb387d0bb2c07430f999aafc56fc9c9a
 server-id:  5abbb01562d3b7d9861433e1cbe3739217c17ac5
 admin-user: black (password is 872461)
 * ~ $ mkdir
 test
 
  ~ $ cd
 test
 
  test $
 ls
 
  test $ fossil open ../test.fossil*
 . a very long list*
  test $ mv _real.sh real.sh
  test $ fossil mv _real.sh real.sh*
 RENAME _real.sh real.sh
 * test $ fossil commit -m Test push*
 
 Autosync:  http://192.168.0.42/cours-3if
 Bytes  Cards  Artifacts Deltas
 Sent: 130  1  0  0
 Received:  78  2  0  0
 Total network traffic: 290 bytes sent, 307 bytes received
 New_Version: d58c3a5521a658a8a393a466d779d3d4adab1d50
 Autosync:  http://192.168.0.42/cours-3if
 Bytes  Cards  Artifacts Deltas
 Sent: 603  4  0  1
 Error: not authorized to write
 Received: 111  1  0  0
 Total network traffic: 525 bytes sent, 335 bytes received
 fossil: Autosync failed
 * test $ fossil push http://black:pwd@192.168.0.42/cours-3if*
 Bytes  Cards  Artifacts Deltas
 Sent: 222  3  0  0
 Received:   23532501  0  0
 Total network traffic: 400 bytes sent, 12763 bytes received
 
 The strangest thing is that I can see my commit on my local repository but
 not on my remote repository while it makes me no error and I have the grade
 'Setup' (s) on the remote repository.
 I'm new, so I may have missed something, but what?
 
 For your help,
 In advance,
 Thanks.
 
 PS : I have compiled the d7736649cd check-in on both sides.


-- 
John Found 
http://asm32.hopto.org
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users