You are not logged in.

#251 2019-01-10 21:53:44

tydynrain
Member
From: Lower Puna, Big Island Hawai'i
Registered: 2017-10-26
Posts: 77
Website

Re: aurutils - helper tools for the aur

Alad, I updated aurutils to the latest version  (2.0.0-1) today, however, I am still unable to get it to work with my personal repo. I got that

aursync -u

is now

aur sync -u

however. when I run the later command I get

==> ERROR: sync: /var/cache/pacman/aur-repo/aur-repo.db: permission denied

and if I add a sudo in front

sudo aur sync -u

I get

==> ERROR: Running makepkg as root is not allowed as it can cause permanent,
catastrophic damage to your system.
Running makepkg --clean --sync --rmdeps
==> ERROR: Running makepkg as root is not allowed as it can cause permanent,
catastrophic damage to your system.

when there are actually packages in my repo to update.

How might this situation be rectified so that I am able to update my personal repo once again?


Registered Linux User: #623501 | Arch Linux Principles: Simplicity - Modernity - Pragmatism - User Centrality - Versatility => KISS
Arch Linux, the most exciting thing since Linus created Linux and married it with GNU/GPL.
Arch Linux for Life, Arch Linux forever!

Offline

#252 2019-01-10 22:03:41

Alad
Wiki Admin/IRC Op/TU
From: Bagelstan
Registered: 2014-05-04
Posts: 1,887
Website

Re: aurutils - helper tools for the aur

stat /var/cache/pacman/aur-repo/aur-repo.db.tar
id -u

"uid" should match for both commands and have rw access. e.g.

Access: (0644/-rw-r--r--)  Uid: ( 1000/    user)   Gid: ( 1000/    user)

Last edited by Alad (2019-01-10 22:06:04)


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby
Honest Alad's Package Emporium—Now with added bugs! (Grand reopening: December 1st 2018)

Offline

#253 2019-01-10 22:33:47

tydynrain
Member
From: Lower Puna, Big Island Hawai'i
Registered: 2017-10-26
Posts: 77
Website

Re: aurutils - helper tools for the aur

Alad wrote:
stat /var/cache/pacman/aur-repo/aur-repo.db.tar
id -u

"uid" should match for both commands and have rw access. e.g.

Access: (0644/-rw-r--r--)  Uid: ( 1000/    user)   Gid: ( 1000/    user)

Here's the output of those commands:


[tydynrain@The-Nexus-Tribe ~]$ stat /var/cache/pacman/aur-repo/aur-repo.db.tar
  File: /var/cache/pacman/aur-repo/aur-repo.db.tar
  Size: 207872    	Blocks: 408        IO Block: 4096   regular file
Device: 801h/2049d	Inode: 8916718     Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2019-01-10 11:36:56.365311597 -1000
Modify: 2019-01-10 11:36:40.072014583 -1000
Change: 2019-01-10 11:36:40.108681162 -1000
 Birth: -

[tydynrain@The-Nexus-Tribe ~]$ id -u
1000

The permissions for the repo and the files within are for my user (tydynrain), which is curious since the first command says they are root under Access.


Registered Linux User: #623501 | Arch Linux Principles: Simplicity - Modernity - Pragmatism - User Centrality - Versatility => KISS
Arch Linux, the most exciting thing since Linus created Linux and married it with GNU/GPL.
Arch Linux for Life, Arch Linux forever!

Offline

#254 2019-01-10 23:18:57

Alad
Wiki Admin/IRC Op/TU
From: Bagelstan
Registered: 2014-05-04
Posts: 1,887
Website

Re: aurutils - helper tools for the aur

amerlyq wrote:

