Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge-webrsync first run errors
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
josephg
l33t
l33t


Joined: 10 Jan 2016
Posts: 783
Location: usually offline

PostPosted: Thu Jan 14, 2016 4:49 pm    Post subject: emerge-webrsync first run errors Reply with quote

noob installing new x86 at the handbook stage "Installing a Portage snapshot"

Code:
(chroot) sysresccd / # emerge-webrsync
!!! Section 'x-portage' in repos.conf has location attribute set to nonexistent directory: '/usr/portage'
!!! Section 'gentoo' in repos.conf has location attribute set to nonexistent directory: '/usr/portage'
!!! SYNC setting found in make.conf.
    This setting is Deprecated and no longer used.  Please ensure your 'sync-type' and 'sync-uri' are set correctly in /etc/portage/repos.conf/gentoo.conf
!!! Invalid Repository Location (not a dir): '/usr/portage'
Fetching most recent snapshot ...
Trying to retrieve 20160113 snapshot from ftp://mirror.bytemark.co.uk/gentoo ...
Fetching file portage-20160113.tar.xz.md5sum ...
Fetching file portage-20160113.tar.xz.gpgsig ...
Fetching file portage-20160113.tar.xz ...
Checking digest ...
Getting snapshot timestamp ...
Syncing local tree ...

Number of files: 207,139 (reg: 179,858, dir: 27,281)
Number of created files: 207,138 (reg: 179,858, dir: 27,280)
Number of deleted files: 0
Number of regular files transferred: 179,858
Total file size: 396.43M bytes
Total transferred file size: 396.43M bytes
Literal data: 396.43M bytes
Matched data: 0 bytes
File list size: 5.10M
File list generation time: 0.103 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 175.98M
Total bytes received: 3.55M

sent 175.98M bytes  received 3.55M bytes  510.75K bytes/sec
total size is 396.43M  speedup is 2.21
Cleaning up ...
!!! SYNC setting found in make.conf.
    This setting is Deprecated and no longer used.  Please ensure your 'sync-type' and 'sync-uri' are set correctly in /etc/portage/repos.conf/gentoo.conf

 * IMPORTANT: 8 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.

(chroot) sysresccd / #


can i ignore these errors/warnings and continue?


Last edited by josephg on Fri Jan 29, 2016 1:12 am; edited 1 time in total
Back to top
View user's profile Send private message
josephg
l33t
l33t


Joined: 10 Jan 2016
Posts: 783
Location: usually offline

PostPosted: Thu Jan 14, 2016 4:52 pm    Post subject: Reply with quote

/etc/portage/repos.conf/ doesn't exist. do i need it?

/etc/portage/make.conf:
SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage"
added at the install handbook stage "Selecting mirrors"
should i remove this line?
_________________
"Growth for the sake of growth is the ideology of the cancer cell." Edward Abbey


Last edited by josephg on Tue Oct 04, 2016 1:29 pm; edited 1 time in total
Back to top
View user's profile Send private message
acmondor
n00b
n00b


Joined: 08 Aug 2014
Posts: 35
Location: Canadian Prairies

PostPosted: Thu Jan 14, 2016 5:52 pm    Post subject: Reply with quote

Welcome to Gentoo!

I haven't done a new install for a real long time, but it does look like your emerge-webrsync did succeed despite the warning messages. The manual does have a note about the nonexistent /usr/portage (ie it can be ignored) and from what I recall of the introduction of /etc/portage/repos.conf/ the SYNC stuff can also be ignored for now.

I would definitely continue. Once you apply the available updates some (all?) of the warning message should go away and /etc/portage/repos.conf/ should get created.

You definitely read the available news (as per the last line output from emerge-webrsync) by running: eselect news read

Good luck.
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2616

PostPosted: Thu Jan 14, 2016 6:04 pm    Post subject: Re: first run emerge-webrsync errors Reply with quote

josephg wrote:
can i ignore these errors/warnings and continue?

It seems the handbook is not up to date.
See https://wiki.gentoo.org/wiki//etc/portage/repos.conf/webrsync.conf
and https://wiki.gentoo.org/wiki/SYNC
Back to top
View user's profile Send private message
josephg
l33t
l33t


