by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 19:54
    stale[bot] labeled #7943
  • 19:54
    stale[bot] commented #7943
  • 17:54
    stale[bot] labeled #7794
  • 17:54
    stale[bot] commented #7794
  • 17:30
    stale[bot] unlabeled #7784
  • 17:30
    stale[bot] commented #7784
  • 17:30
    achitofel commented #7784
  • 15:12
    ardetek opened #8114
  • 12:04
    stale[bot] unlabeled #7337
  • 12:04
    stale[bot] commented #7337
  • 12:03
    benwa commented #7337
  • 11:26
    hdering commented #7990
  • 11:00
    NewStoreIT commented #7495
  • 10:58
    NewStoreIT commented #8102
  • 10:54
    itsyncedvision commented #4261
  • 10:40
    UnnamedPl4yer commented #7894
  • 10:39
    itsyncedvision commented #3957
  • 10:39
    UnnamedPl4yer commented #7894
  • 10:39
    UnnamedPl4yer commented #7894
  • 06:49
    ashupanwar10 commented #3814
gmintoco
@gmintoco
Although those issues are more with checking out it may be the same mechanism for auditing - i'm not sure
blankman373
@blankman373
thanks @gmintoco will take a look.. but i found this, snipe/snipe-it#4933, and think it might be by design
Lucky
@lucky644_twitter
Hello, setting up a new install, running in Docker on Ubuntu 20.04, everything is running great, except this is my first time using Docker and I cannot figure out how to make changes to my .env (specifically to update the app_key line and fix my email settings) could someone point me in the right direction? I just can't seem to find the right info!
gmintoco
@gmintoco
@lucky644_twitter If you are using the guide here: https://snipe-it.readme.io/docs/docker it should be as simple as editing the env file you have created and then recreating the container
Lucky
@lucky644_twitter
Will re-creating it break what I've already done?
As in, I went into SnipeIT and configured a bunch of stuff before realizing the email wasn't working, and that app_key line wasn't updated.
If possible, I'd like to make the env changes without having to lose any progress :D
gmintoco
@gmintoco

This is the beauty of docker in that it allows you to easily separate the applications state (configuration, data etc.) from the actual application itself.
So as long as you are using the suggested docker commands (with the --mount directive or in docker-compose the suggested volume: directives) the actual data itself (the MySQL DB and the Snipe IT images etc.) are persisted outside of the actual application (and it's environment variables)

This means you can modify the environment variables and then completely recreate the containers no worries. The application will retrieve the configuration and relevant data as it normally would (this is similar to restarting a traditional server in some ways) as all you are actually destroying is the application 'code' not the data you have created by configuring it. This allows you to very easily update the application (simply change the image version in the docker compose file typically) as well as recovering from a crash etc. (the container will simply automatically restart)

The only thing to be careful of is not to use the docker-compose down command (as this will remove volumes as well) and instead use docker-compose stop EDIT: Small correction docker-compose down will only remove volumes with the -v argument so no worries there :)
Lucky
@lucky644_twitter
Ah ok, good, so do I re-run snipeit or mysql container thing?
I'm using Portainer to look at things (and manage starting/stopping)
And I see that the snipeit container has the up to date env showing but the SQL one doesnt.
gmintoco
@gmintoco
are you using docker-compose for config?
Lucky
@lucky644_twitter
I did not
gmintoco
@gmintoco
as you are just modifying snipe-it vars it won't matter if you restart the mysql container or not - if you are seeing the updated variables in portainer you should be good
docker will pull the variables from the .env file and load them into the container when you execute the command. The application (mysql or snipe-it) will use them from then on
Lucky
@lucky644_twitter
So if I'm running right now, and I want to make a env change, I open my txt and make the change, how do I safely shut down and re-run in a new container?
and it doesn't matter that portainer shows a diff env for snipeit and snipe-mysql?
Lucky
@lucky644_twitter
Do I just run "docker run --name snipe-mysql --env-file=my_env_file" without the rest?
and then "docker run -d -p YOUR_PORT_NUMBER:80 --name="snipeit" --link snipe-mysql:mysql --env-file=my_env_file"
Lucky
@lucky644_twitter
Or do I just hit 'recreate' for both containers in portainer
Lucky
@lucky644_twitter
Maybe I don't even need to do this, as the appkey shows in snipeit, just not in MySQL. The other reason I wanted to edit the env was due to the email not working, but, it honestly should be working, what's inputted is correct.
Where can I pull the logs specific to the email, I need to see why its failing
I don't think its SELinux related.
gmintoco
@gmintoco
@lucky644_twitter Just hitting recreate is fine I believe (I'm not that familar with portainer)
May as well just recreate the mysql container as well. They should match afterwards
Not 100% sure on logs but the debug mode should tell you more
Step 1 there
Lucky
@lucky644_twitter
Thanks, I appreciate the help.
Lucky
@lucky644_twitter
When i tell them to recreate, it says there's a duplicate mount point and it fails
Lucky
@lucky644_twitter
Long story short, renamed the existing ones, remade them via ssh, did some testing, discovered the email issue was due to me having a user/pass in there, leaving them blank resolved the email.
mpaladini
@mpaladini
Greetings! I have a question regarding custom fieldsets. Is there a limitation on how many fields can be in a custom fieldset? I have a problem where after I apply a custom fieldset that contains approximately 60 custom fields, I lose visual on all my assets across the organization via Assets\LIst All. This is on a brand new asset model, (a 48 port network switch) so there should be no conflicts with another like asset model. I have no trouble when doing this with smaller switches (24, 16, 12 port etc.) only the 48 port switches I have to have a field for each port so I can document the port security configuration. I have confirmed this by removing the custom fieldset from the asset model, and then all my assets are visible again. This is very strange. Any help would be appreciated.
mpaladini
@mpaladini
Greetings UPDATE* I figured it out myself! Probably a rookie error on my part, but this is my first go with this. I had a "/" in the custom field name, and Snipe No LIkey!
gmintoco
@gmintoco
@lucky644_twitter when looking at the docker docs it seems this occurs when a mount point is set in two locations (maybe portainer and the command)
As for email glad that it was resolved :)
Lucky
@lucky644_twitter
Yeah, thanks! New issue! Haha, when using drop down menus, for example, selecting a department or location, everything appears for about 3 seconds and then they vanish. If you click fast, you can select them. Also when editing 'people' the entire list sometimes vanishes, have to keep refreshing until they appear again...anyone ever seen this happen?
This is in Chrome.
Martha Delgado
@mdelgado89_gitlab

To Whom It May Concern,

I would like to thank first for taking your time to help me and read this. I'm currently having issues in installing Snipe-IT and I would love to install and have it self-hosted. Below is the issue that I'm encountering with. I'm currently running it from a CentOS 7 VM.

sudo /bin/composer install --no-dev --prefer-source

Loading composer repositories with package information
Installing dependencies from lock file
Your requirements could not be resolved to an installable set of packages.

Problem 1

- Installation request for tecnickcom/tc-lib-barcode 1.15.20 -> satisfiable by tecnickcom/tc-lib-barcode[1.15.20].
- tecnickcom/tc-lib-barcode 1.15.20 requires ext-bcmath * -> the requested PHP extension bcmath is missing from your system.

To enable extensions, verify that they are enabled in your .ini files:

- /etc/php.ini
- /etc/php.d/20-bz2.ini
- /etc/php.d/20-calendar.ini
- /etc/php.d/20-ctype.ini
- /etc/php.d/20-curl.ini
- /etc/php.d/20-dom.ini
- /etc/php.d/20-exif.ini
- /etc/php.d/20-fileinfo.ini
- /etc/php.d/20-ftp.ini
- /etc/php.d/20-gd.ini
- /etc/php.d/20-gettext.ini
- /etc/php.d/20-iconv.ini
- /etc/php.d/20-json.ini
- /etc/php.d/20-ldap.ini
- /etc/php.d/20-mbstring.ini
- /etc/php.d/20-mysqlnd.ini
- /etc/php.d/20-pdo.ini
- /etc/php.d/20-phar.ini
- /etc/php.d/20-simplexml.ini
- /etc/php.d/20-sockets.ini
- /etc/php.d/20-sqlite3.ini
- /etc/php.d/20-tokenizer.ini
- /etc/php.d/20-xml.ini
- /etc/php.d/20-xmlwriter.ini
- /etc/php.d/20-xsl.ini
- /etc/php.d/30-mcrypt.ini
- /etc/php.d/30-mysqli.ini
- /etc/php.d/30-pdo_mysql.ini
- /etc/php.d/30-pdo_sqlite.ini
- /etc/php.d/30-wddx.ini
- /etc/php.d/30-xmlreader.ini
- /etc/php.d/40-zip.ini

You can also run php --ini inside terminal to see which files are used by PHP in CLI mode.

djlongy
@djlongy
Hello
I would like to know if snipe-it has any kind of built in telemetry or phone home code? Due to security concerns I need to know that there is absolutely no telemetry of any metadata leaving the system.
gmintoco
@gmintoco
@mdelgado89_gitlab To be honest I would suggest just using the docker installation method - thats just my preference though but it should get around these kind of environmental problems

Yeah, thanks! New issue! Haha, when using drop down menus, for example, selecting a department or location, everything appears for about 3 seconds and then they vanish. If you click fast, you can select them. Also when editing 'people' the entire list sometimes vanishes, have to keep refreshing until they appear again...anyone ever seen this happen?

No idea as to why this might be happening - good step might be to enable debug mode and see if anything obvious is happening there, I don't experience that issue at all

Befread
@Befread
What version of mysql works best with snipe-it?
max-allan-surevine
@max-allan-surevine
Hi, I'm just getting started with Snipe-IT after inheriting a system half built by someone else. They've assigned a load of assets to a location in a way that does not make sense for us. I cannot see a way to change the location other than checkin from the user and check back out. And then I think, it inherits the default location of the device. Rather than the location of the user. So, when a user moves location I need to edit all their devices to set the default to the new location, check in all their devices and remember the asset number so I can find them again because they no longer appear in a search for the user or the location, and then check them back out to the user. Or is there a less long winded way to do this??
Martha Delgado
@mdelgado89_gitlab

@gmintoco ,

Thank you for replying. I'm not very familiar with docker and I will give it a try to see if I can figure it out with docker.

Martha Delgado
@mdelgado89_gitlab

I figure it out what was the problem, base in the notes that I was guiding myself with they have a missing step. If you have the same issue as me, you can resolve it by running this command:

yum install php-bcmath

Once I ran that command, I was able to ran the command below successfully.

composer install --no-dev --prefer-source

Av4l0N
@Av4l0N
is anyone here who had issue with importing from import menu. i am using php 7.2 with apache
ColonelTigh
@ColonelTigh
Anybody have an issue with getting the "List All Assets" page to display custom fields as a column? My custom fields aren't showing up for me in the dropdown.
PauloFreire70
@PauloFreire70
Hello, I'm doing a lot of automation and trying to fill most of our inventory and tracking needs to SnipeIT. The basic part was easy, now I want to send tables in html that are a bit more complex with startup/shutdown events or installed software. Since the REST API is not handling big amounts of data or markup, the easiest way would be to send the tables with a naming convention to a share (hostname_uptime; hostname_software) and after I would construct a link to it, using an URL in a custom field. But I cannot find a way to make the URL link available in a way that we could click on it to open the information. Anyone know if this is possible, or how to send such data using the REST API? Thanks in advance.