So, I correctly understood process before, when I asked "Is there a way around to prevent database sync (until explicitly requested) when using chroot?".
I.e. I meant how to "not sync B at all" or more appropriately "how to make B a copy of A" so host and container packages matched each other and there was no need to do full system upgrade each time?
Actually:
1) can it be done with current implementation of aurutils by configuring or extending with scripts?
2) if not, is it possible to implent or extend aurutils itself w/o too much rewrite?
3) is it possible at all (for example due to limitations of arch-nspawn)
4) is it reasonable? (I think "yes, yes, yes", but gladly accept facts if I'm mistaken in that insistence)

https://github.com/AladW/aurutils/pull/498


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby
Honest Alad's Package Emporium—Now with added bugs! (Grand reopening: December 1st 2018)

Offline

#255 2019-01-10 23:20:00

Alad
Wiki Admin/IRC Op/TU
From: Bagelstan
Registered: 2014-05-04
Posts: 1,887
Website

Re: aurutils - helper tools for the aur

The permissions for the repo and the files within are for my user (tydynrain), which is curious since the first command says they are root under Access.

It could be that the symbolic link is as your user but the file it points to is not. (Maybe you ran repo-add as root at some point.) Anyway it should suffice to chown the db.tar back to your user.


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby
Honest Alad's Package Emporium—Now with added bugs! (Grand reopening: December 1st 2018)

Offline

#256 2019-01-10 23:32:40

tydynrain
Member
From: Lower Puna, Big Island Hawai'i
Registered: 2017-10-26
Posts: 77
Website

Re: aurutils - helper tools for the aur

Alad wrote:

The permissions for the repo and the files within are for my user (tydynrain), which is curious since the first command says they are root under Access.

It could be that the symbolic link is as your user but the file it points to is not. (Maybe you ran repo-add as root at some point.) Anyway it should suffice to chown the db.tar back to your user.

OK, I think I understand what might be going on. Yes, when I created and recreate the repo, I run it as root, such as when I add a new package, I remove and add all new packages as root, however the repo directory and the individual packages within have the permissions of my user. I'll recreate the repo as my user as opposed to root. I'm just curious why  the way I was doing it worked fine with the previous version of aurutils.


Registered Linux User: #623501 | Arch Linux Principles: Simplicity - Modernity - Pragmatism - User Centrality - Versatility => KISS
Arch Linux, the most exciting thing since Linus created Linux and married it with GNU/GPL.
Arch Linux for Life, Arch Linux forever!

Offline

#257 2019-01-11 04:53:29

Alad
Wiki Admin/IRC Op/TU
From: Bagelstan
Registered: 2014-05-04
Posts: 1,887
Website

Re: aurutils - helper tools for the aur

I guess the new version is more strict on permissions. As I don't have mixed permissions in my repo I haven't noticed, but feel free to git bisect between 1.5.3 and 2.0.0 and share the bad commit.


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby
Honest Alad's Package Emporium—Now with added bugs! (Grand reopening: December 1st 2018)

Offline

#258 2019-01-11 05:49:20

tydynrain
Member
From: Lower Puna, Big Island Hawai'i
Registered: 2017-10-26
Posts: 77
Website

Re: aurutils - helper tools for the aur

This is strange. So I recreated the repo as my user, and when I run

aur sync -u

and there are updated packages to build, before makepkg begins to build them the files aur-repo-db.tar, aur-repo.db (symlink), aur-repo.files.tar, and aur-repo.files (symlink) all have the permissions of my user, but when makepkg begins to build a package, they all change to the root permissions, and then when makepkg is done building, they usually go back to the permissions of my user, but sometimes, and this is where it's getting frustrating, sometimes the permissions don't change back, and they remain as root, which causes me to have to remove them and recreate them with my user permissions again.

I haven't tried to bisect a package yet, so I'm not exactly sure how to do that, though I'm sure I can figure it out.

Last edited by tydynrain (2019-01-11 05:50:10)


Registered Linux User: #623501 | Arch Linux Principles: Simplicity - Modernity - Pragmatism - User Centrality - Versatility => KISS
Arch Linux, the most exciting thing since Linus created Linux and married it with GNU/GPL.
Arch Linux for Life, Arch Linux forever!

Offline

#259 2019-01-11 10:16:39

progandy
Member
Registered: 2012-05-17
Posts: 3,222

Re: aurutils - helper tools for the aur

Does that still happen if you remove the symlinks and just let pacman copy the database?


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#260 2019-01-11 14:08:10

Alad
Wiki Admin/IRC Op/TU
From: Bagelstan
Registered: 2014-05-04
Posts: 1,887
Website

Re: aurutils - helper tools for the aur

Yes, I can imagine if you have symlinks in /var/lib/pacman/sync to your .db (or vice-versa) that the resulting files may be owned by root. As to git bisect, see the wiki:

https://wiki.archlinux.org/index.php/Bi … s_with_Git

Last edited by Alad (2019-01-11 14:08:44)


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby
Honest Alad's Package Emporium—Now with added bugs! (Grand reopening: December 1st 2018)

Offline

Board footer

Powered by FluxBB