Joined: 10 Jan 2016
Posts: 783
Location: usually offline

PostPosted: Thu Jan 14, 2016 7:20 pm    Post subject: Reply with quote

acmondor wrote:
I would definitely continue. Once you apply the available updates some (all?) of the warning message should go away and /etc/portage/repos.conf/ should get created.

i'm continuing :) but the RSYNC warnings don't go away. and /etc/portage/repos.conf/ hasn't been created either.
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1074
Location: EU or US

PostPosted: Thu Jan 14, 2016 7:24 pm    Post subject: Reply with quote

You can create it by hand.

cat /etc/portage/repos.conf/gentoo.conf
Code:
[DEFAULT]
main-repo = gentoo

[gentoo]
location = /usr/portage
sync-type = git
sync-uri = https://github.com/gentoo-mirror/gentoo
auto-sync = yes


Last edited by Buffoon on Thu Jan 14, 2016 7:26 pm; edited 1 time in total
Back to top
View user's profile Send private message
josephg
l33t
l33t


Joined: 10 Jan 2016
Posts: 783
Location: usually offline

PostPosted: Thu Jan 14, 2016 7:26 pm    Post subject: Re: first run emerge-webrsync errors Reply with quote

charles17 wrote:
It seems the handbook is not up to date.
See https://wiki.gentoo.org/wiki//etc/portage/repos.conf/webrsync.conf
and https://wiki.gentoo.org/wiki/SYNC

yes it seems the install handbook is a bit dated. can i assist in updating it?
those links are very helpful. but it might take me a while to get my head around it. particularly with things like "Edit all repos.conf/*.conf files, add the auto-sync option to each defined repository."
shall i ignore those errors/warnings and plod ahead with the install? i could digest that after i finish the install. i can't wait to boot into it. but i'm still a ways off..
Back to top
View user's profile Send private message
josephg
l33t
l33t


Joined: 10 Jan 2016
Posts: 783
Location: usually offline

PostPosted: Thu Jan 14, 2016 7:47 pm    Post subject: Reply with quote

Buffoon wrote:
You can create it by hand.

cat /etc/portage/repos.conf/gentoo.conf
Code:
[DEFAULT]
main-repo = gentoo

[gentoo]
location = /usr/portage
sync-type = git
sync-uri = https://github.com/gentoo-mirror/gentoo
auto-sync = yes


charles17 wrote:
See https://wiki.gentoo.org/wiki//etc/portage/repos.conf/webrsync.conf
and https://wiki.gentoo.org/wiki/SYNC


so i just created that directory and the file within. i still get screamed at re SYNC
is there something i'm missing?

Code:
linux # emerge --ask sys-kernel/genkernel
!!! SYNC setting found in make.conf.
    This setting is Deprecated and no longer used.  Please ensure your 'sync-type' and 'sync-uri' are set correctly in /etc/portage/repos.conf/gentoo.conf

perhaps just a warning, as it does continue.. is the sync-uri correct?

Code:
linux # cat /etc/portage/repos.conf/gentoo.conf
[DEFAULT]
main-repo = gentoo

[gentoo]
location = /usr/portage
sync-type = git
sync-uri = https://github.com/gentoo-mirror/gentoo
auto-sync = yes

# for daily squashfs snapshots
#sync-type = squashdelta
#sync-uri = mirror://gentoo/../snapshots/squashfs


Code:
linux # cat /usr/share/portage/config/repos.conf
[DEFAULT]
main-repo = gentoo

[gentoo]
location = /usr/portage
sync-type = rsync
sync-uri = rsync://rsync.gentoo.org/gentoo-portage
auto-sync = yes

# for daily squashfs snapshots
#sync-type = squashdelta
#sync-uri = mirror://gentoo/../snapshots/squashfs


Last edited by josephg on Thu Jan 14, 2016 7:58 pm; edited 2 times in total
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2616

PostPosted: Thu Jan 14, 2016 7:57 pm    Post subject: Reply with quote

josephg wrote:
so i just created that directory and the file within. i still get screamed at re SYNC
Just delete that line and other deprecated stuff from your /etc/portage/make.conf file.
Back to top
View user's profile Send private message
josephg
l33t
l33t


Joined: 10 Jan 2016
Posts: 783
Location: usually offline

PostPosted: Thu Jan 14, 2016 9:00 pm    Post subject: Reply with quote

charles17 wrote:
Just delete that line and other deprecated stuff from your /etc/portage/make.conf file.

thanks! i commented out the line starting RSYNC, and i'm not having SYNC screamed at me.. but i have no idea if something is not working/broken somewhere
Back to top
View user's profile Send private message
josephg
l33t
l33t


Joined: 10 Jan 2016
Posts: 783
Location: usually offline

PostPosted: Fri Jan 15, 2016 3:58 am    Post subject: Reply with quote

Code:
# emerge --sync
>>> Syncing repository 'gentoo' into '/usr/portage'...
/usr/bin/git clone --depth 1 https://github.com/gentoo-mirror/gentoo .
fatal: destination path '.' already exists and is not an empty directory.
!!! git clone error in /usr/portage

 * IMPORTANT: 2 config files in '/etc' need updating.
 * See the CONFIGURATION FILES section of the emerge
 * man page to learn how to update config files.


i'm getting errors again. this time, it looks like git. so i deleted the file /etc/portage/repos.conf/gentoo.conf, which i had created as per the above posts. subsequent --sync ran ok. no further errors/warnings either.
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2616

PostPosted: Fri Jan 15, 2016 9:58 am    Post subject: Re: first run emerge-webrsync errors Reply with quote

Be aware about the difference between emerge --sync and emerge-webrsync.

Back to your initial question
josephg wrote:
noob installing new x86 at the handbook stage "Installing a Portage snapshot"

Code:
(chroot) sysresccd / # emerge-webrsync
!!! Section 'x-portage' in repos.conf has location attribute set to nonexistent directory: '/usr/portage'
!!! Section 'gentoo' in repos.conf has location attribute set to nonexistent directory: '/usr/portage'

Handbook says
https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Base#Installing_a_Portage_snapshot wrote:
Note
During this operation, emerge-webrsync might complain about a missing /usr/portage/ location. This is to be expected and nothing to worry about - the tool will create the location.


josephg wrote:
Code:
!!! SYNC setting found in make.conf.
    This setting is Deprecated and no longer used.  Please ensure your 'sync-type' and 'sync-uri' are set correctly in /etc/portage/repos.conf/gentoo.conf

That's why the SYNC line should be deleted from /etc/portage/make.conf.
See bug 560702.

josephg wrote:
Code:
!!! Invalid Repository Location (not a dir): '/usr/portage'
Fetching most recent snapshot ...
Trying to retrieve 20160113 snapshot from ftp://mirror.bytemark.co.uk/gentoo ...
Fetching file portage-20160113.tar.xz.md5sum ...
Fetching file portage-20160113.tar.xz.gpgsig ...
Fetching file portage-20160113.tar.xz ...
Checking digest ...
Getting snapshot timestamp ...
Syncing local tree ...

Number of files: 207,139 (reg: 179,858, dir: 27,281)
Number of created files: 207,138 (reg: 179,858, dir: 27,280)
Number of deleted files: 0
Number of regular files transferred: 179,858
Total file size: 396.43M bytes
Total transferred file size: 396.43M bytes
Literal data: 396.43M bytes
Matched data: 0 bytes
File list size: 5.10M
File list generation time: 0.103 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 175.98M
Total bytes received: 3.55M

sent 175.98M bytes  received 3.55M bytes  510.75K bytes/sec
total size is 396.43M  speedup is 2.21
Cleaning up ...

So it looks like emerge-webrsync works quite well for you.
Back to top
View user's profile Send private message
josephg
l33t
l33t


Joined: 10 Jan 2016
Posts: 783
Location: usually offline

PostPosted: Sun Jan 17, 2016 2:38 pm    Post subject: Reply with quote

so should i sync or rsync or git? i'm still a bit confused..

Last edited by josephg on Sun Jan 17, 2016 8:20 pm; edited 1 time in total
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2616

PostPosted: Sun Jan 17, 2016 6:41 pm    Post subject: Reply with quote

josephg wrote:
so should sync or rsync or git? i'm still a bit confused..

