Re: RPM error : Can't create transaction lock on /

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I did that actually. My mistake, I forgot to post up the results in my previous posts.
 
This is the strace snip :
 
stat64("/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/var/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/var/lib/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/var/lib/rpm", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
access("/var/lib/rpm", W_OK)            = 0
access("/var/lib/rpm/__db.001", F_OK)   = 0
access("/var/lib/rpm/Conflictname", F_OK) = 0
stat64("/var/lib/rpm/Conflictname", {st_mode=S_IFREG|0644, st_size=12288, ...}) = 0
open("/var/lib/rpm/Conflictname", O_RDONLY|O_LARGEFILE) = 6
fcntl64(6, F_SETFD, FD_CLOEXEC)         = 0
read(6, "\0\0\0\0\1\0\0\0\0\0\0\0a\25\6\0\10\0\0\0\0\20\0\0\0\10"..., 512) = 512
close(6)                                = 0
open("/var/lib/rpm/Conflictname", O_RDONLY|O_LARGEFILE) = 6
fcntl64(6, F_SETFD, FD_CLOEXEC)         = 0
fstat64(6, {st_mode=S_IFREG|0644, st_size=12288, ...}) = 0
umask(022)                              = 022
open("/", O_RDWR|O_CREAT|O_LARGEFILE, 0644) = -1 EISDIR (Is a directory)
umask(022)                              = 022
open("/", O_RDONLY|O_LARGEFILE)         = 7
write(2, "error: ", 7error: )                  = 7
write(2, "can\'t create transaction lock on"..., 35can't create transaction lock on /
) = 35
close(7)                                = 0
 
 
I can vagulely make out that it is trying to the file /var/lib/rpm/Conflictname and fails after that. After I saw this output, I thought that the RPM db files need to be rebuilt. So I tried :
 
# rpm --rebuilddb
error: can't create transaction lock on /
#
 
This one came up with the same error too. The strace for this command is as below:
 
open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/rpm.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US.utf8/LC_MESSAGES/rpm.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US/LC_MESSAGES/rpm.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en.UTF-8/LC_MESSAGES/rpm.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en.utf8/LC_MESSAGES/rpm.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en/LC_MESSAGES/rpm.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
write(2, "error: ", 7error: )                  = 7
write(2, "can\'t create transaction lock on"..., 35can't create transaction lock on /
) = 35
close(3)                                = 0
exit_group(-1)                          = ?
Process 6557 detached
 
I'm not sure what I'm missing here.
 
Bala
 
 
 
 
On 5/30/07, Valery Reznic <valery_reznic@xxxxxxxxx> wrote:
You can run rpm under strace and examine what strace
has to say.

Valery
--- Bala < balaknathan@xxxxxxxxx> wrote:

> I removed the db files and checked if some other
> rpm/yum processes are
> running on the system. There are no other processes
> active that may
> potentially cause a problem. I have deleted the
> __db* files under
> /var/lib/rpm directory and tried running again. Yet
> no luck.
>
> The rpm version i'm using is 4.4.2.
>
> # rpm --version
> RPM version 4.4.2
> #
>
> Could this be a problem with the rpm version itself
> ? Would you suggest
> upgrading/downgrading to a different version ?
>
> Bala
>
> On 5/30/07, Tony Earnshaw < tonni@xxxxxxxxx> wrote:
> >
> > Paul Nasrat skrev, on 29-05-2007 16:10:
> >
> > >>> I'm trying to install mysql devel rpm on RHEL
> 5 and I'm stuck at this
> > >>> error and cant proceed further.
> > >>>
> > >>> "error: can't create transaction lock on /"
> > >> You may have a trailing lock - ls /var/lib/rpm
> > >>
> > >> Check for other rpm/yum processes running.  If
> none then:
> > >>
> > >> rm -f /var/lib/rpm/__db*
> > >
> > > Also, just to add for RHEL your first stop
> really should be support.
> >
> > Simply to collate: I have no problems with this on
> CentOS 5
> > (mysql-devel-5.0.22-2.1 ) or Fedora FC6
> (mysql-devel-5.0.27-1.fc6) - both
> > are the versions yum has updated to. Just as well,
> since there's no
> > official support on either :)
> >
> > --Tonni
> >
> > --
> > Tony Earnshaw
> > Email: tonni at hetnet dot nl
> >
> > _______________________________________________
> > Rpm-list mailing list
> > Rpm-list@xxxxxxxxxx
> > https://www.redhat.com/mailman/listinfo/rpm-list
> >
> > _______________________________________________
> Rpm-list mailing list
> Rpm-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/rpm-list




____________________________________________________________________________________
Finding fabulous fares is fun.
Let Yahoo! FareChase search your favorite travel sites to find flight and hotel bargains.
http://farechase.yahoo.com/promo-generic-14795097

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux