Problem running any update command in Jail

Status
Not open for further replies.

dambrosioj

Dabbler
Joined
Apr 1, 2015
Messages
23
I was trying to update my Emby-server just running a simple pkg install as i normally do. I kept getting errors stating: Failed to create temporary file, file already exists.

I thought it was odd so I went ahead and just created a brand new jail and ran a simple "pkg update && pkg upgrade" and I get the same error. Not sure what is going on. I attached a screen shot of whats happening. Not sure if something is stuck in temp somewhere?
 

Attachments

  • upload_2016-10-16_16-37-46.png
    upload_2016-10-16_16-37-46.png
    56.7 KB · Views: 295

xt4c

Dabbler
Joined
Feb 11, 2013
Messages
13
I had exact same problem trying to do a pkg install (I was trying to install minidlna). And I did the same thing: I too created a new jail and tried it again. Sure enough same error. Suggest something is not right with pkg install at the moment.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
it looks like your problem is with a specific file for db5. I would try force uninstalling it, the reinstall it and run the upgrade.

pkg -f remove db5
 

dambrosioj

Dabbler
Joined
Apr 1, 2015
Messages
23
it looks like your problem is with a specific file for db5. I would try force uninstalling it, the reinstall it and run the upgrade.

pkg -f remove db5
I did the command it removed it and retried, same error. That file is not there I checked.

[Emby] [1/118] Installing libxcb-1.11.1...
[Emby] [1/118] Extracting libxcb-1.11.1: 41%
pkg: Fail to create temporary file: /usr/local/man/man3/.xcb_input_get_selected_
extension_events.3.gz.jaMV82H8erTq: File exists
[Emby] [1/118] Extracting libxcb-1.11.1: 100%

Other people on reddit having similar issues.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
why are you saying that is the same error? did you read the error, it is clearly for a different package.
 

dambrosioj

Dabbler
Joined
Apr 1, 2015
Messages
23
why are you saying that is the same error? did you read the error, it is clearly for a different package.

Because it is the same error, im showing you that it happens on other packages. The problem is it stating theres a temp file but there isnt one there.

I would be curious if anyone just threw up a random jail and ran, pkg install emby-server

I would assume you get the same error
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
ahh, well I showed you how to fix it for one package so you could do that for everything needing updating.

have you tried changing your package server?
 

dambrosioj

Dabbler
Joined
Apr 1, 2015
Messages
23
ahh, well I showed you how to fix it for one package so you could do that for everything needing updating.

have you tried changing your package server?
Well the problem is it did not fix it even for the other package I still get the same error for db5. Even after it was removed. The remove worked, but as soon as you try to install the package again, "cannot create temporary file. File exists"

To me that seems like theres a problem with packager or something since it still happens if i create a brand new jail and test it, how can the file be there.

What should I change the package server to?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
ahh

im not sure what to change to, does the jail come with /usr/local/etc/pkg.conf
I've fixed issues before by deleting that file.
 

dambrosioj

Dabbler
Joined
Apr 1, 2015
Messages
23
ahh

im not sure what to change to, does the jail come with /usr/local/etc/pkg.conf
I've fixed issues before by deleting that file.
Got it to work by manually updating packager

root@openvpn /]# portsnap fetch
[root@openvpn /]# portsnap extract

[root@openvpn /]# pkg delete -f pkg
[root@openvpn /]# cd /usr/ports/ports-mgmt/pkg
[root@openvpn /]# make clean install
 
Status
Not open for further replies.
Top