Recommendation for normal users is rsync or webrsync.

I've checked again for above mentioned bug 560702 and I am surprised that you ran into that problem. Can you remember which exact stage3 tarball you downloaded for handbook section Installing stage3?

If it really contains the SYNC= line in /etc/portage/make.conf you might reopen that bug 560702 or file a new one.
Back to top
View user's profile Send private message
josephg
l33t
l33t


Joined: 10 Jan 2016
Posts: 783
Location: usually offline

PostPosted: Sun Jan 17, 2016 8:30 pm    Post subject: Reply with quote

charles17 wrote:
Can you remember which exact stage3 tarball you downloaded for handbook section Installing stage3?

i downloaded the stage3 for x86, not amd64. i don't think i want 64bit, as i find 32bit more efficient.

charles17 wrote:
If it really contains the SYNC= line in /etc/portage/make.conf you might reopen that bug 560702 or file a new one.

it didn't contain the SYNC line. the x86 install handbook asked me to add the SYNC line, as in my second post on this thread above.

Buffoon suggested in above post to use git instead of rsync and for a while it worked ok. then i seemed to get warnings. this could have been something to do with how/what i was doing, a bit blindly i must confess. i am a noob installing gentoo for the first time, and had changed quite a lot of configs at lots of different places.
since, i didn't understand those warnings re git, i think. so i deleted my custom /etc/portage/repos.conf/gentoo.conf with git config, and the warnings went away. i assume i was back to using the system default.


Last edited by josephg on Mon Jan 18, 2016 6:57 pm; edited 2 times in total
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2616

PostPosted: Mon Jan 18, 2016 8:45 am    Post subject: Reply with quote

josephg wrote:
charles17 wrote:
If it really contains the SYNC= line in /etc/portage/make.conf you might reopen that bug 560702 or file a new one.

it didn't contain the SYNC line. the x86 install handbook asked me to add the SYNC line, as in my second post on this thread above.

That's the problem with documentation being always behind development. And the warning in the handbook is not really unmisleading. Bug 543848 needs to be fixed.

josephg wrote:
it was suggested to me to use git instead of rsync and for a while it worked ok. then i seemed to get warnings. this could have been something to do with how/what i was doing, a bit blindly i must confess. i was a noob installing gentoo for the first time, and had changed quite a lot of configs at lots of different places.
since, i didn't understand those warnings and they looked like something about git, i deleted that file with git configs that i had created. and the warnings went away. i assume i was back to using the system default, in the absence of my custom config.

Installing Gentoo for the first time could unlikely be done without problems or misunderstandings. And your help for improving the handbook and wiki documentation is highly welcome.
Back to top
View user's profile Send private message
josephg
l33t
l33t


Joined: 10 Jan 2016
Posts: 783
Location: usually offline

PostPosted: Mon Jan 18, 2016 6:08 pm    Post subject: Reply with quote

charles17 wrote:
Installing Gentoo for the first time could unlikely be done without problems or misunderstandings.

i agree, and more so with gentoo.. than most other distros. but anyone who comes here knows this, and accepts this.
sorry if i came across as critical. that wasn't the intention. you guys have been fabulously helpful.

charles17 wrote:
And your help for improving the handbook and wiki documentation is highly welcome.

happy to get involved

i would suggest taking out that entire section on portage configuration. noobs installing gentoo do not need to change profiles or use flags or any of the other highly disruptive configs. all that can happen after the first reboot, or even much much later as the user gets more comfortable with and starts to understand gentoo/portage concepts.

seeing all that lot made me want to configure everything to get a perfect system. and i was reading all about use flags and changing profiles, even before the system was ready for first boot. i just about trashed my install. i didn't realise that i could/should have simply continued with USE="", as i learned later from vilehost suggestions.

on that note, i think the gentoo default should be CFLAGS="-march=native -O2 -pipe", as the install handbook suggests. then this whole section can be removed from the install handbook too, as above.

i think the install handbook should be concise and focus on absolute essentials. and reduce duplicating info already in more relevant sections of the wiki.

i'm not suggesting we dumb down or restrict config choices, but that we hive off all non-essentials to post-install or existing reference sections. those in the know will chart their own way.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum